/* Narrameter: The Trench Times. A tabloid for the trenches: white newsprint, black ink, one red, yellow only on
   black. Heavy rules instead of cards. Anton for headlines, Archivo Narrow for labels and figures, Source Serif for
   reading. Colour in data: black is good, red is rug, greys are everything that faded or never started. */
:root {
  color-scheme: light;
  --paper: #FFFFFF; --ink: #000000; --red: #E3120B; --red-ink: #C40F09; --yellow: #FFD400;
  --grey: #4D4D4D; --grey-2: #6B6B6B; --rule-soft: #BDBDBD; --wash: #F2F2F2;
  --head: 'Anton', Impact, 'Arial Narrow', sans-serif; --label: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --body: 'Source Serif 4', Georgia, serif;
  /* Outcomes in print: good and runner in ink, rug in red, faded grey, dead on arrival a pale base. */
  --runner: #000000; --good: #000000; --faded: #8A8A8A; --dead: #E0E0E0; --rug: #E3120B;
  --up: #000000; --down: #C40F09;
  --link: #000000; --focus: #E3120B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45; font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: #fff; padding: 6px 10px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* Masthead: giant on the front page, a compact nameplate inside. */
.dateline { display: flex; justify-content: space-between; gap: 16px; font-family: var(--label); font-weight: 700; font-size: 14px; padding: 12px 0 8px; border-bottom: 1px solid var(--ink); }
.live { margin: 0; display: inline-flex; gap: 6px; align-items: center; color: var(--red-ink); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.live.stale { color: var(--grey); } .live.stale .dot { background: var(--grey-2); }
.mast { background: var(--red); color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 14px 22px 10px; margin-top: 10px; text-decoration: none; }
.mast:hover { color: #fff; }
.mast .name { font-family: var(--head); font-weight: 400; font-size: clamp(64px, 12.5vw, 172px); line-height: 0.82; letter-spacing: 0.005em; }
.mast .tag { font-family: var(--label); font-weight: 700; font-size: 18px; margin: 0 0 12px; text-align: right; max-width: 16ch; line-height: 1.15; }
body:not([data-page="today"]) .mast { padding: 8px 16px 6px; align-items: center; }
body:not([data-page="today"]) .mast .name { font-size: clamp(40px, 6vw, 64px); }
body:not([data-page="today"]) .mast .tag { margin: 0; font-size: 15px; max-width: none; }
.nav { display: flex; background: var(--ink); overflow-x: auto; scrollbar-width: none; }
.nav a { color: #fff; text-decoration: none; font-family: var(--label); font-weight: 700; font-size: 16px; padding: 10px 16px; white-space: nowrap; border-right: 1px solid #333; min-height: 42px; display: inline-flex; align-items: center; }
.nav a:hover { background: #222; color: var(--yellow); }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.ticker { background: var(--ink); color: #fff; font-family: var(--label); font-weight: 700; font-size: 15px; overflow: hidden; white-space: nowrap; padding: 7px 0; border-top: 1px solid #333; }
.ticker .run { display: inline-block; padding-left: 100%; animation: tick 110s linear infinite; }
.ticker b { color: var(--yellow); margin: 0 6px 0 30px; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .run { animation: none; padding-left: 12px; } }
body:not([data-page="today"]) .ticker { display: none; }

main { max-width: 1320px; margin: 0 auto; padding: 0 28px 40px; outline: none; }
.stack { display: grid; gap: 0; }

/* Story heads: kicker, headline, standfirst. */
.story-head { padding: 22px 0 18px; border-bottom: 4px solid var(--ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.kicker { display: inline-block; background: var(--ink); color: #fff; font-family: var(--label); font-weight: 700; font-size: 15px; padding: 3px 10px; margin-bottom: 10px; }
.kicker.red { background: var(--red); }
.headline { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 6.6vw, 96px); line-height: 0.9; margin: 0; text-transform: uppercase; text-wrap: balance; max-width: 18ch; }
.headline em { font-style: normal; color: var(--red); }
.stand { font-size: 21px; line-height: 1.35; margin: 12px 0 0; max-width: 46ch; text-wrap: pretty; }
.section { padding: 20px 0 24px; border-bottom: 4px solid var(--ink); min-width: 0; }
.section-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.section-h h2, h2.sh { font-family: var(--head); font-weight: 400; font-size: 38px; line-height: 1; margin: 0; text-transform: uppercase; }
.section-h p, .sub { font-family: var(--label); font-weight: 500; color: var(--grey); margin: 0; font-size: 15px; }
.sub b { color: var(--ink); }
.panel { min-width: 0; }

/* Front page */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 22px 0 26px; border-bottom: 4px solid var(--ink); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lead .headline { font-size: clamp(56px, 6.4vw, 100px); max-width: none; }
.lead .headline em { display: block; }
.photo { margin: 0; }
.photo .frame { position: relative; height: 340px; overflow: hidden; background: #DADADA; }
.photo img, .photo .noimg { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.5) brightness(1.05); display: grid; place-items: center; font-family: var(--head); font-size: 200px; color: #777; }
.photo .frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,0.42) 1.1px, transparent 1.6px) 0 0 / 5px 5px; mix-blend-mode: multiply; pointer-events: none; }
.photo .stamp { position: absolute; right: 14px; top: 14px; z-index: 1; font-family: var(--head); font-size: 54px; color: var(--red); border: 6px solid var(--red); padding: 0 14px; transform: rotate(-8deg); background: rgba(255,255,255,0.88); line-height: 1.1; }
.photo figcaption { font-size: 15px; color: var(--grey); padding: 8px 0; border-bottom: 1px solid var(--ink); }
.photo figcaption b { color: var(--ink); }
.wanted { background: var(--ink); color: #fff; padding: 18px 20px 20px; }
.wanted h2 { font-family: var(--head); font-weight: 400; font-size: 54px; line-height: 0.9; margin: 0 0 4px; color: var(--yellow); }
.wanted .sub { color: #BBB; margin-bottom: 14px; }
.wanted ol { list-style: none; margin: 0; padding: 0; }
.wanted li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid #444; }
.wanted .no { font-family: var(--head); font-size: 34px; line-height: 1; color: var(--yellow); }
.wanted .nm { font-family: var(--head); font-size: 30px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; color: #fff; text-decoration: none; }
.wanted .nm:hover { color: var(--yellow); }
.wanted .cr { font-size: 15px; color: #DDD; margin-top: 4px; }
.wanted .cr b { color: #fff; }
.wanted .more-link { display: inline-block; margin-top: 12px; font-family: var(--label); font-weight: 700; color: var(--yellow); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 3px solid var(--ink); }
.board > div { padding: 12px 16px 14px; border-left: 3px solid var(--ink); min-width: 0; }
.board > div:first-child { border-left: 0; }
.board b { display: block; font-family: var(--head); font-weight: 400; font-size: 64px; line-height: 0.95; }
.board span { font-family: var(--label); font-weight: 700; font-size: 15px; }
.board .bad b { color: var(--red); }
.verdict { font-size: 20px; font-style: italic; margin: 12px 0 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 22px 0 24px; border-bottom: 4px solid var(--ink); }
.cols > section { min-width: 0; }
.cols > section + section { border-left: 1px solid var(--ink); padding-left: 28px; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; border-bottom: 4px solid var(--ink); }
.two > section { padding: 20px 0 24px; min-width: 0; }
.two > section + section { border-left: 1px solid var(--ink); padding-left: 28px; }
.item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule-soft); text-decoration: none; color: var(--ink); }
.item:hover { color: var(--ink); } .item:hover .t { text-decoration: underline; }
.item img, .item .noimg { width: 52px; height: 52px; object-fit: cover; filter: grayscale(1) contrast(1.3); display: grid; place-items: center; background: #DADADA; font-family: var(--head); font-size: 26px; color: #555; }
.item .t { font-family: var(--head); font-size: 25px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.item .d { font-size: 14px; color: var(--grey); line-height: 1.3; margin-top: 3px; }
.item .v { font-family: var(--head); font-size: 26px; text-align: right; }
.item .v.red { color: var(--red); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.feed time { display: block; font-family: var(--label); color: var(--grey-2); font-size: 13px; }
.feed .k { font-family: var(--label); font-weight: 700; background: var(--ink); color: #fff; padding: 0 5px; margin-right: 6px; font-size: 13px; }

/* Graphics: newspaper charts in ink, grey and spot red. */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: #D6D6D6; stroke-width: 1; }
.chart .axis-label { fill: var(--grey); font-size: 12px; font-family: var(--label); }
.chart rect.hit { fill: transparent; cursor: crosshair; }
.chart rect.hit:hover { fill: rgba(0, 0, 0, 0.05); }
.chart-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--label); font-weight: 700; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; flex-shrink: 0; display: inline-block; }
.sw-runner { background: var(--runner); } .sw-good { background: var(--good); } .sw-faded { background: var(--faded); }
.sw-dead { background: var(--dead); outline: 1px solid #BDBDBD; } .sw-rug { background: var(--rug); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--label); font-size: 14px; font-weight: 700; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); padding: 4px 12px 4px 9px; cursor: pointer; min-height: 34px; }
.chip .box { width: 14px; height: 14px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 10px; line-height: 1; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; } .chip[aria-pressed="true"] .box { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 12px; font-family: var(--label); font-size: 14px; min-width: 180px; }
.tip-title { font-weight: 700; margin-bottom: 6px; color: var(--yellow); }
.tip-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.tip-row .sw-good, .tip-row .sw-runner { outline: 1px solid #fff; }

/* Tables: the rug-sheet style. */
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: -3px; }
table.t { width: 100%; border-collapse: collapse; font-family: var(--label); font-size: 16px; }
.t th { text-align: left; font-weight: 700; font-size: 14px; border-bottom: 3px solid var(--ink); padding: 6px 8px; white-space: nowrap; background: var(--paper); }
.t th button { all: unset; cursor: pointer; } .t th button:hover, .t th button.on { color: var(--red-ink); }
.t td { border-bottom: 1px solid var(--rule-soft); padding: 9px 8px; vertical-align: middle; background: var(--paper); }
.t tbody tr:hover td { background: #F7F7F7; }
.t .n, .t th.n { text-align: right; white-space: nowrap; }
.t td a { white-space: nowrap; }
.up { color: var(--ink); font-weight: 700; } .down { color: var(--down); font-weight: 700; }
.dim { color: var(--grey-2); } .muted { color: var(--grey); } .small { font-size: 13px; }
.empty { color: var(--grey); font-style: italic; padding: 14px 0; }
.why { margin: 0; padding-left: 16px; color: var(--grey); font-size: 14px; max-width: 48ch; font-family: var(--body); }

.coin { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.coin img, .coin .noimg { width: 34px; height: 34px; object-fit: cover; filter: grayscale(1) contrast(1.25); background: #DADADA; flex-shrink: 0; }
.coin .noimg { display: grid; place-items: center; font-family: var(--head); font-size: 18px; color: #444; filter: none; }
.coin .lbl { display: grid; line-height: 1.2; min-width: 0; }
.coin .symrow { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; }
.coin .sym { font-family: var(--head); font-weight: 400; font-size: 20px; text-transform: uppercase; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
.coin .sym:hover { color: var(--red-ink); }
.coin .quote { font-family: var(--label); color: var(--grey-2); font-size: 12px; font-weight: 700; }
.coin .nm { font-family: var(--body); color: var(--grey); font-size: 13px; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stamped labels */
.badge { display: inline-block; font-family: var(--label); font-weight: 700; font-size: 13px; padding: 1px 8px; white-space: nowrap; border: 2px solid var(--ink); }
.badge .swatch { display: none; }
.badge.o-rug { background: var(--red); border-color: var(--red); color: #fff; }
.badge.o-runner { background: var(--yellow); color: var(--ink); }
.badge.o-good { background: var(--ink); color: #fff; }
.badge.o-faded { color: var(--grey); border-color: #9A9A9A; }
.badge.o-dead { color: var(--grey-2); border-color: #D0D0D0; }
.badge.stage { border-width: 1px; }
.pp { display: inline-flex; align-items: center; gap: 3px; font-family: var(--label); font-size: 12px; font-weight: 700; color: var(--red-ink); border: 1.5px solid var(--red); padding: 0 5px; line-height: 17px; white-space: nowrap; cursor: help; text-transform: uppercase; }
.hchip { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.hs { font-family: var(--head); font-weight: 400; }
.hchip .hs { font-size: 22px; line-height: 1; padding: 0 3px; }
.hs.hi { background: var(--yellow); color: var(--ink); } .hs.mid { color: var(--ink); } .hs.lo { color: var(--red-ink); }
.heat { display: inline-grid; grid-template-columns: 34px 90px; gap: 8px; align-items: center; }
.heat b { font-family: var(--head); font-weight: 400; font-size: 26px; text-align: right; line-height: 1; }
.heat-track { height: 8px; background: #E6E6E6; }
.heat-fill { height: 100%; background: var(--ink); }
.minibar { display: flex; height: 10px; gap: 1px; width: 140px; background: #EEE; }
.seg { display: inline-flex; border: 2px solid var(--ink); }
.seg button { font-family: var(--label); font-size: 15px; font-weight: 700; color: var(--ink); background: var(--paper); border: 0; padding: 6px 14px; cursor: pointer; min-height: 38px; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

/* Shame list: the most-wanted board */
.note { background: var(--wash); border-left: 4px solid var(--ink); padding: 12px 16px; font-size: 15px; margin: 18px 0 0; max-width: 92ch; }
.note.warn { border-left-color: var(--red); }
.shame { list-style: none; margin: 0; padding: 0; }
.shame > li { border-bottom: 1px solid var(--ink); }
.shame-row { display: grid; grid-template-columns: 70px minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) 28px; gap: 16px; align-items: center; padding: 14px 0; cursor: pointer; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.shame-row:hover .who b { color: var(--red-ink); }
.rank { font-family: var(--head); font-size: 48px; line-height: 1; }
.shame > li:nth-child(-n+3) .rank { color: var(--red); }
.who { min-width: 0; }
.who b { display: block; font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-family: var(--label); color: var(--grey); font-size: 13px; }
.fig b { display: block; font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1.05; }
.fig span { font-family: var(--label); color: var(--grey); font-size: 13px; }
.fig .down { color: var(--red-ink); font-weight: 400; }
.chev { font-family: var(--head); font-size: 26px; transition: transform 0.15s; }
.shame-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.evidence { padding: 0 0 20px; }
.evidence h3 { font-family: var(--head); font-weight: 400; font-size: 24px; text-transform: uppercase; margin: 16px 0 6px; }
.figs { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 16px 0; }

/* Wallets */
.lookup { display: flex; gap: 0; max-width: 820px; margin-top: 18px; border: 3px solid var(--ink); }
.lookup input { flex: 1; min-width: 0; font-family: var(--label); font-size: 18px; padding: 12px 14px; border: 0; background: var(--paper); color: var(--ink); }
.lookup input:focus-visible { outline: none; background: #FFFBE0; }
.btn { font-family: var(--label); font-size: 16px; font-weight: 700; padding: 11px 18px; border: 0; background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; min-height: 40px; }
.btn:hover { background: var(--red-ink); }
.btn.ghost { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 14px; padding: 4px 10px; min-height: 30px; }
.more { margin-top: 14px; justify-self: start; }
.msg { min-height: 1.5em; margin: 10px 0 0; color: var(--red-ink); font-weight: 600; }

/* Coin page */
.coin-head .coin img, .coin-head .coin .noimg { width: 92px; height: 92px; font-size: 44px; }
.coin-head .coin .sym { font-size: clamp(48px, 7vw, 96px); line-height: 0.9; }
.coin-head .coin .nm { font-size: 18px; max-width: 40ch; }
.coin-head p.small { margin: 10px 0 0; font-family: var(--label); }
.hcard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; }
.hscore { display: grid; gap: 2px; }
.eyebrow-l { font-family: var(--label); font-weight: 700; font-size: 15px; }
.hscore .big { font-size: 120px; line-height: 0.9; padding: 0; }
.hscore .big.hi { background: none; box-shadow: inset 0 -0.28em var(--yellow); justify-self: start; }
.hscore .word { font-family: var(--head); font-size: 26px; text-transform: uppercase; }
.hfacts p { margin: 0 0 6px; font-size: 19px; }
.hmix { display: flex; gap: 2px; height: 22px; margin: 14px 0 10px; }
.hmix span { min-width: 3px; }
.g-good { background: var(--ink); } .g-jeet { background: #8A8A8A; } .g-other { background: #D3D3D3; } .g-insider { background: var(--red); }
.kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); font-size: 14px; font-weight: 700; white-space: nowrap; }
.kind .dotk { width: 10px; height: 10px; background: #D3D3D3; }
.k-smart .dotk, .k-holder .dotk { background: var(--ink); } .k-jeet .dotk, .k-bot .dotk { background: #8A8A8A; }
.k-fresh .dotk, .k-bundle .dotk, .k-creator .dotk { background: var(--red); }
.st { font-weight: 700; white-space: nowrap; } .st-holding { color: var(--ink); } .st-partial { color: var(--grey); } .st-sold { color: var(--grey-2); text-decoration: line-through; }

.method dl { display: grid; grid-template-columns: 240px minmax(0, 70ch); gap: 12px 28px; margin: 0; padding: 22px 0; }
.method dt { font-family: var(--head); font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.method dd { margin: 0; }

.skel { padding: 30px 0; } .skel div { display: none; }
.loading-note { font-family: var(--head); font-size: 40px; text-transform: uppercase; color: #8A8A8A; margin: 0; }

.foot { max-width: 1320px; margin: 0 auto; padding: 18px 28px 48px; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-family: var(--label); font-size: 14px; color: var(--grey); }
.foot .fb { font-family: var(--head); font-size: 26px; color: var(--red-ink); margin: 0 0 4px; text-transform: uppercase; }
.foot p { margin: 0 0 4px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .lead, .two { grid-template-columns: 1fr; }
  .two > section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); }
  .cols { grid-template-columns: 1fr; }
  .cols > section + section { border-left: 0; padding-left: 0; border-top: 4px solid var(--ink); padding-top: 16px; }
  .shame-row { grid-template-columns: 54px minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) 24px; }
  .shame-row .opt { display: none; }
  .hcard { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 700px) {
  .wrap, main { padding-left: 14px; padding-right: 14px; }
  .dateline .ed { display: none; }
  .mast { padding: 10px 12px 6px; } .mast .tag { display: none; }
  .lead-grid { grid-template-columns: 1fr; }
  .stand { font-size: 18px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board > div { border-left: 0; border-top: 3px solid var(--ink); }
  .board > div:nth-child(-n+2) { border-top: 0; }
  .board > div:nth-child(even) { border-left: 3px solid var(--ink); }
  .board > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .board b { font-size: 46px; }
  .photo .frame { height: 230px; }
  .wanted h2 { font-size: 44px; }
  .section-h h2, h2.sh { font-size: 30px; }
  .shame-row { grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 10px; }
  .shame-row .fig:not(.lead-fig) { display: none; }
  .rank { font-size: 34px; } .who b { font-size: 24px; }
  .t td:first-child, .t th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 6px 0 6px -6px rgba(0, 0, 0, 0.35); }
  .coin { min-width: 140px; } .coin .nm { max-width: 15ch; }
  .method dl { grid-template-columns: 1fr; gap: 2px; } .method dd { margin-bottom: 12px; }
  .lookup { flex-direction: column; } .lookup .btn { width: 100%; }
  .hscore .big { font-size: 90px; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* Existing page structures in the paper's style. */
.panel { padding: 20px 0 24px; border-bottom: 4px solid var(--ink); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--head); font-weight: 400; font-size: 38px; line-height: 1; margin: 0; text-transform: uppercase; }
.panel-head .sub { margin-top: 4px; }
.page-head { padding: 22px 0 18px; border-bottom: 4px solid var(--ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 6.6vw, 96px); line-height: 0.9; margin: 0; text-transform: uppercase; }
.page-head p { font-size: 21px; line-height: 1.35; margin: 12px 0 0; max-width: 52ch; }
.grid { display: grid; gap: 28px; }
.cols-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 700px) { .section-h h2, .panel-head h2 { font-size: 30px; } .page-head p { font-size: 18px; } }
.linkbtn { font: inherit; font-family: var(--label); font-weight: 700; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--red-ink); }

/* ---- Search, account, the trench room, coin chats, private messages ---------------------------------------------- */
.navbar { display: flex; background: var(--ink); align-items: stretch; }
.navbar .nav { flex: 1; min-width: 0; }
.tools { display: flex; align-items: center; border-left: 1px solid #333; }
.search { position: relative; display: flex; align-items: center; padding: 0 10px; }
.search input { width: 250px; height: 32px; font-family: var(--label); font-size: 15px; font-weight: 500; padding: 4px 10px; border: 0; border-radius: 0; background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--grey-2); }
.search input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }
.q-list { position: absolute; right: 10px; top: calc(100% + 6px); width: min(440px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; margin: 0; padding: 0; list-style: none; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); z-index: 70; }
.q-list li[role="option"] { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--rule-soft); cursor: pointer; color: var(--ink); }
.q-list li[role="option"]:first-child { border-top: 0; }
.q-list li[aria-selected="true"], .q-list li[role="option"]:hover { background: var(--ink); color: #fff; }
.q-list li[aria-selected="true"] .q-name, .q-list li[role="option"]:hover .q-name, .q-list li[aria-selected="true"] .q-note, .q-list li[role="option"]:hover .q-note { color: #CFCFCF; }
.q-list img, .q-list .noimg { width: 28px; height: 28px; object-fit: cover; filter: grayscale(1) contrast(1.2); display: grid; place-items: center; font-family: var(--head); font-size: 15px; background: #DADADA; color: #444; }
.q-main { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.q-main b { font-family: var(--head); font-weight: 400; font-size: 18px; text-transform: uppercase; white-space: nowrap; }
.q-name { font-size: 13px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmark { font-family: var(--label); font-weight: 700; font-size: 12px; color: var(--ink); background: var(--yellow); padding: 0 4px; }
.q-note { font-family: var(--label); font-size: 12px; color: var(--grey-2); white-space: nowrap; }
.q-none, .q-all { padding: 10px 12px; font-family: var(--label); color: var(--grey); border-top: 1px solid var(--rule-soft); }
.q-none { border-top: 0; }
.q-all a { font-weight: 700; }
.acct { display: flex; }
.acct a { color: #fff; text-decoration: none; font-family: var(--label); font-weight: 700; font-size: 15px; padding: 10px 14px; border-left: 1px solid #333; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 42px; }
.acct a:hover { background: #222; color: var(--yellow); }
.acct a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.count { display: inline-block; min-width: 18px; text-align: center; background: var(--red); color: #fff; font-family: var(--label); font-weight: 700; font-size: 12px; line-height: 18px; padding: 0 5px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { font-family: var(--label); font-size: 16px; padding: 6px 10px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); min-height: 36px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
a.btn:hover { color: #fff; }
a.btn.ghost { color: var(--ink); } a.btn.ghost:hover { color: #fff; }
.btn.danger { background: var(--red-ink); color: #fff; border: 0; } .btn.danger:hover { background: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: wait; }

.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 20px 0 24px; border-bottom: 4px solid var(--ink); }
.room-main { min-width: 0; }
.room-meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 0 0 8px; font-family: var(--label); font-weight: 700; font-size: 14px; color: var(--grey); min-height: 20px; }
.room-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.room-meta .slow { color: var(--red-ink); }
.msgs-frame { position: relative; border: 3px solid var(--ink); }
.msgs-wrap { height: min(62vh, 640px); overflow-y: auto; padding: 2px 14px; overscroll-behavior: contain; }
.msgs-wrap:focus-visible { outline-offset: -3px; }

.msgs { list-style: none; margin: 0; padding: 0; }
.cmsg { padding: 9px 0; border-top: 1px solid var(--rule-soft); }
.msgs > li:first-child { border-top: 0; }
.cmsg .mh { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.cmsg time { font-family: var(--label); font-size: 12px; color: var(--grey-2); white-space: nowrap; }
.name-tag { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.name-tag b { font-family: var(--label); font-weight: 700; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.name-tag b.mine { background: var(--yellow); padding: 0 3px; }
.name-tag.gone { font-family: var(--label); font-style: italic; color: var(--grey-2); }
.role-admin { background: var(--red); color: #fff; font-family: var(--label); font-weight: 700; font-size: 11px; padding: 0 5px; line-height: 17px; text-transform: uppercase; }
.role-new { border: 1px solid #9A9A9A; color: var(--grey); font-family: var(--label); font-weight: 700; font-size: 11px; padding: 0 4px; line-height: 15px; }
.pnl { font-family: var(--label); font-weight: 700; font-size: 12px; line-height: 16px; padding: 0 4px; border: 1.5px solid; text-decoration: none; white-space: nowrap; }
.pnl.pos { color: var(--ink); border-color: var(--ink); } .pnl.neg { color: var(--red-ink); border-color: var(--red); }
.pnl:hover { background: var(--ink); color: #fff; }
.mb { margin: 2px 0 0; font-size: 16px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.mb a.mint, .mb a.tkr { font-family: var(--label); font-weight: 700; }
.cmsg.wire { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; background: var(--ink); color: #fff; margin: 0 -14px; padding: 8px 14px; border-top: 1px solid #3A3A3A; }
.cmsg.wire + .cmsg { border-top: 0; }
.msgs > .cmsg.wire:first-child { margin-top: 0; }
.cmsg.wire .k { background: var(--yellow); color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 13px; padding: 0 6px; white-space: nowrap; }
.cmsg.wire.w-rug .k { background: var(--red); color: #fff; }
.cmsg.wire .mb { margin: 0; font-family: var(--label); font-weight: 500; font-size: 15px; }
.cmsg.wire a { color: #fff; font-weight: 700; } .cmsg.wire a:hover { color: var(--yellow); }
.cmsg.wire time { color: #BBB; }
.mact { margin-left: auto; background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 6px; color: var(--grey); min-width: 32px; min-height: 28px; }
.mact:hover, .mact[aria-expanded="true"] { color: var(--ink); background: var(--wash); }
.newmsgs { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--yellow); font-family: var(--label); font-weight: 700; font-size: 14px; border: 0; padding: 7px 14px; cursor: pointer; }
.earlier { display: block; margin: 10px auto 6px; font-size: 14px; }
.room-empty { padding: 30px 0; text-align: center; }
.room-empty p { margin: 0 0 8px; font-style: italic; color: var(--grey); }
.composer { margin-top: 10px; }
.crow { display: flex; border: 3px solid var(--ink); background: var(--paper); }
.crow:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 0; font-family: var(--body); font-size: 17px; line-height: 1.4; padding: 10px 12px; min-height: 50px; background: var(--paper); color: var(--ink); }
.composer textarea:focus-visible { outline: none; }
.composer .btn { min-width: 84px; }
.cfoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
.cstatus { margin: 0; font-family: var(--label); font-size: 13px; color: var(--grey); }
.cstatus.bad { color: var(--red-ink); font-weight: 700; }
.ccount { font-family: var(--label); font-size: 13px; color: var(--grey); white-space: nowrap; }
.signin-cta { border: 3px solid var(--ink); border-top: 0; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.signin-cta p { margin: 0; font-family: var(--label); font-weight: 700; font-size: 17px; }
.panel > .signin-cta, .dm-main .signin-cta { border-top: 3px solid var(--ink); }
.rules { background: var(--ink); color: #fff; padding: 18px 20px 20px; align-self: start; }
.rules h2 { font-family: var(--head); font-weight: 400; font-size: 46px; line-height: 0.9; margin: 0 0 8px; color: var(--yellow); }
.rules ul { list-style: none; margin: 0 0 12px; padding: 0; }
.rules li { padding: 10px 0; border-top: 1px solid #444; font-size: 15px; color: #DDD; }
.rules li b { color: #fff; }
.rules .sub { color: #BBB; font-size: 14px; }
.rules a { color: var(--yellow); }

.menu { position: absolute; z-index: 80; min-width: 210px; padding: 4px 0; background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; font-family: var(--label); font-weight: 700; font-size: 15px; padding: 8px 14px; cursor: pointer; color: var(--ink); min-height: 36px; }
.menu button:hover, .menu button:focus-visible { background: var(--ink); color: var(--yellow); outline: none; }
.menu button.danger { color: var(--red-ink); } .menu button.danger:hover, .menu button.danger:focus-visible { background: var(--red); color: #fff; }
.menu .sep { border-top: 1px solid var(--rule-soft); margin: 4px 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); background: var(--ink); color: #fff; font-family: var(--label); font-weight: 700; font-size: 15px; padding: 10px 16px; border-left: 6px solid var(--yellow); }
.toast.bad { border-left-color: var(--red); }

.dm-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; padding: 20px 0 24px; border-bottom: 4px solid var(--ink); }
.dm-side { min-width: 0; }
.dm-side h2.sh { font-size: 30px; }
.dm-main { min-width: 0; }
.lookup.slim { margin: 10px 0 12px; border-width: 2px; }
.lookup.slim input { font-size: 16px; padding: 8px 10px; }
.lookup.slim .btn { min-height: 0; }
.convos { list-style: none; margin: 0; padding: 0; }
.convos a { display: grid; gap: 2px; padding: 10px 8px; border-top: 1px solid var(--rule-soft); text-decoration: none; color: var(--ink); }
.convos a:hover { background: var(--wash); color: var(--ink); }
.convos a.on { background: var(--ink); color: #fff; }
.ct { display: flex; align-items: baseline; gap: 8px; font-family: var(--label); }
.ct time { margin-left: auto; font-size: 12px; color: var(--grey-2); }
.convos a.on time { color: #CCC; }
.cl { font-size: 14px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convos a.on .cl { color: #DDD; }
.convos .empty { font-size: 15px; }
.back { display: none; font-family: var(--label); font-weight: 700; margin-bottom: 8px; }
.thread-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.thread-h .name-tag b { font-family: var(--head); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.thread .note { margin: 10px 0; }
.dm-wrap { height: min(52vh, 560px); border: 3px solid var(--ink); padding: 10px 12px; }
.dms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 78%; align-self: flex-start; border: 2px solid var(--ink); padding: 7px 12px; background: var(--paper); }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.bubble .bm { display: flex; gap: 6px; align-items: center; font-family: var(--label); font-size: 12px; color: var(--grey-2); margin-top: 3px; }
.bubble.mine .bm { color: #BBB; } .bubble.mine a { color: var(--yellow); }
.bubble .mact { min-height: 22px; font-size: 16px; }
.dms .room-empty { align-self: stretch; }

.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 20px 0 24px; border-bottom: 4px solid var(--ink); align-items: start; }
.auth { border: 3px solid var(--ink); padding: 18px 20px 20px; display: grid; gap: 12px; max-width: 560px; }
.auth h2.sh { font-size: 34px; }
.auth .sub, .auth .note { margin: 0; }
.auth .btn { justify-self: start; }
.auth .msg { margin: 0; min-height: 0; }
.danger-zone { border-color: var(--red); }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--label); font-weight: 700; font-size: 15px; }
.field input { font-family: var(--label); font-size: 18px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); min-height: 44px; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; background: #FFFBE0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wallet-linked { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.wallet-linked p { margin: 0; font-size: 18px; }
.modbody { max-width: 48ch; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: 15px; }

@media (max-width: 1000px) {
  .room-grid, .dm-grid, .auth-grid { grid-template-columns: 1fr; }
  .search input { width: 190px; }
}
@media (max-width: 700px) {
  .navbar { flex-wrap: wrap; }
  .navbar .nav { flex-basis: 100%; }
  .tools { width: 100%; border-left: 0; border-top: 1px solid #333; }
  .search { flex: 1; padding: 6px 8px; position: static; }
  .search input { width: 100%; }
  .q-list { left: 8px; right: 8px; width: auto; }
  .navbar { position: relative; }
  .acct a { padding: 8px 10px; min-height: 44px; }
  .msgs-wrap { height: 58vh; padding: 2px 10px; }
  .cmsg.wire { margin: 0 -10px; padding: 8px 10px; }
  .rules h2 { font-size: 38px; }
  .dm-grid.has-thread .dm-side { display: none; }
  .back { display: inline-block; }
  .dm-wrap { height: 55vh; }
  .bubble { max-width: 90%; }
  .composer .btn { min-width: 70px; padding: 11px 12px; }
}
[hidden] { display: none !important; }
.room.compact .msgs-wrap { height: auto; min-height: 140px; max-height: 380px; }
@media (max-width: 700px) { .room.compact .msgs-wrap { max-height: 320px; } }
