/* INFLUENCE: a spec sheet for creator reach. Black and white only:
   ink #141414, paper #f3f3f3, greys between. One narrow column with thin rules. */
@font-face { font-family: Grot; src: url(/assets/fonts/sg.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Gmono; src: url(/assets/fonts/gm.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #141414; --ink2: #1b1b1b; --paper: #f3f3f3; --mute: #8b8b8b; --dim: #4a4a4a; --rule: #2c2c2c;
  --pad: clamp(16px, 2.4vw, 48px);
  --grot: Grot, "Helvetica Neue", Arial, sans-serif; --mono: Gmono, ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 15px/1.55 var(--grot); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, canvas, svg { display: block; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--grot); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
small { color: var(--mute); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hush { color: var(--mute); }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 2px; }

/* header bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(20, 20, 20, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.bar-in { height: 52px; padding: 0 var(--pad); display: flex; align-items: center; gap: 18px; }
.brandlink { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brandlink img { width: 24px; height: 24px; }
.bar-tabs { display: flex; gap: 2px; }
.bar-tabs a { text-decoration: none; color: var(--mute); font-size: 13px; padding: 4px 8px; border: 1px solid transparent; }
.bar-tabs a:hover { color: var(--paper); border-color: var(--rule); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconlink { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--rule); color: var(--paper); }
.iconlink svg { width: 14px; height: 14px; }
.iconlink:hover { border-color: var(--paper); }
.ca-chip { height: 30px; padding: 0 10px; background: none; border: 1px solid var(--rule); color: var(--mute); font: 400 12px var(--mono); cursor: pointer; white-space: nowrap; }
.ca-chip:hover { color: var(--paper); border-color: var(--mute); }
.ca-pair { font: 400 11px var(--mono); color: var(--mute); white-space: nowrap; }
.narrow-only { display: none; }

/* square buttons */
.sq { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--paper); font: 500 13px var(--grot); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.sq-fill { background: var(--paper); color: var(--ink); }
.sq-fill:hover { background: #d6d6d6; border-color: #d6d6d6; }
.sq-line { background: none; color: var(--paper); border-color: var(--dim); }
.sq-line:hover { border-color: var(--paper); }
.sq-xs { height: 26px; padding: 0 9px; font-size: 12px; }
.sq-ic { width: 32px; padding: 0; font-size: 15px; }
.sq[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.sq:disabled { opacity: .45; cursor: default; }
.sq:active, .seg button:active, .copybtn:active, .quick button:active, .iconlink:active, .ca-chip:active { transform: translateY(1px); }

/* column */
.col { position: relative; z-index: 1; }

/* first view */
.top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; padding: 56px var(--pad) 36px; align-items: end; }
.top h1 { font-size: clamp(40px, 4.6vw, 104px); line-height: 1; letter-spacing: -0.035em; }
.top-side { display: grid; gap: 14px; }
.top-sub { color: #bdbdbd; font-size: clamp(15px, .95vw, 19px); max-width: 52ch; }
.seek { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--ink2); padding: 4px 4px 4px 10px; }
.seek:focus-within { border-color: var(--mute); }
.seek svg { width: 15px; height: 15px; color: var(--mute); flex: none; }
.seek input { flex: 1; min-width: 0; width: 0; background: none; border: 0; outline: 0; font: 400 13px var(--mono); padding: 6px 0; }
.seek input::placeholder { color: var(--dim); }
.seek-sm { padding: 0 10px; height: 32px; flex: 0 1 260px; }
.op-out:empty { display: none; }
.op-out { font-size: 13px; color: var(--mute); }
.textlink { color: var(--mute); font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--rule); justify-self: start; }
.textlink:hover { color: var(--paper); }

/* the live record instrument */
.rig { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rig-head { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 var(--pad); border-bottom: 1px solid var(--rule); font-size: 13px; }
.rig-at { margin-left: auto; color: var(--mute); font-size: 12px; }
.rig-art { position: relative; padding: 18px var(--pad) 16px; overflow: hidden;
  background-image: radial-gradient(circle, #262626 1px, transparent 1.2px); background-size: 12px 12px; background-position: 6px 6px; }
.ascii { margin: 0; font: 400 min(12.2px, calc((100vw - 34px) / 63)) / 1.2 var(--mono); color: var(--mute); white-space: pre; overflow: hidden; letter-spacing: 0; position: relative; }
.ascii .ab { color: var(--paper); }
.ascii .ah { color: #dcdcdc; }
.ascii .am { color: var(--mute); }
.ascii .ad { color: #3d3d3d; }
.ascii .al { color: #6a6a6a; }
.ascii .ac { color: var(--paper); letter-spacing: .08em; }
.rig-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.rig-stats > div { padding: 12px var(--pad) 14px; border-left: 1px solid var(--rule); }
.rig-stats > div:first-child { border-left: 0; }
.rig-stats dt { font-size: 12px; color: var(--mute); }
.rig-stats dd { margin: 2px 0 0; font-size: 26px; letter-spacing: -0.02em; }

/* bands */
.band { padding: 48px 0 0; border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 0 var(--pad) 18px; }
.band-head h2 { font-size: clamp(22px, 1.9vw, 40px); line-height: 1.15; letter-spacing: -0.025em; max-width: 34ch; }
.tag-cap { flex: none; font-size: 13px; color: var(--mute); border: 1px solid var(--rule); padding: 2px 9px; }
.band-line { padding: 0 var(--pad) 14px; color: var(--mute); font-size: 12px; }
.band-foot { padding: 14px var(--pad) 0; color: var(--mute); font-size: 13px; max-width: 64ch; }

/* boxes that share borders */
.cells { display: grid; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.cells-2 { grid-template-columns: repeat(2, 1fr); }
.cells-3 { grid-template-columns: repeat(3, 1fr); }
.cells-4 { grid-template-columns: repeat(4, 1fr); }
.cells-5 { grid-template-columns: repeat(5, 1fr); }
.cell { padding: 16px var(--pad) 18px; border-left: 1px solid var(--rule); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cell:first-child { border-left: 0; }
.cell > p { color: #b3b3b3; font-size: 13.5px; }
.cell-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cell-top h3 { font-size: 15px; line-height: 1.25; }
.live { flex: none; background: var(--paper); color: var(--ink); font: 500 11px/1 var(--grot); padding: 3px 6px; }
.cell-val { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--rule); display: flex; align-items: baseline; gap: 8px; }
.cell-val .num { font-size: 22px; }
.cell-val small { font-size: 12px; }

/* coins */
.deck-tools { display: flex; justify-content: space-between; gap: 12px; padding: 0 var(--pad) 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg button { background: none; border: 0; border-left: 1px solid var(--rule); color: var(--mute); font-size: 13px; padding: 0 12px; height: 30px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--paper); }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.seg-wide { display: flex; margin: 0 var(--pad) 0; border-bottom: 0; }
.seg-wide button { flex: 1; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); border-top: 1px solid var(--rule); margin-right: -1px; }
.band { overflow: hidden; }
.coin-grid > .empty-note { grid-column: 1 / -1; padding: 22px var(--pad); }
.coin { display: grid; grid-template-columns: 72px 1fr; gap: 10px 14px; padding: 16px var(--pad); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.coin-pic { width: 72px; height: 72px; grid-row: span 2; background: var(--ink2); border: 1px solid var(--rule); opacity: 0; transition: opacity .4s; }
.coin-pic.drawn { opacity: 1; }
.coin-name { min-width: 0; display: flex; flex-direction: column; }
.coin-name b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-name .num { color: var(--mute); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; align-self: start; }
.chip { font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid var(--dim); color: #cfcfcf; }
.chip-dim { border-color: var(--rule); color: var(--mute); }
.chip-hot { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.coin-row { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; }
.coin-row i { font-style: normal; color: var(--mute); font-family: var(--grot); }
.coin-row .up { color: var(--paper); }
.coin-row .down { color: var(--mute); }
.hair { grid-column: 1 / -1; display: block; height: 1px; background: var(--rule); position: relative; }
.hair b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--paper); transition: width .8s; }
.coin-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mute); }
.coin-foot a.num { color: var(--mute); text-decoration: none; }
.coin-foot a.num:hover { color: var(--paper); }

/* plates (a single bordered panel) */
.plate { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px var(--pad); }
.report-plate.clickable { cursor: pointer; }
.report-plate.clickable:hover { background: var(--ink2); }
.lens-head, .rep-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-dot { width: 88px; height: 88px; border: 1px solid var(--rule); background: var(--ink); flex: none; }
img.who-dot { width: 52px; height: 52px; padding: 6px; }
.who-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.who-sub { color: var(--mute); font-size: 13px; max-width: 46ch; }
.scorebox { text-align: right; flex: none; }
.scorebox .num { display: block; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.scorebox small { font-size: 12px; }
.gauges { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 18px calc(-1 * var(--pad)); }
.gauge { padding: 12px var(--pad); border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.gauge:first-child { border-left: 0; }
.gauge > .num { font-size: 22px; }
.gauge p { font-size: 12px; color: var(--mute); }
.gauge .hair { margin-top: 6px; }
.gauge.hot > .num, .gauge[data-hot] > .num { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 4px; }
.lens-note { color: var(--mute); font-size: 13px; }

/* steps */
.step-plate { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; border-top: 1px solid var(--rule); margin-top: -1px; }
.step-screen { padding: 22px var(--pad); border-right: 1px solid var(--rule); min-height: 236px; font-size: 13px; transition: opacity .25s;
  background-image: radial-gradient(circle, #232323 1px, transparent 1.2px); background-size: 10px 10px; }
.step-side { padding: 22px var(--pad); display: flex; flex-direction: column; gap: 12px; transition: opacity .25s; }
.fading { opacity: 0; }
.step-body h3 { font-size: 18px; margin-bottom: 6px; }
.step-body p { color: #b3b3b3; font-size: 14px; }
.step-note { color: var(--mute); font-size: 12px; }
.step-nav { margin-top: auto; display: flex; gap: 6px; }
.scr-bar { border: 1px solid var(--rule); background: var(--ink); padding: 6px 10px; font-size: 12px; color: var(--mute); }
.scr-bar em, .scr-row em { font-style: normal; color: var(--paper); }
.scr-coin { display: flex; align-items: center; gap: 12px; border: 1px solid var(--rule); border-top: 0; background: var(--ink); padding: 12px 10px; }
.scr-coin small { display: block; font-size: 12px; }
.scr-coin .num { margin-left: auto; }
.scr-pic { width: 46px; height: 46px; border: 1px solid var(--rule); }
.scr-btn { margin-top: 10px; background: var(--paper); color: var(--ink); text-align: center; padding: 9px; font-weight: 500; }
.scr-sheet { border: 1px solid var(--rule); background: var(--ink); }
.scr-t { padding: 9px 12px; border-bottom: 1px solid var(--rule); font-weight: 600; }
.scr-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px dashed var(--rule); }
.scr-row span { color: var(--mute); }
.scr-row b { font-weight: 500; }
.scr-two { display: grid; grid-template-columns: 1fr 1fr; }
.scr-two span { text-align: center; padding: 9px; color: var(--mute); }
.scr-two .go { background: var(--paper); color: var(--ink); }
.scr-checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); background: var(--ink); }
.scr-checks li { padding: 9px 12px; border-bottom: 1px solid var(--rule); animation: tick .5s both; animation-delay: var(--d, 0s); }
.scr-checks li:last-child { border-bottom: 0; }
.scr-checks b { font-weight: 500; }
.scr-foot { margin-top: 12px; color: var(--mute); font-size: 12px; }
.scr-line { display: flex; align-items: center; gap: 0; border: 1px solid var(--rule); background: var(--ink); padding: 26px 14px; }
.scr-line span { padding: 4px 8px; border: 1px solid var(--paper); font-size: 12px; animation: tick .5s both; }
.scr-line .lit2 { animation-delay: .4s; }
.scr-line .lit3 { animation-delay: .8s; background: var(--paper); color: var(--ink); }
.scr-line i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--mute) 0 3px, transparent 3px 6px); }
@keyframes tick { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* formula */
.eq { font-size: 14px; line-height: 1.9; color: #cfcfcf; border-bottom: 0; }
.eq b { color: var(--paper); font-weight: 600; border-bottom: 1px solid var(--paper); }
.weights .cell dt { font-size: 22px; }
.weights .cell dd { margin: 0; color: var(--mute); font-size: 12.5px; }

/* board */
.board-cells .cell { gap: 12px; }
.ranks { width: 100%; border-collapse: collapse; font-size: 13px; }
.ranks th { text-align: left; font-weight: 400; font-size: 11px; color: var(--mute); padding: 0 6px 6px 0; border-bottom: 1px solid var(--rule); }
.ranks td { padding: 7px 6px 7px 0; border-bottom: 1px dashed var(--rule); }
.ranks tr[data-q] { cursor: pointer; }
.ranks tbody tr:hover td { color: var(--paper); background: var(--ink2); }
.change-up { color: var(--paper); }
.change-down { color: var(--mute); }
.tick-ok { font-size: 11px; border: 1px solid var(--paper); padding: 1px 5px; margin-left: 4px; text-decoration: none; vertical-align: 2px; font-weight: 400; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 13px; }
.feed li small { font-size: 12px; }
.feed li small:last-child { text-align: right; }
.empty-note { color: var(--mute); font-size: 13px; }

/* doors */
.door h3 { font-size: 17px; }
.door-act { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.studio-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.studio-step h4 { font-size: 13px; color: #cfcfcf; font-weight: 500; }
.inbox { display: flex; border: 1px solid var(--rule); background: var(--ink2); }
.inbox:focus-within { border-color: var(--mute); }
.inbox input { flex: 1; min-width: 0; width: 0; background: none; border: 0; outline: 0; padding: 0 10px; height: 32px; font: 400 12.5px var(--mono); }
.inbox input::placeholder { color: var(--dim); }
.inbox .sq { height: 32px; border-width: 0 0 0 1px; border-color: var(--rule); }
.codeline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.codeline .num { color: var(--paper); border: 1px dashed var(--dim); padding: 2px 6px; }
.copybtn { background: none; border: 1px solid var(--dim); color: var(--paper); font-size: 11px; padding: 2px 7px; cursor: pointer; }
.copybtn:hover { border-color: var(--paper); }
.out { font-size: 12.5px; color: var(--mute); }
.out:empty { display: none; }
.out.bad, .bad { color: var(--paper); border-left: 2px solid var(--paper); padding-left: 8px; }
.mycalls { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.mycalls li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.coinrows { display: grid; }
.coinrow { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--rule); font-size: 12.5px; }
.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { background: #2a2a2a; } 100% { background: transparent; } }

/* footer: one line */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--rule); padding: 26px var(--pad) 34px; text-align: center; font: 400 12px var(--mono); color: var(--mute); }
.foot-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.foot-line { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.foot-line a { text-decoration: none; }
.foot-line a:hover { color: var(--paper); }
.foot-line .iconlink { width: 26px; height: 26px; color: var(--mute); }
.foot-line .iconlink svg { width: 12px; height: 12px; }

.pulse-dot { width: 7px; height: 7px; background: var(--paper); display: inline-block; animation: pulse 1.6s steps(2, jump-none) infinite; }
@keyframes pulse { 0% { opacity: 1; } 100% { opacity: .25; } }

/* report dialog */
.reportbox { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 24px var(--pad); background: var(--ink); color: var(--paper); border: 1px solid var(--dim); overflow: auto; }
.reportbox::backdrop { background: rgba(10, 10, 10, .8); }
.rep-close { position: absolute; top: 12px; right: 12px; }
.rep-in { display: grid; gap: 18px; }
.rep-top { padding-right: 40px; }
.wallet-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wallet-list a { font-size: 12px; color: var(--mute); border: 1px solid var(--rule); padding: 1px 6px; text-decoration: none; }
.rep-in .gauges { margin: 0; }
.rep-sec h3 { font-size: 14px; margin-bottom: 8px; }
.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
[data-reveal].shown { opacity: 1; transform: none; }

/* the link page (r.html) */
.linkpage { padding: 40px var(--pad) 48px; display: grid; gap: 22px; border-bottom: 1px solid var(--rule); }
.coin-id { display: flex; align-items: center; gap: 16px; }
.pic-round { width: 72px; height: 72px; flex: none; border: 1px solid var(--rule); background: var(--ink2); }
.pic-round canvas { width: 100%; height: 100%; }
.link-count { color: var(--mute); font-size: 13px; }
.link-count:empty { display: none; }
.linkpage h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.coin-id h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.called-by { color: var(--mute); font-size: 14px; margin-top: 6px; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 calc(-1 * var(--pad)); }
.coin-stats > div { padding: 12px var(--pad); border-left: 1px solid var(--rule); }
.coin-stats > div:first-child { border-left: 0; }
.coin-stats small { display: block; font-size: 12px; }
.coin-stats .num { font-size: 18px; }
.buybox { border: 1px solid var(--rule); padding: 18px var(--pad); display: grid; gap: 12px; background: var(--ink2); }
.buybox h2 { font-size: 18px; }
.amount { display: flex; border: 1px solid var(--rule); background: var(--ink); }
.amount input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 12px; height: 40px; font: 400 18px var(--mono); }
.amount span { display: grid; place-items: center; padding: 0 12px; border-left: 1px solid var(--rule); color: var(--mute); font: 400 13px var(--mono); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { background: none; border: 1px solid var(--rule); color: var(--paper); font: 400 12px var(--mono); padding: 5px 10px; cursor: pointer; }
.quick button:hover { border-color: var(--paper); }
.est { display: grid; gap: 4px; font-size: 13px; color: var(--mute); }
.est > div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--rule); padding: 4px 0; }
.est[hidden] { display: none; }
.est .num { color: var(--paper); }
.fine-print { color: var(--mute); font-size: 12px; }

@media (max-width: 900px) {
  .bar-tabs { display: none; }
  .ca-pair { display: none; }
  .top { grid-template-columns: 1fr; gap: 22px; padding-top: 40px; }
  .cells-4, .cells-5 { grid-template-columns: repeat(2, 1fr); }
  .cells-4 .cell:nth-child(n + 3), .cells-5 .cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .cells-4 .cell:nth-child(odd), .cells-5 .cell:nth-child(odd) { border-left: 0; }
  .cells-3, .cells-2 { grid-template-columns: 1fr; }
  .cells-3 .cell, .cells-2 .cell { border-left: 0; border-top: 1px solid var(--rule); }
  .cells-3 .cell:first-child, .cells-2 .cell:first-child { border-top: 0; }
  .gauges { grid-template-columns: repeat(3, 1fr); }
  .gauge:nth-child(4) { border-left: 0; }
  .gauge:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .step-plate { grid-template-columns: 1fr; }
  .step-screen { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 759px) {
  .ascii { font-size: min(12.2px, calc((100vw - 34px) / 28)); }
}
@media (max-width: 560px) {
  :root { --pad: 14px; }
  .bar-in { gap: 10px; }
  .brandlink span { display: none; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .bar-end { gap: 5px; }
  .bar-end .sq { padding: 0 9px; font-size: 12px; }
  .rig-stats { grid-template-columns: repeat(2, 1fr); }
  .rig-stats > div:nth-child(3) { border-left: 0; }
  .rig-stats > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .rig-stats dd { font-size: 22px; }
  .band-head { flex-direction: column; gap: 8px; }
  .coin-grid { grid-template-columns: 1fr; }
  .lens-head, .rep-top { flex-direction: column; align-items: flex-start; }
  .scorebox { text-align: left; }
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .gauge:nth-child(n) { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .gauge:nth-child(odd) { border-left: 0; }
  .gauge:nth-child(-n + 2) { border-top: 0; }
  .seg-wide { flex-wrap: wrap; }
  .seg-wide button { flex: 1 1 50%; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
  .coin-stats > div:nth-child(3) { border-left: 0; }
  .coin-stats > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* wide screens: the page runs edge to edge; the hero puts the copy beside the record */
.cell > p, .step-body p, .lens-note, .band-foot { max-width: 68ch; }
@media (min-width: 1200px) {
  .hero { display: grid; grid-template-columns: minmax(400px, 31%) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
  .top { grid-template-columns: 1fr; align-content: space-between; align-items: start; gap: 40px; padding: 56px var(--pad) 40px; }
  .rig { border-top: 0; border-bottom: 0; border-left: 1px solid var(--rig, var(--rule)); display: flex; flex-direction: column; }
  .rig-art { flex: 1; display: flex; align-items: center; padding: 22px var(--pad); }
  .ascii { width: 100%; min-width: 0; }
  .rig, .rig-art { min-width: 0; }
  .report-plate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: 0; padding: 0; }
  .report-plate .lens-head { padding: 22px var(--pad); flex-direction: column; align-items: flex-start; justify-content: space-between; border-right: 1px solid var(--rule); }
  .report-plate .scorebox { text-align: left; }
  .report-plate .gauges { margin: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
  .report-plate .lens-note { grid-column: 2; padding: 14px var(--pad); align-self: end; }
  .gauge { padding: 22px var(--pad); }
  .gauge > .num { font-size: clamp(22px, 2vw, 40px); }
  .rig-stats dd { font-size: clamp(26px, 2vw, 40px); }
  .cell-val .num { font-size: clamp(22px, 1.6vw, 32px); }
  .ranks { font-size: 14px; }
}
@media (min-width: 1500px) {
  .pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
  .pair > .band { border-bottom: 0; }
  .pair > .band + .band { border-left: 1px solid var(--rule); }
  .pair .weights { grid-template-columns: repeat(5, 1fr); }
  .linkpage { grid-template-columns: minmax(0, 1.2fr) minmax(380px, 1fr); align-items: start; column-gap: 40px; }
}
