:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --ink: #1d1b18;
  --muted: #6b655c;
  --line: #e2dcd2;
  --accent: #b4532a;
  --accent-ink: #fff;
  --ok: #2f7a4a;
  --warn: #a8701a;
  --bad: #b23a32;
  --radius: 10px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f; --surface: #1f1c16; --ink: #f1ece3; --muted: #a39b8e;
    --line: #36312a; --accent: #e07a4a; --accent-ink: #1a1208;
    --ok: #6cc28b; --warn: #e0a84a; --bad: #ef7a70;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 7vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }

.demo-bar { background: var(--ink); color: var(--bg); font-size: 13px; padding: 6px 16px;
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.demo-bar .link { color: var(--bg); }

.top { display: flex; align-items: center; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { font: 600 14px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  text-decoration: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a.on { border-bottom: 2px solid var(--accent); }
.nav a.nav-acct { font-weight: 600; color: var(--accent); }
.nav a.nav-acct.on { border-bottom-color: var(--accent); }
.acting { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .top { padding: 12px 16px; gap: 12px; }
  .acting { margin-left: 0; width: 100%; }
  .acting select { flex: 1; }
}

main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
@media (max-width: 640px) { main { padding: 24px 16px 64px; } }

button, .btn { font: 500 15px/1 var(--sans); border-radius: 8px; padding: 11px 16px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { border-color: var(--muted); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.danger { color: var(--bad); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; text-decoration: underline; font-size: inherit; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

input, select, textarea { font: 15px/1.3 var(--sans); padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
select { width: auto; }
textarea { min-height: 80px; resize: vertical; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
label.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; }
label.check input { width: auto; margin-top: 3px; }
.hint { font-size: 13px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stack > * + * { margin-top: 16px; }

.code-entry { border: 2px solid var(--accent); margin-bottom: 8px; }
.code-entry label { display: block; font-size: 17px; margin-bottom: 12px; }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row input { flex: 1 1 200px; font: 600 20px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .04em;
  text-transform: uppercase; padding: 12px 14px; }
.code-row input::placeholder { text-transform: none; font-weight: 400; }
.code-row button { flex: 0 0 auto; padding: 14px 20px; font-size: 16px; }
@media (max-width: 480px) { .code-row button { flex: 1 1 100%; justify-content: center; } }
#code-msg:not(:empty) { margin-top: 10px; font-size: 15px; }

.hero { padding: 24px 0 40px; max-width: 680px; }
.hero .lede { font-size: 19px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 8px 0 48px; }
.steps .n { font: 600 12px/1 var(--sans); color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tile { text-decoration: none; color: inherit; display: block; }
.tile .art { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--line); }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .meta { padding-top: 10px; }
.tile .title { font-family: var(--serif); font-size: 18px; }
.tile .sub { font-size: 14px; color: var(--muted); }

.badge { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; border: 1px solid currentColor; }
.badge.Active { color: var(--ok); }
.badge.PendingRelease { color: var(--warn); }
.badge.Sold { color: var(--muted); }
.badge.Cancelled { color: var(--bad); }

.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.detail .art img { width: 100%; border-radius: 6px; }
.price { font-family: var(--serif); font-size: 34px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; margin: 12px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.split { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 14px; }
.split td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.split td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.split tr.total td { font-weight: 600; border-bottom: 0; }

.codebox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--bg);
  border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 12px; }
.codebox .code { font: 600 18px/1 ui-monospace, Menlo, monospace; color: var(--accent); }

.notice { border-left: 3px solid var(--warn); padding: 10px 14px; background: var(--surface); font-size: 15px; }
.notice.ok { border-color: var(--ok); }
.notice.bad { border-color: var(--bad); }

table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font: 600 12px/1 var(--sans); color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll-x { overflow-x: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; }
.feed time { color: var(--muted); font-size: 13px; white-space: nowrap; min-width: 64px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 28px; }
.stat .sub { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.stat .sub:empty { display: none; }

#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px;
  z-index: 50; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 8px; font-size: 15px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); color: #fff; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 40px 0 16px; }
.section-head:first-child { margin-top: 0; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---- brand + footer */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { flex: 0 0 auto; }
.foot { border-top: 1px solid var(--line); padding: 28px 24px 40px; text-align: center; color: var(--muted);
  font-size: 14px; display: flex; gap: 10px; justify-content: center; align-items: center; }

/* ---- promo maker */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } }
.promo-preview { position: sticky; top: 84px; display: grid; gap: 12px; justify-items: start; }
@media (max-width: 860px) { .promo-preview { position: static; } }
.promo-preview canvas { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 6px;
  background: var(--bg); }
.ctl-label { font: 600 12px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 9px 13px; font-size: 15px; border-radius: 999px; }
.choice.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.linkrow { display: flex; gap: 8px; align-items: stretch; }
.linkrow input, .linkrow textarea { flex: 1; min-width: 0; font: 13px/1.4 ui-monospace, Menlo, monospace; }
.linkrow button { flex: 0 0 auto; }
details summary { cursor: pointer; font-size: 15px; }

/* ---- provenance printout */
body.cert-open { overflow: hidden; }
.cert-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 7, .78); overflow: auto; padding: 20px 12px 40px; }
.cert-dialog { max-width: 780px; margin: 0 auto; }
.cert-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  color: #e9e4da; font-size: 14px; margin-bottom: 12px; }
.cert-paper { --mono: "IBM Plex Mono", "Courier New", Courier, monospace;
  position: relative; background: #fbfaf6; color: #111; padding: 30px 46px 34px; overflow-x: auto;
  font-family: var(--mono); box-shadow: 0 10px 40px rgba(0,0,0,.35);
  /* faint printer banding */
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 3px, rgba(0,0,0,.018) 3px 4px); }
/* tractor-feed holes and perforations on both edges */
.cert-paper::before, .cert-paper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px;
  background: radial-gradient(circle at 13px 12px, #2a2620 5px, transparent 5.5px) 0 0 / 26px 24px repeat-y; }
.cert-paper::before { left: 0; border-right: 1px dashed rgba(0,0,0,.25); }
.cert-paper::after { right: 0; border-left: 1px dashed rgba(0,0,0,.25); }
.cert-text { margin: 0; white-space: pre; font: 600 min(13px, calc((100vw - 110px) / 64 / 0.6)) / 1.45 var(--mono);
  letter-spacing: 0; text-shadow: 0 0 .5px rgba(0,0,0,.55); }
.cert-thumb { display: block; width: 168px; max-width: 45%; height: auto; image-rendering: pixelated;
  margin: 6px 0 4px calc(20 * 0.6 * min(13px, calc((100vw - 110px) / 64 / 0.6))); filter: contrast(1.1); }
.cert-verify { display: flex; gap: 16px; align-items: center; margin: 8px 0; }
.cert-qr { width: 112px; height: 112px; image-rendering: pixelated; flex: 0 0 auto; }
#record-paper { min-height: 200px; }
@media (max-width: 600px) { .cert-paper { padding: 20px 30px 24px; } .cert-paper::before, .cert-paper::after { width: 16px; background-size: 16px 20px;
  background-image: radial-gradient(circle at 8px 10px, #2a2620 3.5px, transparent 4px); } .cert-qr { width: 88px; height: 88px; } }
@media print {
  .demo-bar, .top, .foot, #toasts, .cert-bar, main > p, main > .section-head, main > .hint { display: none !important; }
  body.cert-open main { display: none; }
  body { background: #fff; }
  .cert-overlay { position: static; background: none; padding: 0; overflow: visible; }
  .cert-paper { box-shadow: none; overflow: visible; }
  .cert-text { font-size: 10.5px; }
}

/* ---- watermark */
.wm-panel { margin: 4px 0 16px; }
.wm-wrap { background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border-radius: 6px; }
.wm-wrap canvas { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---- moderation */
.mature-cover { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.mature-cover img { filter: blur(28px) saturate(.6); transform: scale(1.15); }
.mature-btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; background: rgba(20, 18, 14, .35); color: #fff; border: 0; border-radius: 0; font-size: 15px; width: 100%; }
.mature-btn span { font-size: 13px; opacity: .85; }
.badge.mature { color: var(--warn); }
.badge.Removed { color: var(--bad); }
.report { margin-top: 8px; }
.report summary { color: var(--muted); font-size: 14px; }
.queue-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.queue-item.urgent { border-color: var(--bad); border-width: 2px; }
.queue-art { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--line); }
.queue-art img { width: 100%; height: 100%; object-fit: cover; }
.reasons { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
@media (max-width: 520px) { .queue-item { grid-template-columns: 80px minmax(0, 1fr); } }

/* ---- payment methods */
.methods { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.method { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.method input { width: auto; margin-top: 4px; }
.method span { display: grid; gap: 2px; }
.method small { color: var(--muted); font-size: 13px; }
.method:has(input:checked) { border-color: var(--accent); }
.method.off { opacity: .5; cursor: not-allowed; }

/* ---- race pages */
.race { margin-bottom: 16px; }
.race-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.race-state { font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.race-state.PAID, .race-state.SOLD { color: var(--ok); }
.race-state.HELD { color: var(--warn); }
.race-state.REVERSED { color: var(--bad); }
.race-winner { margin: 10px 0 6px; font-size: 15px; }
.race-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.race-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.race-table tr.win td { background: color-mix(in srgb, var(--ok) 10%, transparent); font-weight: 600; }
.race-table tr.dim td { color: var(--muted); }
.sig { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ok); margin-left: 6px; }
.ok-mark { color: var(--ok); font-weight: 600; }
.bad-mark { color: var(--bad); font-weight: 600; }

/* ---- simulation */
.sim-banner { background: repeating-linear-gradient(135deg, var(--warn) 0 14px, color-mix(in srgb, var(--warn) 80%, #000) 14px 28px);
  color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border-radius: 8px;
  margin-bottom: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sim-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.sim-stats .v { font-size: 24px; }
.sim-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 16px; }
.cell { position: relative; aspect-ratio: 1; padding: 0; border-radius: 3px; overflow: hidden; border: 1px solid #000; background: #1f2a24; display: block; }
.cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .4s, opacity .4s; }
.cell-n { position: absolute; left: 3px; top: 2px; font: 600 10px/1 "IBM Plex Mono", ui-monospace, monospace; color: #fff; text-shadow: 0 0 3px #000; }
.cell-st { position: absolute; left: 0; right: 0; bottom: 0; font: 600 9px/1.6 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .1em; text-align: center; }
.cell.held { box-shadow: inset 0 0 0 2px #e2b34f; }
.cell.held .cell-st { background: #e2b34f; color: #0d110f; }
.cell.held img { animation: pulse 1.2s ease-in-out infinite alternate; }
.cell.sold img { filter: grayscale(.85) brightness(.55); }
.cell.sold .cell-st { background: #5fd38a; color: #0d110f; }
.cell.sel { outline: 2px solid #fff; outline-offset: 1px; }
@keyframes pulse { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .cell.held img { animation: none; } }
.sim-cr .sim-legend { padding: 0 16px 12px; margin: 0; color: #7d9286; font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sim-cr .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; border: 1px solid #3a4a40; }
.sim-cr .sw.open { background: #1f2a24; } .sim-cr .sw.held { background: #e2b34f; } .sim-cr .sw.sold { background: #5fd38a; }
.sim-cr #sim-feed { border-top: 1px solid #1f2a24; max-height: 560px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; animation: fadeIn .2s ease-out; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 41; border-radius: 0; border: 0; border-left: 1px solid #000;
  display: flex; flex-direction: column; animation: slideIn .25s ease-out; box-shadow: -12px 0 40px rgba(0, 0, 0, .5); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #1f2a24; }
.sheet-x { background: none; border: 1px solid #3a4a40; color: #d8e6dd; padding: 6px 10px; font-size: 14px; }
.sheet-body { overflow: auto; flex: 1; }
.sheet-art img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.sheet-meta { padding: 14px 16px; border-bottom: 1px solid #1f2a24; }
.sheet-status { margin-top: 6px; } .sheet-status.sold { color: #5fd38a; } .sheet-status.held { color: #e2b34f; }
.sel-feed { max-height: none; }
.sel-feed .cr-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
.sel-feed .cr-slot, .sel-feed .cr-thumb { display: none; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 640px) {
  .sheet { top: auto; left: 0; width: 100vw; height: 82vh; border-left: 0; border-top: 1px solid #000; border-radius: 14px 14px 0 0; animation: slideUp .25s ease-out; }
  .sel-feed .cr-row { grid-template-columns: 56px minmax(0, 1fr); } .sel-feed .cr-time { grid-column: 1; } .sel-feed .cr-body, .sel-feed .cr-stamp { grid-column: 2; }
}
@keyframes slideUp { from { transform: translateY(100%); } }
body.sheet-open { overflow: hidden; }
@media (max-width: 520px) { .sim-grid { gap: 3px; padding: 10px; grid-template-columns: repeat(7, minmax(0, 1fr)); } .cell-st { font-size: 8px; } }
.sim-feed { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; max-height: 460px; overflow: auto; }
.sim-feed li { padding: 6px 0; border-top: 1px solid var(--line); }
.sim-feed li.ok b { color: var(--warn); } .sim-feed li.win b { color: var(--ok); } .sim-feed li.bad b { color: var(--bad); }
.sim-feed li.dim { color: var(--muted); }
@media (max-width: 520px) { .sim-grid { gap: 4px; } .cell { font-size: 11px; } }

/* ---- footer links */
.foot { flex-direction: column; gap: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--muted); }
.foot-brand { display: flex; gap: 10px; align-items: center; }

/* ---- infographics (inline SVG, follow the theme) */
.fig-wrap { margin: 18px 0; }
.fig { width: 100%; max-width: 620px; height: auto; display: block; }
.fig-sm { width: 120px; height: 90px; display: block; margin: 6px 0 8px; }
.g-accent { fill: var(--accent); } .g-ok { fill: var(--ok); } .g-warn { fill: var(--warn); } .g-ink { fill: var(--ink); }
.g-soft { fill: var(--line); } .g-soft-bar { fill: var(--line); } .g-fill-bg { fill: var(--surface); } .g-fill-ink { fill: var(--ink); }
.g-card { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.g-card-ok { fill: var(--surface); stroke: var(--ok); stroke-width: 2.5; }
.g-ring { fill: color-mix(in srgb, var(--surface) 70%, transparent); stroke: var(--ink); stroke-width: 4; }
.g-line { stroke: var(--ink); stroke-width: 2; }
.g-line-faint { stroke: var(--line); stroke-width: 2; }
.g-line-hot { stroke: var(--ok); stroke-width: 3; }
.g-line-ok { stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.g-t { fill: var(--ink); font: 600 14px var(--sans); } .g-t-sm { fill: var(--muted); font: 12px var(--sans); }
.g-t-inv { fill: #fff; font: 600 13px var(--sans); }
.g-t-hand { fill: var(--ink); font: 700 13px "Caveat", "Bradley Hand", cursive; }

/* ---- how it works / terms */
.how-sec { padding: 28px 0; border-top: 1px solid var(--line); max-width: 760px; scroll-margin-top: 80px; }
.how-sec ul, .how-sec ol { padding-left: 20px; } .how-sec li { margin-bottom: 8px; }
.steps-list li { margin-bottom: 10px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-grid .card p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.faq { border-top: 1px solid var(--line); padding: 12px 0; } .faq summary { font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.terms { max-width: 760px; } .terms-list { padding-left: 20px; } .terms-list h3 { margin-top: 18px; }

/* ---- proof photos */
.proof-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.proof-steps .n { font: 600 12px/1 var(--sans); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.proof-steps p { margin: 4px 0 0; }
.proof-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.proof-slot { display: grid; gap: 6px; cursor: pointer; font-size: 14px; }
.proof-slot input { font-size: 12px; padding: 4px; }
.ps-thumb { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-hash { font-size: 11px; color: var(--ok); }
.proof-sealed { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.proof-sealed figure { margin: 0; } .proof-sealed img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.proof-sealed figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- mode switch + Test chain mode ---------- */
.mode-switch { display: inline-flex; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); border-radius: 999px; overflow: hidden; }
.mode-switch button { background: none; border: 0; border-radius: 0; color: var(--bg); padding: 4px 12px; font-size: 12.5px; }
.mode-switch button.on { background: var(--bg); color: var(--ink); font-weight: 600; }
body.chain-mode .demo-bar { background: #0e1411; color: #cfe3d6; }
body.chain-mode .mode-switch button { color: #cfe3d6; }
body.chain-mode .mode-switch button.on { background: #cfe3d6; color: #0e1411; }
#live-ticker b { color: #fff; font-weight: 600; }
.cr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fd38a; margin-right: 4px; vertical-align: 1px;
  animation: crPulse 1.6s ease-in-out infinite; }
@keyframes crPulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cr-dot { animation: none; } .cr-row.fresh { animation: none; } }
.cr-bad { color: #ef7a70; }

/* The control room is always dark: it's a monitor, not a page. */
.cr { --c-bg: #0d110f; --c-line: #1f2a24; --c-ink: #d8e6dd; --c-dim: #7d9286; --c-conf: #e2b34f; --c-fin: #5fd38a; --c-bad: #ef7a70;
  background: var(--c-bg); color: var(--c-ink); border-radius: var(--radius); border: 1px solid #000; overflow: hidden;
  font: 13px/1.45 "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.cr-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--c-line); }
.cr-head > div { padding: 14px 16px; border-right: 1px solid var(--c-line); min-width: 0; }
.cr-head > div:last-child { border-right: 0; }
.cr-k { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--c-dim); }
.cr-v { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-live { color: var(--c-fin); font-size: 15px; margin-top: 9px; }
@media (max-width: 640px) { .cr-head { grid-template-columns: 1fr 1fr; } .cr-head > div:nth-child(2) { border-right: 0; } .cr-head > div:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); } .cr-v { font-size: 18px; } }
.cr-feed { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow: auto; }
.cr-row { display: grid; grid-template-columns: 70px 88px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--c-line); }
.cr-row.fresh { animation: crIn 2.4s ease-out; }
@keyframes crIn { from { background: #1b2a21; } to { background: transparent; } }
.cr-row.failed { color: var(--c-dim); }
.cr-time, .cr-slot { color: var(--c-dim); font-variant-numeric: tabular-nums; }
.cr-thumb { width: 40px; height: 40px; border-radius: 3px; overflow: hidden; background: var(--c-line); display: block; }
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-body { min-width: 0; }
.cr-label { color: #fff; letter-spacing: .06em; font-weight: 600; }
.cr-row.failed .cr-label { color: var(--c-dim); text-decoration: line-through; }
.cr-text { color: var(--c-ink); }
.cr-sig { display: block; color: var(--c-dim); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-seal { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--c-fin); color: var(--c-fin); font-size: 10.5px; letter-spacing: .1em; border-radius: 2px; }
.cr-fps { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--c-dim); font-size: 11.5px; margin-top: 3px; }
.cr-ok { color: var(--c-fin); font-weight: 600; }
.cr-stamp { font-size: 10.5px; letter-spacing: .12em; padding: 3px 7px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.cr-stamp.conf { color: var(--c-conf); }
.cr-stamp.fin { color: var(--c-fin); }
.cr-stamp.bad { color: var(--c-bad); }
.cr-empty { padding: 28px 16px; color: var(--c-dim); }
@media (max-width: 640px) {
  .cr-row { grid-template-columns: 40px auto minmax(0, 1fr); gap: 4px 10px; }
  .cr-thumb { grid-row: 1 / span 3; grid-column: 1; }
  .cr-time { grid-column: 2; font-size: 11.5px; }
  .cr-slot { grid-column: 3; font-size: 11.5px; }
  .cr-body, .cr-stamp { grid-column: 2 / 4; justify-self: start; }
}
.cr-mini img { width: 36px; height: 36px; object-fit: cover; border-radius: 3px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.tx-steps { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.tx-steps:empty { display: none; }
.tx-steps li { padding: 6px 0; border-top: 1px solid var(--line); }
.tx-steps .st { color: var(--muted); }
.tx-steps .st.confirmed, .tx-steps .st.sent { color: var(--warn); font-family: ui-monospace, Menlo, monospace; }
.tx-steps .st.confirmed { color: var(--ok); }
.tx-steps .st.finalized { color: var(--ok); font-weight: 600; }
.tx-steps .st.bad { color: var(--bad); }
.rec { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.rec li { padding: 7px 0; border-top: 1px solid var(--line); }

/* ---------- pictograms ---------- */
.how-head { display: flex; align-items: center; gap: 14px; margin-bottom: .5em; }
.how-head h2 { margin: 0; }
.pg { width: 72px; height: 72px; flex: 0 0 auto; padding: 8px; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.trust-grid .pg { width: 64px; height: 64px; display: block; margin-bottom: 12px; }
.pg-l { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-faint { stroke: var(--muted); opacity: .6; }
.pg-thick { stroke-width: 4; }
.pg-a { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pg-ok { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pg-w { stroke: var(--warn); stroke-width: 3.2; stroke-linecap: round; }
.pg-inv { stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-dash { stroke-dasharray: 3 3; }
.pg-l-fill { fill: var(--ink); } .pg-a-fill { fill: var(--accent); } .pg-ok-fill { fill: var(--ok); }
.pg-t { fill: var(--ink); font: 700 11px var(--sans); }
.pg-t-sm { fill: var(--muted); font: 600 7px var(--sans); letter-spacing: .02em; }
.race-title { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.race-title img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.race-title h2 { margin: 0 0 4px; }

/* ---------- verify seal + certificate ---------- */
.verify { margin-top: 6px; }
.verify-steps { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.verify-steps li { padding: 5px 0; opacity: .35; transition: opacity .25s; display: flex; gap: 8px; align-items: center; }
.verify-steps li.lit { opacity: 1; }
.vdot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: 0 0 auto; transition: background .25s, border-color .25s; }
.verify-steps li.lit .vdot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 8px var(--ok); }
.verify-result { display: flex; gap: 16px; align-items: center; }
.verify-result.ok h3 { color: var(--ok); margin-bottom: 4px; }
.verify-result p { margin: 0; }
.seal { width: 96px; height: 96px; flex: 0 0 auto; }
.seal-svg { width: 100%; height: 100%; fill: var(--ok); }
.seal-ring { fill: none; stroke: var(--surface); stroke-width: 2; stroke-dasharray: 3 3; }
.seal-check { fill: none; stroke: var(--surface); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck .35s .35s ease-out forwards; }
.seal.stamp { animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-18deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .seal.stamp { animation: none; transform: rotate(-8deg); } .seal-check { animation: none; stroke-dashoffset: 0; } }

.cert { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 36px 40px;
  box-shadow: 0 1px 0 var(--line), 0 18px 50px rgba(0, 0, 0, .08); outline: 1px solid var(--line); outline-offset: -12px; }
@media (max-width: 640px) { .cert { padding: 24px 20px; } }
.cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cert-brand { font: 600 13px/1 var(--sans); letter-spacing: .3em; color: var(--accent); }
.cert-title { font-size: clamp(28px, 5vw, 44px); text-align: center; margin-bottom: 8px; }
.cert-sub { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.cert-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 640px) { .cert-body { grid-template-columns: minmax(0, 1fr); } }
.cert-art img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--line); }
.cert-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 15px; }
.cert-facts dt { color: var(--muted); } .cert-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cert-facts .mono, .cert-facts code { word-break: break-all; }  /* long wallet addresses and token codes wrap on phones */
.cert-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 600; }
.cert-checks li.ok span { color: var(--ok); } .cert-checks li.bad { color: var(--bad); }
.cert-verify { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cert-verify #verify-out { margin-top: 14px; }
.cert-foot { margin-top: 20px; text-align: center; }
.cert-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cert-card { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.cert-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; }
.cert-card > span { display: flex; flex-direction: column; gap: 3px; }
.cert-link { color: var(--accent); font-size: 14px; }
.bad-mark { color: var(--bad); }

/* ---------- leaderboard ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.board-head h3 { margin: 0; }
.board-list { list-style: none; padding: 0; margin: 0; }
.board-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.board-list li.me { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.board-list .rank { font: 600 13px ui-monospace, Menlo, monospace; color: var(--muted); text-align: right; }
.board-list li:nth-child(-n+3) .rank { color: var(--accent); }
.board-list .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .money { grid-column: 2 / 4; font-size: 13px; color: var(--ok); }
.tier-badge { font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; border: 1px solid currentColor; vertical-align: 2px; }
.t-museum { color: #b8860b; } .t-gallery { color: var(--accent); } .t-studio { color: var(--muted); }
a.choice.btn { padding: 8px 14px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.logo-card.on { border-color: var(--accent); }
.logo-big { background: #0d0d0d; border-radius: 10px; padding: 18px; display: flex; justify-content: center; }
.logo-word { letter-spacing: .2em; color: var(--accent); font-size: 14px; }

/* ---------- depth: raised headings and cards ---------- */
h1, h2 { text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 18px rgba(0, 0, 0, .10); letter-spacing: -.005em; }
@media (prefers-color-scheme: dark) { h1, h2 { text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 2px 0 color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 18px rgba(0, 0, 0, .5); } }
.card { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .06); }
button.primary, .btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- CRT: control room, simulation, race pages ---------- */
.crt-h { font-family: "Michroma", "Eurostile", "Microgramma", "Helvetica Neue", Arial, sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(20px, 3.4vw, 30px); letter-spacing: .2em; line-height: 1.2; color: #16241b;
  text-shadow: 0 0 1px rgba(30, 120, 70, .25), 0 0 16px rgba(95, 211, 138, .35); }
.crt-h::before { content: ""; display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: #5fd38a; margin-right: .6em; vertical-align: .18em;
  box-shadow: 0 0 6px #5fd38a, 0 0 14px rgba(95, 211, 138, .6); }
@media (prefers-color-scheme: dark) { .crt-h { color: #e9f3ec; text-shadow: 0 0 10px rgba(95, 211, 138, .45), 0 0 24px rgba(95, 211, 138, .2); } }
.cr { position: relative; border-radius: 18px; text-shadow: 0 0 5px rgba(140, 255, 190, .18);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .7), 0 0 0 6px #1a1d1b, 0 0 0 7px #000, 0 18px 40px rgba(0, 0, 0, .35); }
.cr::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%); }
.cr-v { font-family: "VT323", ui-monospace, monospace; font-size: 34px; font-weight: 400; color: #a8ffc6; text-shadow: 0 0 8px rgba(95, 211, 138, .75), 0 0 2px #fff; margin-top: 2px; }
.cr-live { font-size: 22px; }
.cr-k { color: #6f9c80; text-shadow: 0 0 4px rgba(95, 211, 138, .35); }
.cr-label { text-shadow: 0 0 6px rgba(255, 255, 255, .35); }
.cr-stamp.fin, .cr-seal, .cr-ok { text-shadow: 0 0 6px rgba(95, 211, 138, .8); box-shadow: 0 0 8px rgba(95, 211, 138, .25); }
.cr-stamp.conf { text-shadow: 0 0 6px rgba(226, 179, 79, .7); }
.cr.blip { animation: crtBlip .32s steps(3); }
@keyframes crtBlip { 0% { filter: brightness(1.25); } 50% { filter: brightness(.88); } 100% { filter: none; } }
.cr .hint { color: #7d9286; }
.cr a { color: #ffbf6b; }
.cr-table { background: #0d110f; color: #d8e6dd; padding: 6px 14px 10px; font: 13.5px/1.45 "IBM Plex Mono", ui-monospace, monospace; }
.cr-table table.list th { color: #6f9c80; border-color: #1f2a24; }
.cr-table table.list td { border-color: #1f2a24; }
.race.card.cr { background: #0d110f; color: #d8e6dd; border-color: #000; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; }
.race.cr .race-table td { border-color: #1f2a24; }
.race.cr .race-table tr.win td { background: rgba(95, 211, 138, .12); }
.race.cr .race-state { color: #7d9286; } .race.cr .race-state.PAID, .race.cr .race-state.SOLD { color: #5fd38a; } .race.cr .race-state.HELD { color: #e2b34f; }
.race.cr .ok-mark { color: #5fd38a; } .race.cr .bad-mark { color: #ef7a70; }
@media (prefers-reduced-motion: reduce) { .cr.blip { animation: none; } }
@media (max-width: 640px) { .cr { border-radius: 12px; box-shadow: inset 0 0 40px rgba(0, 0, 0, .7), 0 0 0 4px #1a1d1b; } .cr-v { font-size: 26px; } }
.cr-table { overflow-x: auto; }
.sheet.cr { position: fixed; border-radius: 0; box-shadow: -12px 0 40px rgba(0, 0, 0, .5), inset 0 0 70px rgba(0, 0, 0, .6); }
@media (max-width: 640px) { .sheet.cr { border-radius: 14px 14px 0 0; } }

/* ---------- animated Hallmark logo ---------- */
.lg-ring { transform-box: view-box; transform-origin: 32px 32px; animation: lgSpin 24s linear infinite; }
.lg-on { animation: lgWarm 1.4s steps(1) both, lgFlick 11s 2s infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgWarm { 0% { opacity: 0; } 12% { opacity: .8; } 18% { opacity: .1; } 30% { opacity: .9; } 36% { opacity: .35; } 50%, 100% { opacity: 1; } }
@keyframes lgFlick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .55; } 98% { opacity: 1; } 99% { opacity: .75; } }
.brand:hover .lg-ring { animation-duration: 4s; }
@media (prefers-reduced-motion: reduce) { .lg-ring, .lg-on { animation: none; } }

/* ---------- admin power panel ---------- */
.power { background: #0d110f; color: #d8e6dd; padding: 14px 18px; margin-bottom: 18px; font: 13.5px/1.4 "IBM Plex Mono", ui-monospace, monospace; }
.power-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 6px 0; position: relative; z-index: 3; }
.power-row .cr-k { width: 60px; }
.power-row b { font-family: "VT323", ui-monospace, monospace; font-size: 24px; font-weight: 400; min-width: 90px; }
.pw-on { color: #a8ffc6; text-shadow: 0 0 8px rgba(95, 211, 138, .8); } .pw-off { color: #ef7a70; text-shadow: 0 0 8px rgba(239, 122, 112, .6); }
.power button, .power select { background: #16201a; color: #d8e6dd; border-color: #2c3a31; font-size: 13px; padding: 8px 12px; }
.power-note { color: #7d9286; font-size: 12px; margin: 6px 0 0; position: relative; z-index: 3; }

/* =================== one-mode site (Nov 2026) =================== */
#live-ticker { margin-left: auto; font-size: 12px; white-space: nowrap; }
#live-ticker a { color: var(--muted); text-decoration: none; }
#live-ticker b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { #live-ticker { display: none; } }
.draft-banner { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px;
  background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--ink); margin-bottom: 14px; }

/* ---- BETA TEST DRIVE strip: deliberately looks like a separate play layer ---- */
.td { background: #16130c; color: #f3ecd8; font-family: var(--sans); position: relative; z-index: 5; }
.td::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(-45deg, #f5c400 0 12px, #16130c 12px 24px); }
.td-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 9px 20px; font-size: 14px; }
.td-tag { font: 700 11px/1 var(--sans); letter-spacing: .16em; background: #f5c400; color: #16130c; padding: 5px 8px; border-radius: 3px; }
.td-now b { color: #fff; }
.td-role { font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; vertical-align: 1px; }
.td-next { color: #f5c400; font-weight: 600; text-decoration: none; }
.td-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.td-tools button { background: transparent; color: #f3ecd8; border: 1px solid #5a4f33; padding: 6px 10px; font-size: 13px; }
.td-tools a { color: #c9bf9f; font-size: 13px; }
.td-panel { padding: 6px 20px 22px; max-width: 1180px; margin: 0 auto; }
.td-intro h2 { color: #fff; margin: 4px 0 4px; text-shadow: none; font-size: clamp(22px, 3.4vw, 30px); }
.td-intro p { color: #c9bf9f; margin: 0 0 16px; max-width: 640px; }
.td-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.td-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px; border-radius: 12px;
  background: #221d12; border: 1px solid #3d3522; color: #f3ecd8; cursor: pointer; transition: transform .12s, border-color .12s; }
.td-card:hover { transform: translateY(-2px); border-color: #f5c400; }
.td-card.on { border-color: #f5c400; box-shadow: 0 0 0 1px #f5c400 inset; }
.td-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--sans); color: #16130c; }
.td-artist { background: #f0a37a; } .td-agent { background: #8fd3a8; } .td-buyer { background: #9cc4f0; }
.td-name { font-weight: 600; font-size: 16px; color: #fff; }
.td-line { font-size: 13px; color: #c9bf9f; line-height: 1.35; }
.td-play { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: #f5c400; }
@media (max-width: 640px) { .td-bar { padding: 8px 14px; } .td-tools { margin-left: 0; } .td-panel { padding: 4px 14px 18px; } .td-cards { grid-template-columns: 1fr 1fr; } }

/* ---- home ---- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 12px 0 40px; }
.hero2 h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 20px; }
.home-feed { background: #0d110f; color: #d8e6dd; }
.home-feed-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #1f2a24; position: relative; z-index: 3; }
.home-feed .cr-feed { max-height: 420px; }
.home-feed .cr-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
.home-feed .cr-time, .home-feed .cr-slot, .home-feed .cr-sig, .home-feed .cr-fps { display: none; }
.home-feed .cr-thumb { grid-column: 1; }
@media (max-width: 860px) { .hero2 { grid-template-columns: 1fr; } }

/* ---- how it works ---- */
.how { max-width: 860px; margin: 0 auto; }
.how h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.how-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.how-points li { padding-left: 20px; position: relative; font-size: 17px; }
.how-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.how-pick-h { margin-top: 36px; }
.how-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 26px; }
.how-role { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; transition: transform .12s, border-color .12s; }
.how-role:hover { transform: translateY(-3px); border-color: var(--accent); }
.how-role b { font-size: 19px; } .how-role span { color: var(--muted); font-size: 15px; }
.how-role .pg { margin-bottom: 6px; }
@media (max-width: 700px) { .how-pick { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 17px var(--sans);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
.step h3 { margin: 6px 0 4px; } .step p { margin: 0; color: var(--muted); }
.how-trust { margin-top: 34px; }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.how-more { margin-top: 26px; font-size: 16px; }
.how-others { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin: 20px 0; }
.d-sec h2 { font-size: 22px; margin-bottom: 8px; }
.d-sec dl { margin: 0; }
.d-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.d-row dt { font-weight: 600; } .d-row dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .d-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---- waking overlay ---- */
.waking { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10, 14, 12, .82); padding: 16px; }
.waking-box { max-width: 460px; width: 100%; background: #0d110f; color: #d8e6dd; padding: 30px 28px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.waking-box .crt-h { color: #e9f3ec; font-size: 22px; margin: 6px 0 0; position: relative; z-index: 3; }
.waking-box p { color: #9fb5a7; margin: 0; position: relative; z-index: 3; }
.waking-bar { width: 100%; height: 6px; background: #1f2a24; border-radius: 3px; overflow: hidden; position: relative; z-index: 3; }
.waking-bar span { display: block; height: 100%; background: #5fd38a; box-shadow: 0 0 10px #5fd38a; transition: width 1s linear; }
.waking-box button { position: relative; z-index: 3; }
.how .steps { grid-template-columns: 1fr; max-width: 660px; counter-reset: none; }
.how .step::before { content: none; }

/* ---- test drive boxes inside pages ---- */
.td-box { position: relative; background: #16130c; color: #f3ecd8; border-radius: 12px; padding: 18px 18px 16px; margin: 4px 0 18px; overflow: hidden; }
.td-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, #f5c400 0 10px, #16130c 10px 20px); }
.td-box .td-tag { display: inline-block; margin: 4px 0 8px; }
.td-box h3 { color: #fff; margin: 0 0 4px; } .td-box p { color: #c9bf9f; margin: 0 0 12px; font-size: 14px; }
.td-box button { background: #221d12; color: #f3ecd8; border-color: #5a4f33; }
.td-agents { display: flex; flex-wrap: wrap; gap: 8px; }
.td-agent { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; font-size: 14px; }
.td-agent:hover { border-color: #f5c400; } .td-agent .mono { color: #f5c400; font-size: 12px; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pa { display: flex; flex-direction: column; gap: 4px; padding: 6px; text-align: left; border-radius: 8px; }
.pa img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; }
.pa b { font-size: 12.5px; color: #fff; line-height: 1.25; font-weight: 600; } .pa span { font-size: 12px; color: #f5c400; }
.pa.on { border-color: #f5c400; box-shadow: 0 0 0 1px #f5c400 inset; }
.pa-chosen { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px dashed #c9a400; border-radius: 8px; background: color-mix(in srgb, #f5c400 8%, transparent); font-size: 14px; }
.pa-chosen img { width: 56px; height: 70px; object-fit: cover; border-radius: 3px; }

/* ---- leaderboard ---- */
.lb-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 26px; }
.lb-tiercard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.lb-tiercard b { display: block; font-size: 16px; } .lb-tiercard span { color: var(--muted); font-size: 13.5px; }
.t-museum b, .pod-tier.t-museum, .lb-tier.t-museum { color: #b8860b; } .t-gallery b, .pod-tier.t-gallery, .lb-tier.t-gallery { color: #6c7682; } .t-studio b, .pod-tier.t-studio, .lb-tier.t-studio { color: #a0602f; }
@media (max-width: 640px) { .lb-tiers { grid-template-columns: 1fr; } }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 760px; margin: 0 auto 26px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pod-name { font: 600 17px/1.2 var(--sans); margin-top: 6px; overflow-wrap: anywhere; }
.pod-tier { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pod-sub { font-size: 13px; color: var(--muted); }
.pod-block { width: 100%; margin-top: 10px; border-radius: 10px 10px 0 0; display: grid; place-items: center; position: relative; overflow: hidden;
  font: 400 44px/1 "Michroma", "Helvetica Neue", Arial, sans-serif; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.pod-1 .pod-block { height: 150px; background: linear-gradient(160deg, #ffe79a, #d4a017 55%, #8a6300); }
.pod-2 .pod-block { height: 112px; background: linear-gradient(160deg, #ffffff, #b9c2cc 55%, #6c7682); }
.pod-3 .pod-block { height: 86px; background: linear-gradient(160deg, #f3c29b, #b8743f 55%, #6e3d17); }
.pod-1 .pod-block::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 85%, 100% { left: 120%; } }
.pod.me .pod-name::after { content: " (you)"; color: var(--accent); }
.pod-empty { visibility: hidden; }
.lb-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.lb-list li { display: grid; grid-template-columns: 32px 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lb-list li.me { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent) inset; }
.lb-rank { font: 600 13px ui-monospace, Menlo, monospace; color: var(--muted); text-align: right; }
.lb-name { font-weight: 600; min-width: 0; }
.lb-tier { font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.lb-bot { font: 600 10px/1 var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.lb-sales { color: var(--muted); font-size: 14px; } .lb-money { color: var(--ok); font-weight: 600; font-size: 14px; }
.lb-prog { height: 6px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; } .lb-prog span { display: block; height: 100%; background: var(--accent); }
.lb-progtext { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.lb-note, .lb-you { text-align: center; margin-top: 18px; }
@media (max-width: 560px) { .podium { gap: 6px; } .pod-name { font-size: 14px; } .pod-block { font-size: 30px; } .lb-list li { grid-template-columns: 26px 30px minmax(0, 1fr) auto; } .lb-money { grid-column: 3 / 5; } }
@media (prefers-reduced-motion: reduce) { .pod-1 .pod-block::after { animation: none; display: none; } }

/* ---- characters, budgets, gold ---- */
.hero3 { max-width: 760px; margin: 28px 0 44px; }
.hero3 h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; margin-bottom: 14px; }
.avatar { display: inline-block; vertical-align: middle; border-radius: 50%; flex: 0 0 auto; }
.td-now { color: #f3ecd8; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.td-card .avatar { margin-bottom: 2px; }
.td-make { text-decoration: none; border-style: dashed; border-color: #f5c400; }
.td-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f5c400; color: #16130c; font: 700 26px/1 var(--sans); }
.char-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.char-head h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 8px; }
.char-level { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 130px; }
@media (max-width: 680px) { .char-head { grid-template-columns: 1fr; justify-items: start; } .char-level { align-items: flex-start; text-align: left; } }
.role-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 14px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.char-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.char-stats .card { display: flex; flex-direction: column; gap: 4px; } .char-stats b { font-size: 26px; font-family: var(--serif); }
@media (max-width: 680px) { .char-stats { grid-template-columns: 1fr 1fr; } }
.away { border-color: #f5c400; background: color-mix(in srgb, #f5c400 9%, var(--surface)); }
.away h3 { margin-top: 0; } .away ul { margin: 0; padding-left: 18px; } .away li { margin: 6px 0; }
.ev-sold, .ev-commission { color: var(--ok); } .ev-gold { color: #b8860b; font-weight: 600; }
.next-step { margin: 6px 0 22px; display: inline-flex; }
.mine-list { display: grid; gap: 10px; margin-bottom: 18px; }
.mine-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.mine-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 4px; }
.nudge { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: 14px; }
.tech summary { cursor: pointer; font-weight: 600; } .tech[open] summary { margin-bottom: 10px; } .tech .row { padding: 6px 0; }
details.tech { margin-top: 18px; }
.budget-line { margin: 0; font-size: 15px; }
.history-card { margin-top: 20px; } .history-card h3 { margin-top: 0; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.history-grid div { display: flex; flex-direction: column; gap: 2px; } .history-grid b { font-size: 20px; }
/* gold pieces */
.tile.gold .art, .art.big.gold { position: relative; box-shadow: 0 0 0 4px #d4a017, 0 0 0 6px #fff3c4, 0 8px 26px rgba(212, 160, 23, .45); border-radius: 4px; overflow: hidden; }
.tile.gold .art::after, .art.big.gold::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 180, .55) 45%, transparent 60%); background-size: 250% 100%; animation: goldSheen 5s ease-in-out infinite; }
@keyframes goldSheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .tile.gold .art::after, .art.big.gold::after { animation: none; } }
.gold-badge { position: absolute; left: 10px; top: 10px; z-index: 2; font: 700 11px/1 var(--sans); letter-spacing: .14em; padding: 6px 9px; border-radius: 4px;
  background: linear-gradient(160deg, #ffe79a, #d4a017 60%, #8a6300); color: #2a1c00; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.gold-pill { font: 700 10px/1 var(--sans); letter-spacing: .12em; padding: 3px 6px; border-radius: 3px; background: #d4a017; color: #2a1c00; vertical-align: 2px; }
.gold-reveal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(20, 14, 0, .7); padding: 16px; animation: fadeIn .2s; }
.gold-card { max-width: 440px; text-align: center; background: linear-gradient(170deg, #fff8dc, #f3dc8a); color: #2a1c00; border-radius: 16px; padding: 30px 26px;
  box-shadow: 0 0 0 3px #d4a017, 0 20px 60px rgba(0, 0, 0, .5); animation: goldPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes goldPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.gold-card h2 { font-size: 40px; margin: 4px 0 8px; color: #6b4b00; text-shadow: 0 2px 0 #fff3c4; }
.gold-burst { font-size: 54px; line-height: 1; color: #d4a017; text-shadow: 0 0 20px #ffe79a; animation: lgSpin 8s linear infinite; display: inline-block; }
/* builder */
.builder-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 720px) { .builder-grid { grid-template-columns: 1fr; } }
.builder-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 16px; }
.av-name { font: 600 20px var(--serif); }
.av-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
@media (max-width: 520px) { .av-row { grid-template-columns: 1fr; } }
.sw-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sw-row .sw { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 2px solid var(--line); }
.sw-row .sw.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt { padding: 6px 12px; font-size: 14px; border-radius: 999px; } .opt.on { background: var(--accent); color: #fff; border-color: var(--accent); }
/* leaderboard faces */
.pod-av { position: relative; display: inline-block; }
.pod-av .pod-icon { position: absolute; right: -8px; bottom: -6px; }
.lb-av { position: relative; display: inline-block; width: 36px; height: 36px; }
.lb-av .tier-icon { position: absolute; right: -5px; bottom: -4px; }
.lb-list li { grid-template-columns: 32px 40px minmax(0, 1fr) auto auto; }

/* ---- suggested price, reputation, ratings ---- */
.suggest { margin: 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 8%, transparent); font-size: 15px; }
.suggest .link { padding: 0 4px; font-size: 14px; }
.rep { max-width: 360px; margin-top: 10px; }
.rep-top { display: flex; gap: 10px; align-items: baseline; font-size: 14px; } .rep-top b { color: var(--accent); }
.rep-top .hint:last-child { margin-left: auto; }
.rep-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 4px; }
.rep-bar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #e9a46b, var(--accent)); transition: width .6s; }
.stars { color: #d4a017; letter-spacing: .05em; white-space: nowrap; }
.my-stars { margin: 6px 0 0; }
.ratings-card { margin-top: 20px; } .ratings-card h3 { margin-top: 0; } .ratings-card h4 { margin: 18px 0 8px; }
.reviews { list-style: none; padding: 0; margin: 0; }
.reviews li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.reviews p { margin: 2px 0 0; font-style: italic; }
.rate-form { display: grid; grid-template-columns: minmax(0, 200px) auto auto; justify-content: start; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .rate-form { grid-template-columns: 1fr; } }
.rate-who { display: flex; gap: 8px; align-items: center; } .rate-who .hint { font-size: 12px; }
.star-pick { display: flex; } .star-pick button { border: 0; background: none; font-size: 24px; padding: 0 2px; color: var(--line); cursor: pointer; }
.star-pick button.on { color: #d4a017; }
.rate-form input { min-width: 0; }

/* Artist's share box and the agent invitation it links to */
.share-card .share-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.share-card .share-row p { margin: 2px 0 0; }
.share-card .share-row button { flex: none; }
@media (max-width: 520px) { .share-card .share-row { flex-direction: column; align-items: stretch; } }
.invite-card { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.invite-card .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.invite-card h3 { margin: 0; }
.invite-card p { margin: 0; }

/* Photo approval */
.pending-card { border-color: var(--warn); }
.pending-pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.attention { border: 2px solid var(--bad); margin-bottom: 18px; }
.attention ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.attention .row { margin-top: 8px; }
.photo-queue .pq-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.photo-queue .pq-item img { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; background: var(--line); display: block; }
.photo-queue .pq-reject { display: grid; gap: 8px; }
@media (max-width: 520px) { .photo-queue .pq-item { grid-template-columns: 90px 1fr; } .photo-queue .pq-item img { width: 90px; height: 90px; } }
.td-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #f5c400; color: #111; font-size: 11px; font-weight: 800; text-align: center; }
.flag-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.flag-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.flag-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }

/* Tappable names and people's pages */
a.who-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
a.who-link:hover { color: var(--accent); text-decoration-style: solid; }
.person-page .person-sec { margin-top: 26px; }
.person-page .person-sec h3 { margin-bottom: 12px; }
.person-page .person-sec h3 .hint { font-family: var(--sans); font-size: 14px; }

/* Logins */
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.legacy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.legacy-row button { margin-left: auto; }
.cred { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.cred span { color: var(--muted); font-size: 13px; min-width: 76px; }
.cred b { font-size: 17px; word-break: break-all; }
.login-card-new { border: 2px solid var(--accent); max-width: 560px; }
.login-card { margin-top: 18px; }
.reset-box { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 10%, transparent); }
.reset-box p { margin: 4px 0 0; }
.acct-btns { white-space: nowrap; }
.acct-btns button { font-size: 13px; padding: 4px 9px; margin-left: 4px; }

/* Buying through an agent */
.agent-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.agent-pick legend { font-weight: 600; margin-bottom: 4px; }
.agent-pick p { margin: 0 0 4px; }
.agent-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.agent-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.agent-opt > span { display: flex; flex-direction: column; }
.agent-opt .stars { font-size: 13px; }
.waiting-card { border-color: var(--warn); }

/* Resale */
.resale-pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.collection { margin-top: 18px; }
.agent-opt input[type=radio] { width: auto; flex: none; margin: 0; accent-color: var(--accent); }
.agent-opt svg { flex: none; }
.agent-opt > span { flex: 1; min-width: 0; }
.agent-opt .mono { font-size: 12px; }

/* People */
.people-search { width: 100%; max-width: 360px; margin: 6px 0 16px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.person-card { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.person-card:hover { border-color: var(--accent); }
.person-card > div { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.person-card .stars { font-size: 13px; }
.mini-rep { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.mini-rep span { display: block; height: 100%; background: var(--accent); }
#people-more { margin-top: 14px; }

/* Pieces that need an agent */
.need-badge { position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; background: #111; color: #f5c400; }
.art-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.art-filter .hint { flex-basis: 100%; }
.tile .art { position: relative; }

/* Character builder: the face preview stays pinned on wide screens, below the top bar;
   on phones it scrolls with the page (the top bar is too tall to pin it under). */
.builder-preview { top: 96px; }
@media (max-width: 720px) {
  .builder-preview { position: static; gap: 8px; padding: 14px; }
  .builder-preview #av-preview svg { width: 130px; height: 130px; }
}

/* Choosing your style */
.look-picker { margin: 10px 0 16px; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.look { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; font-size: 11px; text-align: left; color: inherit; }
.look img { width: 100%; aspect-ratio: 4/5; border-radius: 4px; display: block; }
.look:hover:not(:disabled) { border-color: var(--accent); }
.look.on { border-color: var(--accent); }
.look:disabled { opacity: .3; cursor: not-allowed; }

/* ownership history (original sale and resales) */
.owners-card { margin-top: 18px; }
.owners { list-style: none; margin: 10px 0 0; padding: 0; }
.owners li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 8px 2px; position: relative; }
.owners li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 26px; bottom: -8px; width: 2px; background: var(--line); }
.owners li > div { display: flex; flex-direction: column; gap: 2px; }
.owners li.here > div > b { text-decoration: underline; text-decoration-color: var(--accent, currentColor); text-underline-offset: 4px; }
.own-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; background: var(--line); position: relative; z-index: 1; }
.own-dot.made { background: #2a9d8f; } .own-dot.sold { background: #e9c46a; } .own-dot.resale { background: #e76f51; }

/* phones: the Artwork page (and other piece grids) as two smaller tiles across */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .tile .meta { padding-top: 6px; }
  .tile .title { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
  .tile .sub { font-size: 12px; line-height: 1.35; }
  .tile .meta .row { flex-wrap: wrap; gap: 2px 6px; }
  .tile .badge { font-size: 10px; padding: 1px 6px; }
  .tile .need-badge, .tile .gold-badge { font-size: 9px; padding: 2px 5px; }
}

/* Admin: ArtAgent earnings (series colours validated for both themes) */
.earnings { --e-artist: #2a78d6; --e-agent: #eb6834; --e-fee: #1baf7a; --e-roy: #eda100; position: relative; margin-top: 18px; }
@media (prefers-color-scheme: dark) { .earnings { --e-artist: #3987e5; --e-agent: #d95926; --e-fee: #199e70; --e-roy: #c98500; } }
.e-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.e-head h3 { margin: 0; }
.e-seg-ctl { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.e-seg-ctl button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; }
.e-seg-ctl button.on { background: var(--ink); color: var(--bg); }
.e-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.e-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.e-tile b { font-size: 22px; font-variant-numeric: tabular-nums; }
.e-tile .hint { font-size: 12px; }
.e-chart { margin-top: 20px; }
.e-chart h4, .e-tops h4 { margin: 0 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.e-svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.e-grid { stroke: var(--line); stroke-width: 1; }
.e-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.e-line { stroke: var(--e-fee); stroke-width: 2; stroke-linejoin: round; }
.e-dot, .e-hdot { fill: var(--e-fee); stroke: var(--surface); stroke-width: 2; }
.e-direct { fill: var(--ink); font-size: 12px; font-weight: 600; }
.e-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.e-bar { fill: var(--e-artist); }
.e-hits rect:hover { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.e-split { display: flex; gap: 2px; height: 18px; border-radius: 4px; overflow: hidden; }
.e-seg { display: block; min-width: 2px; }
.e-seg:first-child { border-radius: 4px 0 0 4px; } .e-seg:last-child { border-radius: 0 4px 4px 0; }
.e-legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 16px; font-size: 14px; }
.e-legend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.e-legend b, .e-top b { font-variant-numeric: tabular-nums; }
.e-pct { color: var(--muted); font-size: 12px; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.e-key { width: 12px; height: 12px; border-radius: 3px; }
.e-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 22px; }
.e-top { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.e-top li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(40px, 1fr) auto; gap: 4px 10px; align-items: center; }
.e-top li .hint { grid-column: 1 / -1; font-size: 12px; margin-top: -4px; }
.e-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-track { height: 8px; background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 4px; overflow: hidden; }
.e-track span { display: block; height: 100%; background: var(--e-artist); border-radius: 0 4px 4px 0; }
.e-tops section:nth-child(2) .e-track span { background: var(--e-agent); }
.e-table { margin-top: 20px; }
.e-table summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.e-scroll { overflow-x: auto; margin-top: 8px; }
.e-table table { border-collapse: collapse; font-size: 13px; width: 100%; }
.e-table th, .e-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.e-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 8px; font-size: 13px; line-height: 1.4; max-width: 260px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.e-tip span { opacity: .8; font-size: 12px; }

/* change-the-price box */
.price-edit { margin-top: 10px; }
.price-edit summary { cursor: pointer; color: var(--accent, inherit); font-weight: 600; }
.price-edit form { margin-top: 10px; }
.price-quick { flex-wrap: wrap; gap: 8px; }
.price-quick button { font-size: 13px; padding: 6px 10px; }
.price-cap { color: #b45309; }

/* SafeSearch labels in the photo queue */
.safe-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.safe-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.safe-chip.ok { color: #1a7f52; border-color: #1a7f5266; }
.safe-chip.warn { color: #b45309; border-color: #b4530966; }
.safe-chip.bad { color: #fff; background: #c0392b; border-color: #c0392b; font-weight: 600; }
#ss-test { font-size: 12px; padding: 2px 8px; margin-left: 6px; }
.web-found { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.web-found ul { margin: 2px 0 0; padding-left: 18px; font-size: 13px; }
.web-found li { margin: 2px 0; overflow-wrap: anywhere; }
.cert-retired { max-width: 560px; margin: 6px auto 20px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 15%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); text-align: center; font-size: 14px; }

/* ---------- Live sales: CRT screens set into a panel (layout B). Style picked in Admin. ---------- */
.crt-console { --glass-hi: #123322; --glass-mid: #08180f; --glass-lo: #020704; --phos: #b4ffd0; --phos-rgb: 95, 211, 138; --label: #7fb593; --text: #cfeedd; --dim: #7d9a88;
  --glow: 1; --scan: .2; --tube: 30px / 36px; --panel-hi: #2c2f2c; --panel-lo: #1d1f1d; --amber: #e2b34f;
  --thumb: grayscale(1) sepia(1) hue-rotate(75deg) saturate(2.6) brightness(.92) contrast(1.15);
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; padding: 30px; border-radius: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse 90% 60% at 40% 0%, rgba(255, 255, 255, .05), transparent 70%), linear-gradient(180deg, var(--panel-hi) 0%, var(--panel-lo) 100%);
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -2px 0 rgba(0, 0, 0, .6), 0 24px 60px rgba(0, 0, 0, .45); }
.crt-console[data-crt="amber"] { --glass-hi: #33220a; --glass-mid: #1a1005; --glass-lo: #070401; --phos: #ffd48a; --phos-rgb: 255, 170, 60; --label: #c9a066; --text: #f3dfbd; --dim: #a88a60;
  --thumb: grayscale(1) sepia(1) hue-rotate(-12deg) saturate(2.4) brightness(.95) contrast(1.1); }
.crt-console[data-crt="soft"] { --glass-hi: #0e271a; --glass-mid: #06130c; --glass-lo: #020604; --phos: #9fe6b8; --label: #6f9c80; --text: #c3dccd; --glow: .45;
  --thumb: grayscale(1) sepia(.8) hue-rotate(75deg) saturate(1.6) brightness(.9) contrast(1.1); }
.crt-console[data-crt="mission"] { --glass-hi: #0d1c24; --glass-mid: #071017; --glass-lo: #03070a; --phos: #d8f4ff; --phos-rgb: 120, 200, 255; --label: #8fb3c4; --text: #d5e6ee; --dim: #7f97a3;
  --glow: .6; --scan: 0; --tube: 14px; --panel-hi: #30353a; --panel-lo: #1f2327;
  --thumb: grayscale(1) sepia(1) hue-rotate(165deg) saturate(1.5) brightness(.95) contrast(1.1); }
/* the recessed opening in the panel */
.crt-bezel { display: block; position: relative; border-radius: 24px; padding: 14px; min-width: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, #070807 0%, #141614 30%, #262926 70%, #3a3e3a 100%);
  background-blend-mode: overlay, normal;
  box-shadow: inset 0 12px 20px rgba(0, 0, 0, .95), inset 0 -3px 4px rgba(255, 255, 255, .13), inset 3px 0 6px rgba(0, 0, 0, .55), inset -3px 0 6px rgba(0, 0, 0, .35),
    0 0 0 1px #050605, 0 0 0 4px #2f322f, 0 -2px 0 4px rgba(255, 255, 255, .08), 0 0 0 5px #121412, 0 6px 12px 4px rgba(0, 0, 0, .55); }
.crt-bezel::before { content: ""; position: absolute; inset: 5px; border-radius: 20px; pointer-events: none;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .1), inset 0 1px 0 rgba(0, 0, 0, .7); }
.crt-console[data-crt="mission"] .crt-bezel { border-radius: 14px; }
/* the curved glass: dark corners, glare, a fine highlight, scanlines over everything (text stays on top and sharp) */
.crt-glass { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%; box-sizing: border-box; border-radius: var(--tube);
  background: radial-gradient(ellipse 120% 100% at 50% 42%, var(--glass-hi) 0%, var(--glass-mid) 58%, var(--glass-lo) 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .97), inset 0 0 22px rgba(0, 0, 0, .85), inset 0 0 6px #000, 0 0 0 1px #000, 0 0 30px rgba(var(--phos-rgb), calc(.08 * var(--glow))); color: var(--text); }
.crt-glass::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 70% 22% at 30% 0%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 55%, transparent 72%),
    radial-gradient(ellipse 30% 12% at 85% 98%, rgba(255, 255, 255, .04), transparent 70%),
    linear-gradient(162deg, rgba(255, 255, 255, .035) 0%, transparent 18%); }
.crt-glass::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, var(--scan)) 0 1px, transparent 1px 3px), radial-gradient(ellipse 85% 80% at 50% 46%, transparent 52%, rgba(0, 0, 0, .72) 100%); }
.crt-shine { position: absolute; left: 8%; right: 8%; top: 5px; height: 2px; border-radius: 2px; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent); }
.crt-glass.blip { animation: crtBlip .32s steps(3); }
.crt-k { font: 600 11px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.crt-v { display: inline-block; transform: scaleY(.84); transform-origin: left bottom; font: 46px/1 "VT323", ui-monospace, monospace; color: var(--phos); white-space: nowrap;
  text-shadow: 0 0 calc(10px * var(--glow)) rgba(var(--phos-rgb), calc(.8 * var(--glow))), 0 0 2px rgba(255, 255, 255, calc(.6 * var(--glow))); font-variant-numeric: tabular-nums; }
.crt-vrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.crt-sub { font: 12.5px/1.3 "IBM Plex Mono", ui-monospace, monospace; color: var(--label); }
.crt-side { display: flex; flex-direction: column; gap: 22px; }
.crt-read { flex: 1; }
.crt-read .crt-glass { justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 118px; }
.crt-log .crt-glass { height: 560px; }
.crt-loghead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.crt-badge { font: 600 10px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .12em; padding: 4px 7px; border-radius: 4px; border: 1px solid currentColor; color: var(--phos);
  text-shadow: 0 0 6px rgba(var(--phos-rgb), .6); }
.crt-scroll { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 18px 14px 26px;
  scrollbar-width: thin; scrollbar-color: rgba(var(--phos-rgb), .35) transparent; }
/* the chain log, drawn on the glass */
.crt-console .cr-feed { max-height: none; overflow: visible; font: 13px/1.5 "IBM Plex Mono", ui-monospace, monospace; text-shadow: 0 0 6px rgba(var(--phos-rgb), calc(.35 * var(--glow))); }
.crt-console .cr-row { border-bottom: 1px solid rgba(var(--phos-rgb), .12); padding: 10px 4px; grid-template-columns: 64px 82px 48px minmax(0, 1fr) auto; }
.crt-console .cr-row.fresh { animation: crtIn 2.4s ease-out; }
@keyframes crtIn { from { background: rgba(var(--phos-rgb), .16); } to { background: transparent; } }
.crt-console .cr-time, .crt-console .cr-slot, .crt-console .cr-sig, .crt-console .cr-fps, .crt-console .cr-empty { color: var(--dim); }
.crt-console .cr-label { --kc: var(--phos); color: color-mix(in srgb, var(--kc) 92%, var(--phos)); text-shadow: 0 0 calc(9px * var(--glow)) color-mix(in srgb, var(--kc) 70%, transparent); }
.crt-console .k-CreateListing .cr-label { --kc: #8fd0ff; }
.crt-console .k-RepresentListing .cr-label, .crt-console .k-RegisterAgent .cr-label { --kc: #d0a8ff; }
.crt-console .k-WithdrawRepresentation .cr-label { --kc: #b9a3d9; }
.crt-console .k-Reserve .cr-label { --kc: #ffd36b; }
.crt-console .k-RecordFiatSale .cr-label, .crt-console .k-RecordPayout .cr-label { --kc: #ffcf5c; }
.crt-console .k-ClaimCertificate .cr-label { --kc: #7dffc0; }
.crt-console .k-ExpireHold .cr-label, .crt-console .k-UpdateListing .cr-label { --kc: #ffa261; }
.crt-console .k-CancelListing .cr-label, .crt-console .k-ModerateListing .cr-label, .crt-console .k-RecordFiatRefund .cr-label { --kc: #ff8378; }
.crt-console .cr-text { color: var(--text); }
.crt-console .cr-stamp.fin, .crt-console .cr-ok { color: color-mix(in srgb, #5fd38a 85%, var(--phos)); border-color: currentColor; text-shadow: 0 0 calc(6px * var(--glow)) rgba(95, 211, 138, .6); }
.crt-console .cr-seal { color: color-mix(in srgb, #ffd36b 80%, var(--phos)); border-color: currentColor; }
.crt-console .cr-stamp.conf { color: color-mix(in srgb, #ffaa3c 85%, var(--phos)); text-shadow: 0 0 calc(6px * var(--glow)) rgba(255, 170, 60, .55); }
.crt-console .cr-stamp.bad { color: color-mix(in srgb, #ff6a5e 85%, var(--phos)); text-shadow: 0 0 calc(6px * var(--glow)) rgba(255, 106, 94, .55); }
.crt-console .cr-row.failed .cr-label { color: color-mix(in srgb, #ff6a5e 55%, var(--dim)); text-shadow: none; }
.crt-console a { color: inherit; }
/* artwork thumbnails look like they're on the screen: tinted to the phosphor, with scanlines and the glass over them */
.crt-console .cr-thumb { position: relative; width: 48px; height: 48px; border-radius: 4px; background: rgba(var(--phos-rgb), .08); }
.crt-console .cr-thumb img { filter: saturate(1.3) brightness(1.06) contrast(1.08); }
.crt-console .cr-thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, calc(var(--scan) * 1.2)) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(var(--phos-rgb), .08), rgba(var(--phos-rgb), .08));
  box-shadow: inset 0 0 0 1px rgba(var(--phos-rgb), .3), inset 0 0 8px rgba(0, 0, 0, .55), 0 0 calc(12px * var(--glow)) rgba(var(--phos-rgb), calc(.3 * var(--glow))); }
@media (max-width: 760px) {
  .crt-console { grid-template-columns: 1fr; padding: 14px; gap: 14px; border-radius: 12px; }
  .crt-side { order: -1; gap: 10px; }
  .crt-bezel { padding: 7px; border-radius: 16px; }
  .crt-read .crt-glass { flex-direction: row; align-items: center; padding: 10px 16px; min-height: 58px; border-radius: 18px / 22px; }
  .crt-k { font-size: 10px; letter-spacing: .12em; }
  .crt-v { font-size: 34px; transform-origin: right center; }
  .crt-vrow { justify-content: flex-end; gap: 8px; }
  .crt-sub { font-size: 11px; }
  .crt-log .crt-glass { height: 520px; } .crt-scroll { padding: 14px 10px 8px 14px; }
  .crt-console .cr-row { grid-template-columns: 48px auto minmax(0, 1fr); gap: 4px 10px; }
  .crt-console .cr-thumb { grid-row: 1 / span 3; grid-column: 1; }
  .crt-console .cr-time { grid-column: 2; font-size: 11.5px; } .crt-console .cr-slot { grid-column: 3; font-size: 11.5px; }
  .crt-console .cr-body, .crt-console .cr-stamp { grid-column: 2 / 4; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .crt-glass.blip, .crt-console .cr-row.fresh { animation: none; } }
/* Admin picker: a tiny screen of each style */
.crt-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.crt-pick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 10px; border-radius: 12px; }
.crt-pick-btn.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.crt-mini { display: block; width: 100%; box-sizing: border-box; padding: 8px; border-radius: 10px; grid-template-columns: 1fr; }
.crt-mini .crt-bezel { padding: 6px; border-radius: 12px; }
.crt-mini .crt-glass { height: 62px; padding: 10px 14px; justify-content: center; border-radius: 14px / 18px; }
.crt-console[data-crt="mission"].crt-mini .crt-glass { border-radius: 8px; }
.crt-mini .crt-v { font-size: 34px; }
.crt-console[data-crt="mission"] .crt-bezel::before { border-radius: 10px; }
.crt-mini .crt-bezel::before { display: none; }
@media (max-width: 760px) { .crt-bezel::before { inset: 3px; border-radius: 14px; } }
/* "You represent this piece": calm, easy to spot */
.rep-badge { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.rep-badge .mono { font-weight: 500; opacity: .85; }
.rep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.another-card { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.another-card h3 { margin: 0; }
.another-card button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Certificate: dots, and the register printed on the same sheet ---------- */
.cert-checks li { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.cert-checks .cdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; flex: 0 0 auto; }
.cert-checks li.ok .cdot { background: var(--ink); }
.cert-checks li.bad .cdot { background: var(--bad); opacity: 1; }
.ledger { --tw: "Courier Prime", "Courier New", Courier, monospace; margin-top: 30px; padding-top: 6px; border-top: 2px solid var(--ink); color: var(--ink); font: 13.5px/1.5 var(--tw); }
.ledger::before { content: ""; display: block; border-top: 1px solid var(--ink); margin-bottom: 14px; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ledger-head span:first-child { font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-size: 13px; }
.ledger-head span:last-child { color: var(--muted); font-style: italic; }
.ledger-scroll { overflow-x: auto; }
.ledger-t { width: 100%; border-collapse: collapse; font: inherit; min-width: 620px; }
.ledger-t th { text-align: left; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.ledger-t td { padding: 7px 8px; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); vertical-align: top; }
.ledger-t .lg-no, .ledger-t .lg-block { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.ledger-t .lg-date { white-space: nowrap; }
.ledger-t .lg-what { font-weight: 700; white-space: nowrap; }
.ledger-t .lg-block { text-align: right; }
.ledger-t .lg-proof a { color: var(--accent); white-space: nowrap; }
.lg-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink); margin: 0 8px 1px 0; vertical-align: middle; transition: background .25s; }
.ledger-t tr.lit .lg-dot { background: var(--ink); }
.ledger-notes { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--ink); }
.ledger-notes dt { font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.ledger-notes dd { margin: 0; }
.ledger-notes .lg-hash { word-break: break-all; color: var(--muted); }
.ledger-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--ink); }
.ledger-btn { font: 700 13px/1 var(--tw); letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; padding: 11px 16px; cursor: pointer; }
.ledger-btn:hover { background: var(--ink); color: var(--surface); }
.ledger-btn:disabled { opacity: .5; cursor: progress; }
.ledger-result { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.ledger-result p { margin: 0; }
/* a rubber-stamp impression, as if stamped on the paper */
.ink-stamp { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 74px; transform: rotate(-6deg);
  border: 3px double var(--accent); border-radius: 6px; color: var(--accent); opacity: .88; animation: stampIn .35s ease-out; }
.ink-stamp span { font: 700 21px/1 var(--tw); letter-spacing: .14em; }
.ink-stamp small { font: 11px/1.2 var(--tw); margin-top: 4px; }
@keyframes stampIn { from { transform: rotate(-6deg) scale(1.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .ink-stamp { animation: none; } }
@media (max-width: 640px) { .ledger-notes { grid-template-columns: 1fr; gap: 2px; } .ledger-notes dd { margin-bottom: 8px; } .ledger-result { flex-direction: column; align-items: flex-start; } }
.stripe-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.google-box{display:flex;flex-direction:column;gap:10px}
.google-box[hidden]{display:none}
.or-line{display:flex;align-items:center;gap:10px;color:var(--muted,#888);font-size:13px}
.or-line::before,.or-line::after{content:"";flex:1;border-top:1px solid var(--line,rgba(127,127,127,.3))}
.google-pending{margin-bottom:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.av-photo{border-radius:50%;object-fit:cover;display:block;background:var(--line,#e2dcd2)}
.opt.check{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.opt.check input{margin:0}
.person-page .bio,.me-page .bio{max-width:60ch;margin:6px 0}
.linkish{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.checkout-overlay{position:fixed;inset:0;z-index:60;background:rgba(20,18,15,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.checkout-card{width:min(460px,100%);max-height:calc(100vh - 32px);overflow:auto}
.test-card-help{background:#fff7e0;border:1px dashed #d9a53a;border-radius:10px;padding:12px 14px;font-size:14px;margin-bottom:12px;color:#3d2f12}
.test-card-help .tc-row{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-bottom:1px dotted rgba(0,0,0,.12)}
.test-card-help p{margin:8px 0 0}
.saved-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
@media (prefers-color-scheme: dark){.test-card-help{background:#2b2210;color:#f3e3bf;border-color:#8a6a23}}
.person-actions{gap:14px;margin:10px 0 4px;flex-wrap:wrap}
.rep-badge.off{color:var(--muted)}

/* Artist: take an unsold piece down */
.takedown{margin:8px 0 0;font-size:.9em;opacity:.8}
.takedown .linkish:hover{opacity:1}

/* Getting paid: payouts card, delivery steps, admin sales list */
.payouts-card .po-opts{border:0;padding:0;margin:4px 0;display:grid;gap:6px}
.payouts-card .po-opts legend{font-weight:700;margin-bottom:4px}
.payouts-card .po-check select{max-width:140px}
ol.delivery{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
ol.delivery li{color:var(--muted,#6b6b6b)}
ol.delivery li.done{color:inherit}
.ship-form input{flex:1;min-width:0}
details.problem summary{cursor:pointer;text-decoration:underline}
.sales-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.payouts-card .po-opts label{display:flex;gap:8px;align-items:baseline;font-weight:400}
.payouts-card .po-opts input[type=radio]{width:auto;margin:0;flex:none}
.co-ship{display:grid;gap:6px;margin-bottom:6px}
.ship-to{background:var(--paper-2,#f4efe6);border-radius:10px;padding:10px 12px;line-height:1.45}
.ship-form select{flex:none;max-width:180px}
.ship-form label.check{display:flex;gap:8px;align-items:baseline}
.ship-form label.check input{width:auto;flex:none}
.sales-list label.hint{display:inline-flex;gap:6px;align-items:center;margin-left:8px}
.sales-list label.hint input{width:auto}
.api-page pre{background:var(--paper-2,#f4efe6);border-radius:10px;padding:12px;overflow:auto;max-height:340px;font-size:13px}
.api-eps td{vertical-align:top;padding:6px 8px}
.api-feed{list-style:none;padding:0;margin:0;display:grid;gap:4px;font-size:13px}
.api-page h3{margin-top:22px}

/* ---- Sandbox: frames, scores, leaderboards, Artacoin, early access (Nov 13) ---- */
.fb { display: inline-flex; vertical-align: -4px; margin-left: 5px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.fb svg { display: block; }
.trend { font-size: 12px; font-weight: 600; margin-left: 4px; }
.trend.up { color: #2f8a4a; } .trend.down { color: #b4532a; } .trend.flat { color: var(--muted); }
.td-play-bits { display: inline-flex; align-items: center; gap: 8px; }
.td-coin { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: inherit; font-size: 13px; }
.coin-icon { display: inline-block; vertical-align: middle; }
.score-card { display: flex; gap: 14px; align-items: center; }
.score-frame { position: relative; flex: none; }
.score-none { position: absolute; inset: auto 0 -16px; font-size: 11px; color: var(--muted); text-align: center; }
.score-n { font: 700 34px/1 var(--serif, Georgia, serif); margin: 0 4px; }
.score-tier { font-weight: 600; margin: 4px 0; }
.char-level .score-card { text-align: left; }
.wallet-card { margin: 18px 0; }
.wallet-top { display: flex; gap: 16px; align-items: center; }
.wallet-bal { font: 700 40px/1.1 var(--serif, Georgia, serif); }
.tally { list-style: none; padding: 0; margin: 0 0 10px; max-height: 280px; overflow: auto; }
.tally li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tally .plus { color: #2f8a4a; font-weight: 700; } .tally .minus { color: #b4532a; font-weight: 700; }
.early-row { margin: 6px 0 18px; } .early-row h3 { display: flex; align-items: center; gap: 8px; }
.early-locked .art .blur, .early-art .blur { filter: blur(14px) saturate(1.2); transform: scale(1.15); height: 100%; }
.early-locked .art, .early-art { position: relative; overflow: hidden; }
.early-badge { position: absolute; top: 8px; left: 8px; background: #1b1405; color: #ffe39a; font: 700 11px/1 var(--sans); letter-spacing: .12em; padding: 6px 8px; border-radius: 4px; box-shadow: 0 0 0 1px #c99a2e inset; }
.early-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 18px; }
.early-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.early-art { aspect-ratio: 4 / 5; border-radius: 8px; background: var(--line); }
.early-cost { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.early-mine { margin-bottom: 14px; }
.early-mine summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .early-page { grid-template-columns: 1fr; } }
.lb2 .lb-list li { grid-template-columns: 30px 46px minmax(0, 1fr) auto auto; }
.lb2 .lb-list li.top1 { background: linear-gradient(90deg, rgba(236,196,88,.22), transparent); border-radius: 10px; }
.lb2 .lb-list li.top2 { background: linear-gradient(90deg, rgba(190,198,208,.25), transparent); border-radius: 10px; }
.lb2 .lb-list li.top3 { background: linear-gradient(90deg, rgba(193,128,72,.18), transparent); border-radius: 10px; }
.lb2 .lb-name .hint { display: block; font-weight: 400; font-size: 13px; }
.lb-score { font-weight: 700; white-space: nowrap; }
.lb-prize { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #8a5e0e; white-space: nowrap; }
.frames-legend { margin-top: 28px; }
.frames-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.frames-row div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; text-align: center; }
@media (max-width: 560px) { .frames-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lb2 .lb-list li { grid-template-columns: 24px 40px minmax(0, 1fr) auto; } .lb-prize { grid-column: 3 / 5; } }

/* ---- the face builder: tabs and picture tiles (Nov 13) ---- */
.av-stage { width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.av-stage svg { display: block; }
.av-stage.pop { animation: av-pop .32s ease-out; }
@keyframes av-pop { 0% { transform: scale(.94) rotate(-2deg); } 60% { transform: scale(1.04) rotate(1deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .av-stage.pop { animation: none; } }
.av-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-top: 6px; }
.av-tab { border-radius: 999px; padding: 8px 16px; font-weight: 600; min-height: 40px; }
.av-tab.on { background: var(--ink, #1c1a17); color: #fff; border-color: transparent; }
.av-panel { display: flex; flex-direction: column; gap: 16px; }
.av-group h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.av-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.av-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--card, #fff); font-size: 12px; line-height: 1.2; min-height: 44px; cursor: pointer; transition: transform .12s, border-color .12s; }
.av-tile:hover { transform: translateY(-2px); border-color: #c9bfae; }
.av-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.av-tile svg { border-radius: 50%; }
.builder-preview .row button { min-height: 40px; }
@media (max-width: 720px) {
  .builder-preview { position: sticky; top: 0; z-index: 5; flex-direction: row; justify-content: center; padding: 10px; }
  .av-stage, .av-stage svg { width: 110px; height: 110px; }
  .builder-preview .av-name { display: none; }
  .av-tiles { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
}

/* ---- the Artacoin shop (Nov 13) ---- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border-width: 2px; }
.shop-item h3 { margin: 0; font-family: var(--serif, Georgia, serif); font-size: 22px; }
.shop-look svg { border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.shop-new { position: absolute; top: 10px; left: 10px; background: #1b1405; color: #ffe39a; font: 700 10px/1 var(--sans); letter-spacing: .12em; padding: 5px 7px; border-radius: 4px; }
.shop-rar { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.shop-price { display: flex; align-items: center; gap: 6px; font-size: 20px; margin: 2px 0; }
.shop-own { color: #2f8a4a; font-weight: 600; }
.shop-next { display: flex; align-items: center; gap: 8px; margin: 12px 0 18px; }
.rar-rare { border-color: #1f6f78; } .rar-epic { border-color: #6b3fa0; }
.rar-legendary { border-color: #d4a017; box-shadow: 0 0 0 1px #d4a017, 0 8px 24px rgba(212,160,23,.25); }
.rar-mythic { border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b, 0 8px 28px rgba(192,57,43,.3); background: linear-gradient(180deg, #fff7f2, var(--card, #fff)); }
.av-tile.special { border-color: #d4a017; }
.shop-new.leaving { background: #c0392b; color: #fff; }

/* ---- How the game works (Sandbox, Nov 13) ---- */
.game-page h1 { margin-bottom: 6px; }
.game-page .lead { font-size: 18px; max-width: 760px; }
.game-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 20px; }
.game-sec { margin-bottom: 16px; scroll-margin-top: 16px; }
.game-sec h2 { margin-top: 0; }
.game-sec li { margin-bottom: 6px; }

/* ---- hyper-realism mode and pretend shipping (Sandbox, Nov 13) ---- */
.hyper-card { margin: 18px 0; }
.hyper-pill { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--line); color: var(--muted); vertical-align: middle; margin-left: 6px; }
.hyper-pill.on { background: #c8552b; color: #fff; }
.ship-card { margin-bottom: 14px; }
.ship-track { margin-top: 10px; }
.ship-bar { position: relative; height: 8px; background: var(--line); border-radius: 999px; margin: 18px 14px 14px; }
.ship-bar > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #1f6f78, #c8552b); border-radius: 999px; }
.ship-truck { position: absolute; top: -16px; transform: translateX(-50%); }
.ship-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 13px; }
.ship-steps li { color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.ship-steps li.done b { color: var(--ink, #1c1a17); }
.ship-steps li.done b::before { content: '✓ '; color: #2f8a4a; }
@media (max-width: 560px) { .ship-steps { grid-template-columns: 1fr; text-align: left; } }

/* photo picking: rules, preview, and the in-app browser warning */
.photo-rules { margin-top: -6px; }
.photo-preview { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: var(--line); }
.photo-preview.bad { border-color: var(--warn); color: var(--warn); }
.photo-warn { border-color: var(--warn); font-size: .95rem; }

/* nothing on a page may push it wider than the phone: long codes break instead (Nov 13) */
.live-page { overflow-wrap: anywhere; }
.live-page .mono { word-break: break-all; }
.cert, .cert-body > * { min-width: 0; }

/* admin: shop drops */
.shop-admin h4 { margin: 10px 0 2px; }
.sa-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.sa-item summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.sa-item summary::-webkit-details-marker { display: none; }
.sa-item summary .avatar { flex: none; border-radius: 50%; }
.sa-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sa-pill { flex: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.sa-on { background: #1f6f3a; color: #fff; border-color: #1f6f3a; } .sa-up { background: #24406e; color: #fff; border-color: #24406e; } .sa-off { opacity: .7; }
.sa-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sa-form .row { flex-wrap: wrap; gap: 8px; } .sa-form .field { flex: 1 1 130px; }
.sa-cal { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sa-cal li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); }
.sa-cal li.now { border-color: var(--accent); }
.sa-drop { color: #3f9c4c; } .sa-out { color: var(--muted); }

/* an agent's own pieces on the Artwork page */
.tile.sharing { box-shadow: 0 0 0 3px #2fbf71; border-radius: 10px; }
.share-badge { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; background: #2fbf71; color: #08240f; }
@media (max-width: 520px) { .tile .share-badge { font-size: 9px; padding: 2px 6px; } }

/* shop: the item inspector */
button.shop-look { position: relative; display: block; border: 0; background: none; padding: 0; margin: 0 auto; cursor: zoom-in; }
.insp-chip { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: inline-flex; gap: 4px; align-items: center; font: 700 11px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: rgba(20,18,15,.82); color: #fff; white-space: nowrap; }
body.insp-open { overflow: hidden; }
.insp { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rar) 45%, #15120e) 0%, #0d0b09 70%); color: #f6f1e7; display: flex; flex-direction: column; align-items: center; padding: 14px 16px 18px; gap: 10px; touch-action: none; user-select: none; }
.insp-top { width: 100%; max-width: 560px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.insp-top > div { display: flex; flex-direction: column; gap: 2px; } .insp-top b { font-size: 22px; line-height: 1.15; }
.insp-rar { color: color-mix(in srgb, var(--rar) 60%, #fff); font: 800 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.insp-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.insp-stage { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; perspective: 1100px; cursor: grab; min-height: 0; }
.insp-stage:active { cursor: grabbing; }
.insp-zoom { transition: transform .12s ease-out; }
.insp-card { position: relative; width: min(86vw, 60vh, 460px); aspect-ratio: 3 / 4; transform-style: preserve-3d; }
.insp-face { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--rar) 70%, #fff); box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 40px color-mix(in srgb, var(--rar) 55%, transparent);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rar) 35%, #2a241d), #120f0c 78%); }
.insp-front { display: flex; align-items: center; justify-content: center; }
.insp-art { width: 92%; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.insp-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--rar) 60%, #1a1611) 0 12px, color-mix(in srgb, var(--rar) 45%, #120f0c) 12px 24px); }
.insp-backin { position: absolute; inset: 14px; border-radius: 14px; border: 2px solid rgba(255,255,255,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; background: rgba(10,8,6,.55); }
.insp-backin b { font-size: 22px; } .insp-ed { font: 700 15px/1.2 var(--sans); color: #ffe39a; } .insp-brand { margin-top: 10px; font: 700 10px/1 var(--sans); letter-spacing: .2em; opacity: .7; }
.insp-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 46%, rgba(255,255,255,.05) 54%, transparent 70%); background-size: 260% 260%; mix-blend-mode: screen; }
.insp-tag { position: absolute; top: 12px; left: 12px; font: 800 10px/1 var(--sans); letter-spacing: .14em; padding: 5px 8px; border-radius: 999px; background: var(--rar); color: #fff; }
.insp-bar { display: flex; gap: 8px; } .insp-bar button { min-width: 48px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font: 700 15px/1 var(--sans); cursor: pointer; }
.insp-bar button[aria-pressed="true"] { background: var(--rar); border-color: var(--rar); }
.insp-hint { margin: 0; font-size: 13px; opacity: .7; text-align: center; }
@media (prefers-reduced-motion: reduce) { .insp-zoom { transition: none; } }

/* items in the wallet */
.wallet-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.wallet-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 14px; cursor: zoom-in; text-align: center; font: 600 12px/1.2 var(--sans); color: inherit;
  border: 2px solid var(--rar); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rar) 28%, transparent), transparent 75%); }
.wallet-item svg { width: 64px; height: 64px; }
.wallet-items { margin-bottom: 14px; }

.shop-admin > summary { cursor: pointer; list-style-position: inside; padding: 4px 0; }

/* who found the buyer: credited agent, code box, discounts, QR codes */
.agent-opt.off { opacity: .5; }
.disc-tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #2fbf71; color: #08240f; }
.disc-line { margin: 0; font-size: 15px; } .disc-line s { opacity: .6; }
.code-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 10px; } .code-box .field { flex: 1 1 200px; margin: 0; }
.qr-share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.my-qr { flex: none; width: 168px; height: 168px; background: #fff; border-radius: 10px; overflow: hidden; }
.my-qr svg { display: block; width: 100%; height: 100%; }
.disc-form { margin-bottom: 12px; } .disc-form select { min-width: 140px; }

/* advertising a piece (Sandbox, Nov 13) */
.ad-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff5e6, #ffeef3); border: 1px solid #f3d3b4; display: flex; flex-direction: column; gap: 8px; }
.ad-head { display: flex; align-items: center; gap: 8px; color: #a8401c; }
.ad-head b { color: var(--ink, #1c1a17); font-size: 17px; }
.ad-ic { flex: none; }
.ad-live { margin: 0; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #f0d9c2; }
.ad-form { display: flex; flex-direction: column; gap: 8px; }
.ad-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-preview { margin: 0; min-height: 1.3em; }
.ad-note { margin: 0; font-size: 14px; font-weight: 600; color: #7a3a14; }
@media (prefers-color-scheme: dark) { .ad-note { color: #f2b48a; } }
.ad-preview .bad { color: #b42318; }
@media (prefers-color-scheme: dark) { .ad-box { background: linear-gradient(135deg, #3a2a1c, #3a2230); border-color: #5a3f2a; } .ad-live { background: rgba(0,0,0,.25); border-color: #5a3f2a; } .ad-head b { color: inherit; } }

/* chain log: load earlier transactions */
.cr-more { display: block; margin: 12px auto 4px; background: transparent; color: var(--phos, #b4ffd0); border: 1px solid rgba(var(--phos-rgb, 95, 211, 138), .55); border-radius: 6px; padding: 8px 16px; font: 600 13px/1 "IBM Plex Mono", ui-monospace, monospace; cursor: pointer; min-height: 36px; }
.cr-more:hover { background: rgba(var(--phos-rgb, 95, 211, 138), .12); }
.cr-more[disabled] { opacity: .6; cursor: default; }
.cr-more[hidden] { display: none; }

/* login first (Nov 14) */
.uname-state { margin: -4px 0 0; min-height: 1.3em; }
.uname-state.good { color: #1f7a4d; font-weight: 600; }
.uname-state.bad { color: #b42318; font-weight: 600; }
@media (prefers-color-scheme: dark) { .uname-state.good { color: #6fd39e; } .uname-state.bad { color: #ff8a80; } }
.show-pw { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.new-login .google-box .or-line { margin-top: 6px; }

/* history and all artists (Nov 14) */
.whose { margin-bottom: 4px; }
.history-sum { margin: 4px 0 12px; font-weight: 600; }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; }
.history-pic { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.history-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-main b { overflow-wrap: anywhere; }
.history-money { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .history-row { grid-template-columns: 52px minmax(0, 1fr); } .history-pic { width: 52px; height: 52px; } .history-money { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 8px; } }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.artist-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.artist-card[hidden] { display: none; }
.artist-top { display: flex; align-items: center; gap: 12px; }
.artist-top > div { display: flex; flex-direction: column; min-width: 0; }
.artist-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.artist-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.char-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.market-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.market-note { margin: 2px 0 8px; }

/* 3D collectibles (Nov 16): looping videos on shop cards, in the wallet and in the inspector */
.coll-vid { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: 18px; background: #07060c; box-shadow: 0 8px 20px rgba(0,0,0,.25); margin: 0 auto; }
.shop-look .coll-vid { width: min(190px, 100%); height: auto; aspect-ratio: 1; }
.wallet-item .coll-vid { width: 64px; height: 64px; border-radius: 12px; box-shadow: none; }
.insp-vid { width: 92%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #07060c; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }

/* daily listing counter (Nov 17) */
.list-quota { display: flex; gap: 10px; align-items: center; margin: 4px 0; font-size: .92rem; color: var(--muted, #6b7280); }
.list-quota b { color: var(--ink, inherit); }
.list-quota.full { color: #b42318; }
.lq-dots { display: inline-flex; gap: 4px; flex: none; }
.lq-dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; opacity: .55; }
.lq-dots i.used { background: currentColor; opacity: .9; }

/* favourites (Nov 23) */
.tile .art { position: relative; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; }
.fav-btn svg { fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .15s, transform .15s; }
.fav-btn.on svg { fill: #e0245e; stroke: #e0245e; }
.fav-btn:active svg { transform: scale(.85); }
.tile .fav-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #1f2937; box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 2; }
.fav-btn.big { background: transparent; color: inherit; padding: 6px 12px; border: 1px solid var(--line, #d1d5db); border-radius: 999px; margin: 4px 0 8px; }
.fav-btn.big.on { border-color: #e0245e; color: #e0245e; }
/* confirm before buying, sell another (Nov 23) */
.buy-confirm { border: 2px solid var(--accent, #1f6f78); border-radius: 12px; padding: 12px 14px; background: var(--card, #fff); }
.buy-confirm p { margin: 0 0 6px; }
.resold-card { border-left: 4px solid #16a34a; margin-bottom: 12px; }
.resold-card .row { margin-top: 8px; }

/* ---- Shipping and receiving, game checkout, opening a parcel (Sandbox, Nov 23) ---- */
.ship-hub { margin: 18px 0; }
.ship-hub.attn { border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.ship-hub h3 .td-count { vertical-align: middle; font-family: var(--sans); }
.hub-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) { .hub-cols { grid-template-columns: 1fr; } }
.hub-col h4 { margin: 0 0 8px; font: 700 15px/1.3 var(--sans); display: flex; align-items: center; gap: 8px; }
.hub-flag { font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 8px; border-radius: 999px; animation: hub-pulse 1.6s ease-in-out infinite; }
@keyframes hub-pulse { 50% { opacity: .55; } }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.hub-item > div { min-width: 0; }
.hub-item .grow, .ship-row .grow { flex: 1; min-width: 0; }
.hub-item.now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.hub-item.done { opacity: .75; }
.hub-item .hint { margin: 2px 0 6px; overflow-wrap: anywhere; }
.hub-bar { margin: 18px 14px 8px; }
.ship-truck.moving svg { animation: truck-bump .5s ease-in-out infinite; }
@keyframes truck-bump { 50% { transform: translateY(-1.5px); } }
.ship-quick { margin-top: 6px; }
.ship-row { gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.ship-row .field { margin: 0; }
.parcel-btn { border: 0; background: none; padding: 0; cursor: pointer; width: 64px; flex: none; }
.parcel-svg { width: 64px; height: 56px; display: block; }
.arrived .parcel-svg { animation: parcel-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes parcel-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .arrived .parcel-svg, .hub-flag, .ship-truck.moving svg { animation: none; } }
.game-pay .pay-steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.game-pay .pay-steps li > b { display: block; margin-bottom: 6px; }
.game-pay .pay-steps .hint { display: block; margin-top: 6px; }
.pay-pick { width: 100%; font: inherit; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pay-sum { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; display: grid; gap: 4px; font-size: 14px; }
.pay-sum div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-sum span { color: var(--muted); }
.unbox { position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 15, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.unbox-card { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 24px; width: min(400px, 100%); text-align: center; }
.unbox-stage { position: relative; height: 260px; margin-bottom: 6px; }
.unbox-box { position: absolute; left: 50%; bottom: 0; width: 150px; height: 104px; transform: translateX(-50%); animation: box-shake .5s ease-in-out infinite; }
.unbox.open .unbox-box { animation: none; }
@keyframes box-shake { 25% { transform: translateX(-50%) rotate(-3deg); } 75% { transform: translateX(-50%) rotate(3deg); } }
.unbox-body { position: absolute; inset: 22px 0 0; background: linear-gradient(#c9965b, #b07f47); border-radius: 0 0 6px 6px; z-index: 2; }
.unbox-lid { position: absolute; left: -6px; right: -6px; top: 0; height: 26px; background: #d7a86d; border-radius: 4px; z-index: 3; transition: transform .7s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 0 100%; }
.unbox.open .unbox-lid { transform: translate(-30px, -70px) rotate(-35deg); }
.unbox-tape { position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: rgba(240, 225, 190, .85); z-index: 4; transition: opacity .3s; }
.unbox.open .unbox-tape { opacity: 0; }
.unbox-art { position: absolute; left: 50%; bottom: 16px; width: 112px; height: 112px; margin-left: -56px; z-index: 1; border: 6px solid #2b2520; background: #eee; border-radius: 3px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); opacity: 0; transition: transform .9s cubic-bezier(.2, 1.3, .4, 1) .25s, opacity .2s .2s; overflow: hidden; }
.unbox-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unbox.open .unbox-art { transform: translateY(-112px); z-index: 5; opacity: 1; }
.unbox-burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.unbox-burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0; }
.unbox.open .unbox-burst i { animation: burst .9s ease-out .35s forwards; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-110px); } }
.unbox-btns { justify-content: center; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .unbox-box, .unbox.open .unbox-burst i { animation: none; } }
.sig-line { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.sig-line input { width: auto; margin: 0; }
