/* Stamped · look A "Cancelled" (DESIGN.md). One accent: postmark red means a stamped call. */
@font-face { font-family: 'Bodoni Moda'; src: url('/assets/fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Albert Sans'; src: url('/assets/fonts/albert-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Chivo Mono'; src: url('/assets/fonts/chivo-mono.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ground: #0c0c0d; --surface: #151517; --surface-2: #1c1c1f; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #f3f3ef; --ink-2: #a9a9a4; --muted: #6f6f6c; --paper: #f2f1ec; --post: #ff4a26; --up: #3ddc84; --down: #8d8d92;
  --serif: 'Bodoni Moda', Georgia, serif; --sans: 'Albert Sans', system-ui, sans-serif; --mono: 'Chivo Mono', ui-monospace, monospace;
  --wrap: 1280px; --pad: 40px; --r: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--post); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin: 0 auto; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .red { color: var(--post); }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: rgba(12,12,13,.92); backdrop-filter: blur(10px); }
.top .wrap { height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; font: 700 25px/1 var(--serif); letter-spacing: -.01em; flex: none; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 24px; color: var(--ink-2); font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on { box-shadow: inset 0 -2px 0 var(--post); padding-bottom: 4px; margin-bottom: -6px; }
.top .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }

/* buttons */
.btn { height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); border: 1px solid var(--line-2); white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: rgba(255,255,255,.3); }
.btn.red { background: var(--post); color: #0c0c0d; border-color: var(--post); }
.btn.red:hover { background: #ff6340; }
.btn.white { background: var(--ink); color: #0c0c0d; border-color: var(--ink); }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.soon { font: 500 13px/1 var(--mono); color: var(--ink-2); }
.btn.bull.on { background: var(--up); border-color: var(--up); color: #0c0c0d; }
.btn.bear.on { background: var(--ink); border-color: var(--ink); color: #0c0c0d; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.chip.red { color: var(--post); border-color: rgba(255,74,38,.55); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: var(--surface-2); color: var(--ink); }

/* type */
h1, h2, h3 { margin: 0; font-weight: 500; }
.display { font: 500 clamp(44px, 6vw, 78px)/1.02 var(--serif); letter-spacing: -.025em; }
.h2 { font: 500 clamp(32px, 3.6vw, 46px)/1.06 var(--serif); letter-spacing: -.02em; }
.h3 { font: 600 22px/1.2 var(--serif); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.kicker { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(61,220,132,.15); flex: none; }
.dot.off { background: var(--muted); box-shadow: none; }
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.head p { color: var(--ink-2); max-width: 520px; margin: 10px 0 0; }

/* stamps (SVG drawn in ui.js) */
.stamp { filter: drop-shadow(0 18px 28px rgba(0,0,0,.5)); }
.stamp-link { display: block; transition: transform .2s; }
.stamp-link:hover { transform: translateY(-3px) rotate(-1deg); }
.postmark { pointer-events: none; }
@keyframes strike { from { transform: var(--rot) scale(1.14); opacity: 0; } 60% { opacity: 1; } to { transform: var(--rot) scale(1); opacity: 1; } }
.strike { animation: strike .2s ease-out both; }
@media (prefers-reduced-motion: reduce) { .strike { animation: none; } .stamp-link:hover { transform: none; } .ticker-track { animation: none !important; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; padding: 64px 0 46px; }
.hero .cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.facts { margin-top: 48px; display: flex; gap: 34px; flex-wrap: wrap; }
.facts b { display: block; font: 600 21px/1.15 var(--sans); }
.facts span { font-size: 13.5px; color: var(--muted); }
.scene { position: relative; min-height: 650px; }
.scene .big { position: absolute; left: 12%; top: 48px; width: min(380px, 70%); transform: rotate(-4deg); }
.scene .pm { position: absolute; left: -2%; top: 420px; width: min(700px, 120%); --rot: rotate(-11deg); transform: var(--rot); }
.scene .cap { position: absolute; right: 0; top: 0; font-size: 13px; color: var(--muted); text-align: right; max-width: 70%; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pick button { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }
.pick button.on { border-color: var(--post); }
.pick img, .pick .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }

/* ticker strip */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.ticker .lbl { font-size: 13px; color: var(--muted); flex: none; width: 92px; line-height: 1.2; }
.ticker-view { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 26px; width: max-content; animation: tick 70s linear infinite; }
.ticker-view:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 9px; font-size: 14px; white-space: nowrap; }
.tk img, .tk .ph { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.tk b { font-weight: 600; }

/* stamp rows */
.row-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.mini .t { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 13.5px; }
.mini .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .t span { font: 500 12.5px/1.4 var(--mono); white-space: nowrap; }

/* pigeonholes */
.office { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; }
.holes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hole { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; height: 210px; position: relative; overflow: hidden; box-shadow: inset 0 14px 22px rgba(0,0,0,.5); padding: 16px 18px; display: block; }
.hole:hover { border-color: var(--line-2); }
.hole .n { font: 600 23px/1.1 var(--serif); }
.hole .c { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hole .mv { position: absolute; right: 16px; top: 18px; font: 500 13px/1 var(--mono); }
.hole .fan { position: absolute; left: 16px; bottom: -22px; display: flex; }
.hole .fan svg { width: 92px; margin-right: -30px; }
.hole .thin { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* calls */
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.callcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.callcard:hover { border-color: var(--line-2); }
.callcard .top-row { display: flex; gap: 14px; align-items: flex-start; }
.callcard .stampbox { width: 86px; flex: none; position: relative; }
.callcard .stampbox .pm-mini { position: absolute; right: -26px; bottom: -14px; width: 82px; transform: rotate(-12deg); }
.callcard .who { font-size: 13px; color: var(--muted); }
.callcard .on { font: 600 19px/1.2 var(--serif); }
.callcard .txt { font-size: 15px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.callcard .meta { display: flex; justify-content: space-between; gap: 10px; font: 500 13px/1.3 var(--mono); color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: 12px; flex-wrap: wrap; }
.side { font: 700 12px/1 var(--mono); letter-spacing: .04em; padding: 5px 7px; border-radius: 4px; }
.side.bull { background: rgba(61,220,132,.14); color: var(--up); }
.side.bear { background: rgba(255,255,255,.08); color: var(--ink-2); }
.empty { border: 1px dashed var(--line-2); border-radius: 10px; padding: 26px; color: var(--ink-2); }
.empty b { color: var(--ink); }

/* tables and lanes */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 300px; display: flex; flex-direction: column; }
.lane h3 { font: 600 20px/1 var(--serif); padding: 16px 16px 12px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.lane h3 span { font: 500 12.5px/1 var(--sans); color: var(--muted); }
.lane ol { list-style: none; margin: 0; padding: 4px 0; overflow: auto; max-height: 720px; }
.cr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.cr:last-child { border-bottom: 0; }
.cr:hover { background: var(--surface-2); }
.cr img, .cr .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.cr b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr .s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr .e { text-align: right; font: 500 13px/1.35 var(--mono); }
.cr .e .call { margin-top: 4px; }
.bar { height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin-top: 5px; width: 74px; margin-left: auto; }
.bar i { display: block; height: 100%; background: var(--post); }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font: 600 12.5px/1 var(--sans); color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.n { font: 500 14px/1.2 var(--mono); white-space: nowrap; }
.coincell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.coincell img, .coincell .ph { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; background: var(--surface-2); flex: none; }
.coincell b { font-weight: 600; }
.coincell span { display: block; font-size: 12.5px; color: var(--muted); }
.ph { display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--mono); color: var(--muted); }
.tablewrap { overflow-x: auto; }

/* call page */
.callpage { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 56px; padding: 56px 0 80px; }
.callpage .scene2 { position: relative; height: 560px; }
.callpage .scene2 .big { position: absolute; left: 0; top: 0; width: 360px; transform: rotate(-3deg); }
.callpage .scene2 .pm { position: absolute; left: -40px; top: 350px; width: 480px; --rot: rotate(-9deg); transform: var(--rot); }
.quote { font: 500 24px/1.45 var(--serif); margin: 20px 0 26px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv span { display: block; font-size: 13px; color: var(--muted); }
.kv b { font: 500 18px/1.3 var(--mono); }
details.proof { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
details.proof summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
details.proof pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 12.5px/1.55 var(--mono); color: var(--ink-2); margin: 12px 0 0; }

/* coin page */
.coinhead { display: flex; gap: 22px; align-items: center; padding: 40px 0 26px; flex-wrap: wrap; }
.coinhead .stampsm { width: 96px; flex: none; }
.coinhead h1 { font: 600 40px/1 var(--serif); }
.coinhead .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.coingrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding-bottom: 80px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.panel h3 { font: 600 18px/1 var(--serif); margin-bottom: 14px; }
.chart { height: 380px; }
.facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.facts2 span { display: block; font-size: 12.5px; color: var(--muted); }
.facts2 b { font: 500 15px/1.3 var(--mono); }

/* composer */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.66); padding: 20px; }
.modal.open { display: flex; }
.sheet { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; }
.sheet h2 { font: 600 26px/1.1 var(--serif); }
.sheet .x { float: right; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.input, textarea.input { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 13px; outline: none; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: rgba(255,74,38,.6); }
.results { margin-top: 8px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.results button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.results button:hover { background: var(--surface-2); }
.results img, .results .ph { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.picked { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.picked img, .picked .ph { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.picked b { display: block; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.err { color: var(--post); font-size: 14px; margin-top: 10px; min-height: 1em; }
.signbox { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--ink-2); background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; max-height: 180px; overflow: auto; }
.walletlist button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; margin-top: 10px; font-weight: 600; }
.walletlist img { width: 28px; height: 28px; border-radius: 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; z-index: 90; font-size: 14px; max-width: calc(100vw - 32px); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 13.5px; margin-top: 40px; }
.foot .wrap { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }

/* rules */
.prose { max-width: 760px; padding: 50px 0 80px; }
.prose h2 { font: 500 30px/1.15 var(--serif); margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose b { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose code { font: 400 13.5px/1.5 var(--mono); color: var(--ink); background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.wordlist { display: grid; gap: 10px; }
.wordlist div { border-top: 1px solid var(--line); padding-top: 10px; }

/* responsive */
@media (max-width: 1100px) {
  :root { --pad: 28px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .top.open .nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .top.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: none; margin: 0; }
  .hero { grid-template-columns: 1fr; }
  .scene { min-height: 560px; max-width: 640px; }
  .office { grid-template-columns: 1fr; gap: 28px; }
  .lanes { grid-template-columns: 1fr; }
  .callpage { grid-template-columns: 1fr; }
  .coingrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --pad: 18px; }
  .holes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top .end .soon { display: none; }
  .scene { min-height: 470px; overflow: hidden; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .scene .big { left: 6%; width: 62%; top: 30px; }
  .scene .pm { top: 300px; width: 110%; left: -6%; }
  .scene .cap { position: static; text-align: left; max-width: none; }
  .callpage .scene2 { height: 440px; overflow: hidden; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .callpage .scene2 .big { width: 260px; }
  .callpage .scene2 .pm { top: 260px; width: 440px; left: -20px; }
  section.block { padding: 52px 0; }
  .ticker .lbl { display: none; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .top .end [data-compose] { display: none; }
  .holes { grid-template-columns: 1fr; }
  .facts { gap: 22px; }
  .calls { grid-template-columns: 1fr; }
  .btn.big { width: 100%; }
}
