/* Hallmark · macrostructure: studied DNA (Aspen Search, Awwwards SOTD) · tone: austere/technical · anchor hue: chartreuse 110 · studied: yes */
/* DARKPOOL desk. Ledger split: a 50/50 hairline grid, paper and charcoal, one chartreuse block per view. */
@font-face { font-family: Switzer; src: url(/assets/fonts/switzer-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Switzer; src: url(/assets/fonts/switzer-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Switzer; src: url(/assets/fonts/switzer-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/mono-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #fafaf7; --ink: #0e0e0e; --char: #222222; --fog: #d9d9d6; --lime: #d4ff3f; --ash: #6b6b66; --red: #ff5a36;
  --bg: var(--paper); --fg: var(--ink); --panel: var(--char); --panel-fg: var(--cream); --line: var(--ink); --mute: var(--ash);
  --bar: 60px; --pad: clamp(16px, 1.4vw, 28px);
  --sans: Switzer, "Helvetica Neue", Arial, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --cream: #ede6d6; --night: #0e0e0e; --night-2: #1a1a1a; --night-3: #2b2b29; --night-line: #3a3a37; --night-mute: #9c9a92;
  --rule-dark: #555555; --rule-dark-2: #3c3c3a; --mute-dark: #b9b5a8; --shade: rgba(14,14,14,.45);
}
html[data-theme="dark"] { --bg: var(--night); --fg: var(--cream); --panel: var(--night-2); --panel-fg: var(--cream); --line: var(--night-line); --mute: var(--night-mute); --fog: var(--night-3); }
html { overflow-x: clip; }
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.4 var(--sans); background: var(--bg); color: var(--fg); overflow-x: clip; transition: background .6s, color .6s; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 500; font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--lime); color: var(--ink); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.num, .mono { font-variant-numeric: tabular-nums; }
time { font-family: var(--mono); font-feature-settings: "tnum"; }

/* bar */
.bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: var(--bar); background: var(--bg); border-bottom: 1px solid var(--line); transition: background .6s; }
.bar-l, .bar-r { display: flex; align-items: center; min-width: 0; }
.bar-r { border-left: 1px solid var(--line); }
.tile { width: var(--bar); height: var(--bar); flex: none; display: grid; place-items: center; background: var(--lime); }
.tile img { width: 40px; height: 40px; }
.clock { margin-left: clamp(16px, 5vw, 80px); font-size: 15px; white-space: nowrap; }
.clock .slot { color: var(--mute); margin-left: 10px; font-family: var(--mono); font-size: 13px; }
.coin { margin-left: auto; padding-right: var(--pad); display: flex; align-items: center; gap: 10px; min-width: 0; }
.ca { border: 1px solid var(--line); background: none; padding: 6px 10px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ca.live { font-variant-numeric: tabular-nums; }
.pairnote { font-size: 13px; color: var(--mute); white-space: nowrap; }
.pairnote a { color: var(--fg); }
.links { display: flex; gap: 16px; padding-left: 24px; font-size: 16px; white-space: nowrap; }
.links a { text-decoration: none; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .35s cubic-bezier(.2,.7,.2,1); }
.links a:hover::after { right: 0; }
.icons { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.ico { width: 34px; height: 34px; display: grid; place-items: center; }
.ico svg { width: 18px; height: 18px; fill: currentColor; }
.ico:hover { background: var(--fog); }
.lights { width: 40px; height: 34px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0; }
.lights i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .4s, transform .4s; }
.lights i:last-child { background: currentColor; margin-left: -2px; }
html[data-theme="dark"] .lights i:first-child { background: currentColor; }
html[data-theme="dark"] .lights i:last-child { background: none; }
.phantom { height: var(--bar); border: 0; border-left: 1px solid var(--line); background: none; padding: 0 18px; cursor: pointer; white-space: nowrap; font-size: 15px; }
.phantom:hover { background: var(--fog); }
.phantom.on { font-size: 14px; }
.buy { height: var(--bar); display: flex; align-items: center; gap: 22px; padding: 0 22px; background: var(--char); color: var(--cream); text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; }
html[data-theme="dark"] .buy { background: var(--lime); color: var(--ink); }
.buy svg { width: 18px; height: 18px; transition: transform .3s; }
.buy:hover svg { transform: translateX(4px); }
.buy[aria-disabled="true"] { cursor: default; }

/* hero: 2x2 split */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(300px, 1fr) auto; min-height: calc(100svh - var(--bar)); border-bottom: 1px solid var(--line); }
.cell { position: relative; min-width: 0; }
.word { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); padding-bottom: clamp(18px, 3vh, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.mark { font-weight: 500; font-size: calc((50vw - 2 * var(--pad)) / 4.55); line-height: .9; letter-spacing: -0.055em; white-space: nowrap; margin-left: -0.04em; }
.mark .mk { display: inline-block; }
.sub { max-width: 34em; margin-top: clamp(12px, 2vh, 24px); font-size: clamp(16px, 1.15vw, 21px); color: var(--mute); }
.halftone { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
#dots { position: absolute; inset: 0; width: 100%; height: 100%; }

.composer { border-right: 1px solid var(--line); padding: var(--pad); display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); grid-template-areas: "head head head" "g f w" "fair fair fair" "opts opts opts" "only only only" "note note note" "post post post" "msg msg msg"; column-gap: 14px; row-gap: 12px; align-content: start; }
.comp-head { grid-area: head; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.comp-head h2 { font-size: clamp(24px, 1.8vw, 32px); letter-spacing: -0.025em; }
.who { font-size: 14px; color: var(--mute); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.leg:first-of-type { grid-area: g; }
.leg:last-of-type { grid-area: w; }
.leg { min-width: 0; }
.leg label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.field { display: flex; border: 1px solid var(--line); height: 54px; }
.field input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; font-family: var(--mono); font-size: 22px; outline: none; }
.field select { border: 0; border-left: 1px solid var(--line); background: var(--fog); padding: 0 10px; max-width: 46%; font-weight: 500; cursor: pointer; }
html[data-theme="dark"] .field select { background: var(--night-2); }
.hint { font-size: 13px; color: var(--mute); margin-top: 6px; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flip { grid-area: f; align-self: center; margin-top: 8px; width: 40px; height: 40px; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; transition: transform .4s; }
.flip:hover { transform: rotate(180deg); background: var(--lime); color: var(--ink); }
.flip svg { width: 18px; height: 18px; }
.mintIn, .note { width: 100%; height: 42px; border: 1px solid var(--line); background: none; padding: 0 12px; font-size: 14px; margin-top: 8px; }
.mintIn { font-family: var(--mono); font-size: 13px; }
#onlyFor { grid-area: only; margin-top: 0; }
.note { grid-area: note; margin-top: 0; }
.fair { grid-area: fair; font-size: 15px; padding: 10px 12px; background: var(--fog); }
html[data-theme="dark"] .fair { background: var(--night-2); }
.fair b { font-weight: 600; }
.fair.over b { color: var(--fg); }
.opts { grid-area: opts; display: flex; gap: 12px; flex-wrap: wrap; }
.seg { display: flex; border: 1px solid var(--line); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 14px; font-size: 14px; border-right: 1px solid var(--line); transition: background .25s; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); }
.opts select { border: 1px solid var(--line); background: none; padding: 0 10px; font-size: 14px; min-height: 40px; }
.post { grid-area: post; height: 56px; border: 0; background: var(--fg); color: var(--bg); font-size: 18px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; cursor: pointer; }
.post svg { width: 20px; height: 20px; transition: transform .3s; }
.post:hover svg { transform: translateX(5px); }
.post[disabled] { opacity: .5; cursor: progress; }
.msg { grid-area: msg; font-size: 14px; min-height: 1.4em; }
.msg.err { color: var(--red); }
.msg .share { display: flex; gap: 8px; margin-top: 6px; }
.msg .share input { flex: 1; height: 38px; border: 1px solid var(--line); background: none; padding: 0 10px; font-family: var(--mono); font-size: 13px; }

.statement { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--char); color: var(--cream); padding: var(--pad); }
.lit { display: flex; flex-direction: column; gap: 14px; background: var(--lime); color: var(--ink); padding: var(--pad); overflow: hidden; }
.big { font-size: clamp(20px, 1.65vw, 30px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; }
.arrow { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding-top: 14px; border-top: 1px solid var(--rule-dark); font-size: 16px; }
.arrow svg { width: 18px; height: 18px; transition: transform .3s; }
.arrow:hover svg { transform: translateX(5px); }
.lit-sub { font-size: 15px; }
.marquee { margin-top: auto; overflow: hidden; border-top: 1px solid var(--ink); padding-top: 12px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 28px; width: max-content; animation: run 48s linear infinite; }
.track span { white-space: nowrap; font-size: 15px; }
.track b { font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes run { to { transform: translateX(-50%); } }

/* the four bottom cells share one row: composer | (statement + lit) */
.hero { grid-template-areas: "word ht" "comp right"; }
.word { grid-area: word; } .halftone { grid-area: ht; } .composer { grid-area: comp; }
.statement { grid-area: right; width: 50%; }
.lit { grid-area: right; width: 50%; margin-left: 50%; }

/* scrubbed paragraph */
.scrub { position: relative; padding: clamp(80px, 14vh, 180px) var(--pad); border-bottom: 1px solid var(--line); }
.scrub-fig { position: absolute; left: var(--pad); bottom: clamp(80px, 14vh, 180px); margin: 0; max-width: calc(50vw - 3 * var(--pad)); }
.fig-n { font-size: clamp(64px, 8vw, 150px); letter-spacing: -0.05em; line-height: .9; font-family: var(--sans); font-weight: 500; }
.scrub-fig figcaption { margin-top: 12px; font-size: clamp(16px, 1.15vw, 20px); color: var(--mute); max-width: 26em; }
.scrub-p { font-size: clamp(30px, 3.4vw, 64px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; max-width: 26ch; margin-left: 50%; max-width: calc(50vw - 2 * var(--pad)); }
.scrub-p .w { color: var(--fog); transition: color .2s; }
html[data-theme="dark"] .scrub-p .w { color: var(--night-line); }
.scrub-p .w.on { color: var(--fg); }

/* open book */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); min-height: 86svh; }
.pin { padding: var(--pad); border-right: 1px solid var(--line); align-self: start; position: sticky; top: var(--bar); height: min(calc(100svh - var(--bar)), 86svh); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.pin h2, .deals-l h2, .desk-l h2 { font-size: clamp(56px, 7.2vw, 132px); letter-spacing: -0.05em; line-height: .92; }
.pin-p { font-size: clamp(17px, 1.3vw, 24px); max-width: 26em; }
.dim { color: var(--mute); }
.list.dark { background: var(--panel); color: var(--panel-fg); padding: var(--pad); display: flex; flex-direction: column; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 22px 0; border-bottom: 1px solid var(--rule-dark-2); text-decoration: none; position: relative; cursor: pointer; }
.offer::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); z-index: 0; }
.offer > * { position: relative; z-index: 1; }
.offer:hover { color: var(--ink); }
.offer:hover::before { transform: scaleY(1); }
.offer .terms { font-size: clamp(22px, 2vw, 36px); letter-spacing: -0.025em; font-weight: 500; line-height: 1.05; }
.offer .terms .x { font-weight: 400; opacity: .55; padding: 0 .2em; }
.offer .vs { font-size: 15px; text-align: right; align-self: end; }
.offer .meta { font-size: 14px; opacity: .75; }
.offer .meta .num { font-size: 13px; }
.offer .go { font-size: 15px; text-align: right; }
.empty { font-size: 18px; line-height: 1.35; max-width: 30em; padding: 24px 0; }
.list.dark .empty { color: var(--mute-dark); }
.tok { display: inline-flex; align-items: center; gap: .25em; }
.tok img { width: .8em; height: .8em; border-radius: 50%; display: inline-block; }

/* tape */
.tape { padding: clamp(60px, 10vh, 120px) 0 0; border-bottom: 1px solid var(--line); }
.tape-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 var(--pad) clamp(30px, 5vh, 60px); gap: var(--pad); align-items: end; }
.tape-head p { font-size: clamp(16px, 1.2vw, 21px); max-width: 34em; color: var(--mute); }
.table { border-top: 1px solid var(--line); }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr); padding: 14px var(--pad); border-bottom: 1px solid var(--fog); align-items: center; font-size: 16px; text-decoration: none; position: relative; }
html[data-theme="dark"] .tr { border-color: var(--night-3); }
.tr.th { font-size: 14px; color: var(--mute); border-bottom-color: var(--line); }
a.tr::before { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
a.tr > * { position: relative; }
a.tr:hover { color: var(--ink); }
a.tr:hover::before { transform: scaleX(1); }
.tr .s-sell { color: var(--red); }
a.tr:hover .s-sell { color: var(--ink); }
.tr .bar-s { display: inline-block; height: 8px; background: currentColor; margin-right: 8px; vertical-align: middle; min-width: 2px; }

/* how */
.how { padding: clamp(80px, 12vh, 160px) var(--pad); border-bottom: 1px solid var(--line); overflow: hidden; }
.how h2 { max-width: 12ch; font-size: clamp(44px, 5vw, 96px); letter-spacing: -0.045em; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pad); margin-top: clamp(40px, 8vh, 100px); }
.card { border: 1px solid var(--line); background: var(--bg); padding: var(--pad); display: flex; flex-direction: column; gap: 14px; min-height: clamp(220px, 20vw, 330px); }
.card:nth-child(2) { margin-top: 8vh; } .card:nth-child(3) { margin-top: 16vh; } .card:nth-child(4) { margin-top: 24vh; background: var(--lime); color: var(--ink); border-color: var(--ink); }
.card h3 { font-weight: 500; font-size: clamp(30px, 2.6vw, 48px); letter-spacing: -0.035em; line-height: 1; }
.card p { font-size: clamp(15px, 1.05vw, 18px); }
.card code { margin-top: auto; font-family: var(--mono); font-size: 13px; padding-top: 12px; border-top: 1px solid currentColor; word-break: break-word; }

/* deals + desk */
.deals, .desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.deals-l, .desk-l { padding: var(--pad); padding-top: clamp(60px, 10vh, 120px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.deals-r, .desk-r { padding: var(--pad); padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(60px, 10vh, 120px); }
.deal, .mine { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--fog); text-decoration: none; }
html[data-theme="dark"] .deal, html[data-theme="dark"] .mine { border-color: var(--night-3); }
.deal .terms, .mine .terms { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.deal .when, .mine .st { font-size: 14px; color: var(--mute); text-align: right; }
.deal .sub2, .mine .sub2 { font-size: 14px; color: var(--mute); grid-column: 1 / -1; }
.mine { cursor: pointer; }
.mine:hover .terms { text-decoration: underline; }
.phantom.solid { height: 52px; border: 1px solid var(--line); align-self: start; padding: 0 22px; }
.desk-group { font-size: 15px; color: var(--mute); margin: 24px 0 4px; }
.desk-group:first-child { margin-top: 0; }

/* footer */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 60svh; }
.foot-l { padding: var(--pad); display: flex; flex-direction: column; gap: 22px; justify-content: flex-end; border-right: 1px solid var(--line); }
.foot-mark { width: 72px; height: 72px; background: var(--lime); padding: 10px; }
.foot-l p { font-size: clamp(17px, 1.3vw, 22px); max-width: 30em; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; }
.foot-links svg { width: 18px; height: 18px; fill: currentColor; }
.foot-cta { display: flex; align-items: flex-end; justify-content: space-between; background: var(--char); color: var(--cream); padding: var(--pad); text-decoration: none; font-size: clamp(40px, 5vw, 96px); letter-spacing: -0.045em; font-weight: 500; line-height: 1; transition: background .5s, color .5s; }
.foot-cta svg { width: .7em; height: .7em; transition: transform .4s; }
.foot-cta:hover { background: var(--lime); color: var(--ink); }
.foot-cta:hover svg { transform: translateX(12px); }

/* deal room */
.room { position: fixed; inset: 0; z-index: 50; }
.room[hidden] { display: none; }
.room-shade { position: absolute; inset: 0; background: var(--shade); }
.room-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(50vw, 920px); min-width: min(100vw, 560px); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slide .5s cubic-bezier(.2,.7,.2,1); }
@keyframes slide { from { transform: translateX(100%); } }
.room-top { height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding-left: var(--pad); border-bottom: 1px solid var(--line); flex: none; }
.room-top h2 { font-size: 22px; letter-spacing: -0.02em; }
.x { width: var(--bar); height: var(--bar); border: 0; border-left: 1px solid var(--line); background: none; font-size: 28px; cursor: pointer; }
.x:hover { background: var(--lime); color: var(--ink); }
.room-body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.r-terms { padding: var(--pad); border-bottom: 1px solid var(--line); }
.r-terms .terms { font-size: clamp(28px, 2.6vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.r-terms .terms .x2 { opacity: .5; font-weight: 400; }
.r-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.r-facts div { padding: 14px var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--fog); font-size: 15px; }
.r-facts div:nth-child(2n) { border-right: 0; }
.r-facts dt { color: var(--mute); font-size: 13px; }
.r-facts dd { margin: 2px 0 0; }
.r-note { padding: 14px var(--pad); font-size: 15px; border-bottom: 1px solid var(--line); background: var(--fog); }
html[data-theme="dark"] .r-note { background: var(--night-2); }
.r-sec { padding: var(--pad); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.r-sec h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.r-sec p { font-size: 15px; }
.btn { height: 48px; border: 1px solid var(--line); background: none; padding: 0 18px; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; }
.btn.main { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.lime { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn:hover { background: var(--lime); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tks { display: flex; flex-direction: column; }
.tk { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fog); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font-size: 15px; }
.tk.on, .tk:hover { color: var(--fg); text-decoration: underline; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.m { max-width: 84%; padding: 10px 14px; font-size: 15px; border: 1px solid var(--line); align-self: flex-start; }
.m.me { align-self: flex-end; background: var(--char); color: var(--cream); border-color: var(--char); }
html[data-theme="dark"] .m.me { background: var(--night-3); }
.m.sys { align-self: center; border-style: dashed; color: var(--mute); font-size: 14px; }
.m.counter { border-width: 2px; }
.m .when { display: block; font-size: 12px; opacity: .6; margin-top: 4px;  }
.m .btn { height: 36px; margin-top: 8px; font-size: 14px; }
.say { display: flex; border: 1px solid var(--line); }
.say input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; height: 46px; outline: none; }
.say button { border: 0; border-left: 1px solid var(--line); background: var(--fg); color: var(--bg); padding: 0 18px; cursor: pointer; }
.cnt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.cnt input { height: 44px; border: 1px solid var(--line); background: none; padding: 0 10px; font-family: var(--mono); min-width: 0; }
.cnt label { font-size: 13px; color: var(--mute); }
.sim { font-family: var(--mono); font-size: 13px; padding: 10px 12px; background: var(--fog); white-space: pre-wrap; }
html[data-theme="dark"] .sim { background: var(--night-2); }
.sim.ok { background: var(--lime); color: var(--ink); }
.sim.bad { background: var(--red); color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; background: var(--char); color: var(--cream); padding: 12px 18px; font-size: 15px; z-index: 60; transition: transform .35s cubic-bezier(.2,.7,.2,1); max-width: 92vw; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* reveal on load */
.mark .mk { transform: translateY(105%); }
html.ready .mark .mk { transform: none; transition: transform 1.1s cubic-bezier(.2,.7,.1,1); }
html.ready .mark .mk + .mk { transition-delay: .08s; }
.mark { overflow: hidden; padding-bottom: .08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark .mk { transform: none; }
}

/* narrow */
@media (max-width: 1180px) {
  .links { display: none; }
  .clock .slot { display: none; }
}
@media (max-width: 860px) {
  .bar { position: relative; grid-template-columns: minmax(0, 1fr); height: auto; }
  .bar-l { height: 56px; }
  .bar-r { border-left: 0; border-top: 1px solid var(--line); height: 50px; }
  .bar-r .icons { margin-left: 0; padding-left: 4px; }
  .bar-r .phantom, .bar-r .buy { height: 50px; }
  .tile { width: 56px; height: 56px; }
  .clock, .pairnote { display: none; }
  .coin { margin-left: auto; padding-right: 12px; }
  .ca { font-size: 12px; padding: 5px 7px; }
  .icons { padding: 0 4px; }
  .phantom { padding: 0 14px; font-size: 14px; margin-left: auto; }
  .buy { padding: 0 14px; gap: 10px; font-size: 15px; }
  .buy span, .buy svg { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "word" "ht" "comp" "right" "lit"; grid-template-rows: auto; }
  .word { border-right: 0; min-height: 0; padding-top: 48px; }
  .mark { font-size: calc((100vw - 2 * var(--pad)) / 4.55); }
  .halftone { height: 42vw; min-height: 200px; }
  .composer { border-right: 0; border-bottom: 1px solid var(--line); }
  .statement, .lit { width: auto; margin-left: 0; }
  .lit { grid-area: lit; min-height: 300px; }
  .statement { min-height: 260px; }
  .scrub-p { margin-left: 0; max-width: none; }
  .scrub-fig { position: static; max-width: none; margin-bottom: 40px; }
  .scrub { display: flex; flex-direction: column; }
  .book, .deals, .desk, .foot, .tape-head { grid-template-columns: minmax(0, 1fr); }
  .pin { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-top: 60px; }
  .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; font-size: 15px; }
  .tr.th { display: none; }
  .tr .c-pool { grid-column: 1 / -1; order: -1; font-weight: 500; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card:nth-child(n) { margin-top: 0; min-height: 0; }
  .deals-l, .desk-l, .foot-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-cta { min-height: 40svh; }
  .room-panel { width: 100vw; min-width: 0; }
}
@media (max-width: 420px) {
  .phantom { font-size: 13px; padding: 0 10px; }
  .ico { width: 28px; }
  .lights { width: 30px; }
  .composer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "g" "f" "w" "fair" "opts" "only" "note" "post" "msg"; }
  .flip { justify-self: center; margin: 0; }
  .comp-head { flex-direction: column; gap: 4px; }
  .who { text-align: left; }
}

/* halftone texture on the dark book when it is empty, and the step plates on the settlement cards */
.list.dark.is-empty { background-image: radial-gradient(circle, var(--night-line) 1.2px, transparent 1.5px); background-size: 7px 7px; justify-content: flex-end; gap: 18px; align-items: flex-start; }
.list.dark.is-empty .empty { background: var(--panel); padding: 18px 20px; color: var(--panel-fg); font-size: clamp(18px, 1.4vw, 24px); }
.plate { height: clamp(110px, 9vw, 160px); margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 6px; border-bottom: 1px solid currentColor; background-image: radial-gradient(circle, currentColor 1px, transparent 1.3px); background-size: 6px 6px; display: grid; place-items: center; overflow: hidden; }
.plate svg { width: 46%; height: 80%; overflow: visible; transform: rotate(90deg); }
.plate .h { fill: var(--fog); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:nth-child(4) .plate .h { fill: var(--ink); }

html[data-theme="dark"] .card:nth-child(4) .plate .h { fill: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
