:root {
  --wall: #12100e;
  --wall-2: #191613;
  --wall-3: #211d19;
  --line: #2e2823;
  --ink: #ece6da;
  --muted: #9b9184;
  --gilt: #c8a15a;
  --label: #efe9dc;
  --label-ink: #1d1a16;
  --label-muted: #6a6257;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--wall); }
body { margin: 0; background: var(--wall); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, dl, dd { margin: 0; }
.mono { font-family: var(--mono); }

.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 28px 24px 18px; }
.brand h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand h1 { display: flex; align-items: center; gap: 14px; }
.brand h1 .mark { width: 40px; height: 40px; flex: none; border-radius: 9px; }
.brand p { color: var(--muted); margin-top: 4px; max-width: 60ch; }
.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ghost.head { width: auto; margin: 0; padding: 7px 16px; border-color: var(--gilt); border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.live { color: var(--ink); }
.pill.live .dot { background: var(--gilt); animation: pulse 2.4s ease-in-out infinite; }
.pill.blocked .dot { background: #b5523f; }
@keyframes pulse { 50% { opacity: 0.35; } }

.notice { max-width: 1312px; margin: 0 auto 14px; padding: 12px 16px; border: 1px solid var(--gilt); color: var(--ink); background: var(--wall-2); font-size: 14px; }
.notice strong { color: var(--gilt); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; margin-right: 6px; }

.easel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; max-width: 1360px; margin: 0 auto; padding: 8px 24px 48px; align-items: start; }
.wall { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.frame { position: relative; line-height: 0; padding: 14px; background: #2a2119; border: 1px solid #4a3a28; outline: 1px solid #0a0908; box-shadow: 0 30px 60px -30px #000, inset 0 0 0 3px #1a1410, inset 0 0 0 4px #6b5535; max-width: 100%; }
.frame canvas { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; background: #8c7a62; }
.brush { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1.5px solid #fff; border-radius: 50%; mix-blend-mode: difference; pointer-events: none; transition: left 120ms linear, top 120ms linear; }
.veil { position: absolute; inset: 14px; display: grid; place-items: center; background: #15120f; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; transition: opacity 600ms; }
.veil.off { opacity: 0; pointer-events: none; }

.placard { width: min(100%, 560px); background: var(--label); color: var(--label-ink); padding: 18px 22px 16px; font-family: var(--serif); box-shadow: 0 12px 30px -18px #000; }
.p-kicker { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label-muted); }
.placard h2 { font-weight: 400; font-size: 24px; line-height: 1.2; margin-top: 4px; }
.p-after { font-style: italic; margin-top: 2px; }
.p-medium { font-family: var(--sans); font-size: 13px; color: var(--label-muted); margin-top: 8px; }
.p-note { margin-top: 10px; font-size: 15px; }
.p-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #d5cdbd; font-family: var(--sans); font-size: 12px; }
.p-facts div { display: contents; }
.p-facts dt { color: var(--label-muted); }
.p-facts dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-facts a { color: inherit; }

.under { width: 100%; max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.card { border: 1px solid var(--line); background: var(--wall-2); padding: 16px 18px; }
.card h3, .band h3 { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.card h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 14px 0 8px; }
.status { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 2.9em; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.counters b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; }
.counters span { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.passes { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.passes li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.passes li .name { color: var(--ink); }
.passes li.waiting .name { color: var(--muted); }
.passes li.now .name::after { content: ' \00b7 painting'; color: var(--gilt); }
.passes li .num { font-variant-numeric: tabular-nums; text-align: right; }
.passes li .sub { grid-column: 1 / -1; font-size: 12px; }

.decision { margin-top: 12px; }
.decision .q { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.bar { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 0; }
.bar .lab { position: relative; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar .lab i { position: absolute; inset: 0 auto 0 0; background: var(--wall-3); z-index: 0; }
.bar .lab span { position: relative; z-index: 1; }
.bar.pick { color: var(--ink); }
.bar.pick .lab i { background: #4a3c25; }
.bar .pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px 3px 3px; }
.swatch i { width: 16px; height: 16px; display: block; }
#certainty { width: 100%; height: auto; display: block; margin-top: 10px; image-rendering: pixelated; background: #000; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

.band { border-top: 1px solid var(--line); padding: 40px 24px 48px; }
.band > * { max-width: 1312px; margin-left: auto; margin-right: auto; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.band-head h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.band-head p { color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.work { background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.work .thumb { background: #2a2119; border: 1px solid #4a3a28; padding: 7px; line-height: 0; }
.work img { width: 100%; height: auto; display: block; }
.work .t { font-family: var(--serif); font-size: 16px; margin-top: 10px; line-height: 1.25; }
.work .a { color: var(--muted); font-size: 13px; }
.work:hover .t, .work:focus-visible .t { color: var(--gilt); }
.empty { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 17px; grid-column: 1 / -1; }

.how .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.how p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.how em { color: var(--ink); font-style: italic; }
.foot { border-top: 1px solid var(--line); padding: 22px 24px 36px; color: var(--muted); font-size: 12.5px; }
.foot p { max-width: 1312px; margin: 0 auto; }

.sheet { border: 1px solid var(--line); background: var(--wall-2); color: var(--ink); padding: 0; width: min(1100px, 94vw); max-height: 92vh; }
.sheet::backdrop { background: rgba(8, 7, 6, 0.86); }
.sheet .close { position: sticky; top: 0; float: right; margin: 10px; background: var(--wall-3); color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; z-index: 2; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 24px; padding: 24px; clear: both; }
.sheet-art { min-width: 0; }
.sheet-art img, .sheet-art canvas { width: 100%; height: auto; display: block; border: 1px solid #4a3a28; background: #8c7a62; }
.sheet-text a { color: inherit; }
.claim { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.claim .hint { margin-top: 6px; }
.cta { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; background: var(--gilt); color: #17130d; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.cta:hover:not(:disabled) { background: #d8b36c; }
.cta:disabled { background: var(--wall-3); color: var(--muted); cursor: default; }
.ghost { display: block; width: 100%; margin-top: 12px; padding: 10px 14px; background: none; color: var(--ink); border: 1px solid var(--line); font: inherit; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ghost:hover:not(:disabled) { border-color: var(--gilt); }
.ghost:disabled { color: var(--muted); cursor: default; }
.claimpanel { border-color: #5a4a2c; }
.claimpanel .cta { margin-top: 10px; }
.claimpanel .ghost { margin-top: 12px; }
.cp-wallet { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.cp-wallet .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.cp-wallet .dot.on { background: #6fae6f; }
.ghost.more { max-width: 320px; margin: 28px auto 0; }
.work .tok { font-size: 12px; color: var(--muted); margin-top: 2px; }
.work .tok.held { color: var(--gilt); }
.sheet-text h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.sheet-text .after { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 2px 0 12px; }
.sheet-text dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; font-size: 13px; margin-top: 14px; }
.sheet-text dt { color: var(--muted); }
.sheet-text dd { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .easel { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 8px 16px 36px; }
  .side { position: static; }
  .under { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 20px 16px 14px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .brand h1 { font-size: 24px; }
  .notice { margin: 0 16px 12px; }
  .band { padding: 32px 16px 36px; }
  .frame { padding: 9px; }
  .veil { inset: 9px; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill.live .dot { animation: none; }
  .brush { transition: none; }
}
