/* Knights board (/app). The same system as the landing page: a band of the banner's sky on top, a marble ground,
   white cards with hairlines and square corners, EB Garamond headings, Libre Franklin text, and DotGothic16 (pixel)
   only for what the knights say and the board's numbers. Teal is the accent, gold is for crowns only, green and red
   only for P&L. Tokens: see :root. */

:root {
  --bg: #f4f2ed;
  --surface: #fffefb;
  --surface-2: #f8f6f1;
  --ink: #08222a;
  --ink-2: #3c565c;
  --ink-3: #6b8186;
  --line: rgba(8, 34, 42, 0.09);
  --line-2: rgba(8, 34, 42, 0.18);
  --teal: #1d6577;
  --teal-hover: #17566a;
  --teal-wash: rgba(29, 101, 119, 0.08);
  --sky: #1c566a; /* the top of the banner's sky */
  --on-sky: #fbf7f0;
  --marble: #f3ebdd;
  --marble-hover: #fbf6ee;
  --sq-light: #ede6da; /* the board's marble, site/art/board-marble.webp */
  --sq-dark: #5f8d91;
  --gold: #b08d2e;
  --up: #0f7f58;
  --down: #c0392f;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pixel: 'DotGothic16', ui-monospace, 'SF Mono', Menlo, monospace;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; /* wallet addresses only */
  --r: 6px;
  --wrap: 1240px;
  --pad: 32px;
  --shadow: 0 1px 2px rgba(8, 34, 42, 0.04), 0 24px 48px -32px rgba(8, 34, 42, 0.28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { display: block; }
img { image-rendering: pixelated; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.up { color: var(--up); }
.down { color: var(--down); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 16px; border-radius: 4px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: rgba(4, 24, 28, 0.28); color: var(--ink); }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.buy { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.buy:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
.btn.quiet { min-height: 32px; padding: 4px 12px; background: transparent; }
.btn.quiet:hover { background: var(--surface); }

/* ---------- top: a band of the banner's sky, the content lined up with the page ---------- */
.top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px max(var(--pad), calc(50% - var(--wrap) / 2 + var(--pad)));
  background: var(--sky); color: var(--on-sky);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--on-sky); }
.brand:hover { color: var(--on-sky); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(251, 247, 240, 0.35); image-rendering: auto; }
.brand-name { font: 600 21px/1 var(--serif); }
.top-links { display: flex; gap: 2px; margin-left: 22px; }
.top-links a { padding: 8px 12px; border-radius: 4px; font-size: 14px; color: rgba(251, 247, 240, 0.75); text-decoration: none; }
.top-links a:hover { color: var(--on-sky); background: rgba(251, 247, 240, 0.08); }
.top-links a[aria-current="page"] { color: var(--on-sky); background: rgba(251, 247, 240, 0.1); }
.paper-badge {
  font-size: 12px; color: var(--marble);
  border: 1px solid rgba(243, 235, 221, 0.35); background: rgba(243, 235, 221, 0.08);
  padding: 3px 9px; border-radius: 4px; white-space: nowrap;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca {
  display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 14px; cursor: pointer;
  border: 1px solid rgba(251, 247, 240, 0.25); border-radius: 4px; background: transparent;
  font-size: 12.5px; color: var(--on-sky);
}
.ca .k { color: rgba(255, 255, 255, 0.55); }
.ca:hover { border-color: rgba(255, 255, 255, 0.4); }
.icon-link { color: rgba(251, 247, 240, 0.75); padding: 10px; border-radius: 4px; }
.icon-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.top .btn.buy { min-height: 38px; background: var(--marble); border-color: var(--marble); color: var(--ink); }
.top .btn.buy:hover { background: var(--marble-hover); border-color: var(--marble-hover); }
.top .btn.buy[aria-disabled] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: #fff; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 52px var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 72px; align-items: start;
}
.hero h1 { font: 500 clamp(48px, 5vw, 70px)/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -0.012em; }
.lede { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }

.next {
  margin-top: 32px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; box-shadow: var(--shadow);
}
.next-face { grid-row: span 2; width: 56px; height: 56px; border-radius: 4px; background: var(--sq-light); }
.next-title { font-size: 15px; }
.next-title b { font-weight: 600; }
.next-style { font-size: 13.5px; color: var(--ink-2); }
.next-says { grid-column: 2; font-family: var(--pixel); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.next-says:empty { display: none; }
.next-progress { grid-column: 1 / -1; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.xp { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.xp i { height: 6px; border-radius: 1px; background: rgba(8, 34, 42, 0.08); }
.xp i.on { background: var(--teal); }
.xp.full i.on { background: var(--up); }
.xp-label { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.xp-label span { font-weight: 600; color: var(--ink); }
.next-note { margin-top: 2px; font-size: 13px; }

.figures {
  margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 16px 16px 0 0; }
.figures div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.figures dt { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.figures dd { margin: 0; font: 500 32px/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.status { margin-top: 20px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }

/* ---------- the board ---------- */
.hero-board {
  position: sticky; top: 16px;
  padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
}
/* one marble picture under all 64 squares, cream at the top left like the board is drawn */
.board {
  display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1;
  border-radius: 2px; overflow: hidden; background: var(--sq-dark) url('/art/board-marble.webp') 0 0 / 100% 100%;
}
.sq { position: relative; display: grid; place-items: center; background: transparent; border: 0; padding: 0; min-width: 0; }
.sq svg { width: 80%; height: auto; }
button.sq { cursor: pointer; }
button.sq:hover { box-shadow: inset 0 0 0 3px var(--teal); }
button.sq:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
.sq.out svg { opacity: 0.55; }
.sq.ghost { overflow: hidden; }
.sq.ghost .fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(29, 101, 119, 0.4); transition: height 0.6s ease; }
.sq.ghost::after { content: ''; position: absolute; inset: 7px; border: 1.5px dashed rgba(8, 34, 42, 0.45); border-radius: 2px; }
.ghost-no { position: relative; z-index: 1; font-family: var(--pixel); font-size: 12px; color: var(--ink); }
.sq.drop svg { animation: drop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes drop {
  0% { transform: translateY(-60%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.board-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.board-foot .muted { color: var(--ink-3); }
.board-pager { display: flex; gap: 6px; }
.board-pager .btn { min-height: 30px; min-width: 34px; padding: 2px 8px; font-size: 16px; }

/* the latest thing a knight did, in its own words */
.dialog {
  margin: 12px -12px -12px; padding: 14px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--surface-2); border-radius: 0 0 6px 6px;
}
.dialog-face { width: 44px; height: 44px; border-radius: 4px; background: var(--sq-light); }
.dialog-who { font-size: 13.5px; }
.dialog-who b { font-weight: 600; }
.dialog-who .muted { color: var(--ink-3); }
.dialog-text { margin-top: 4px; font-family: var(--pixel); font-size: 14px; line-height: 1.5; min-height: 1.5em; overflow-wrap: anywhere; }
.dialog-text.typing::after { content: ''; display: inline-block; width: 0.55em; height: 1em; margin-left: 2px; background: var(--teal); vertical-align: -0.15em; animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dialog-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.dialog-links:empty { display: none; }

/* ---------- tabs ---------- */
.tabs {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs::after { content: ''; flex: 1 0 0; }
.tabs { box-shadow: inset 0 -1px 0 var(--line); }
.tabs button {
  flex: none; background: none; border: 0; padding: 14px 0 13px; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); }
.count {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 4px;
  background: var(--teal-wash); color: var(--teal); font-size: 11.5px; text-align: center;
}

/* ---------- content ---------- */
.layout {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad) 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px;
}
.pane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.pane-head h2 { font: 500 36px/1.05 var(--serif); letter-spacing: -0.01em; }
.pane-head > .muted { font-size: 14px; color: var(--ink-3); }
.lede-sm { font-size: 14px; max-width: 72ch; margin-bottom: 18px; }
.sub { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 5px 13px; border-radius: 4px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 0 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table .r { text-align: right; }
.table tbody tr[data-id] { cursor: pointer; }
.table tbody tr:hover td { background: rgba(29, 101, 119, 0.035); }
.table tr.busted td { color: var(--ink-3); }
.rank { font-size: 12.5px; color: var(--ink-3); }
.who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; } /* the style line stays on one line; the last thought gives way */
.who-cell img { width: 34px; height: 34px; flex: none; border-radius: 4px; }
.who-cell b { font-weight: 600; }
.who-cell .muted { color: var(--ink-3); }
.thought-cell { color: var(--ink-2); font-family: var(--pixel); font-size: 13px; max-width: 32ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crown {
  display: inline-block; width: 12px; height: 8px; margin-left: 6px; vertical-align: 1px; background: var(--gold);
  clip-path: polygon(0 0, 25% 50%, 50% 0, 75% 50%, 100% 0, 100% 100%, 0 100%);
}
.tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; background: var(--teal-wash); color: var(--teal); }
.mono { font-family: var(--mono); font-size: 13px; }

.empty { padding: 32px 0; }
.empty p:first-child:not(.muted) { font: 500 26px/1.2 var(--serif); margin-bottom: 6px; }
.notice { margin: 12px 0; padding: 10px 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 3px 0 0 var(--teal); border: 1px solid var(--line); font-size: 14px; }

.meta-grid { margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.meta-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meta-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; min-width: 0; }
.meta-grid dt { font-size: 12.5px; color: var(--ink-3); }
.meta-grid dd { margin: 4px 0 0; font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.meta-grid dd.small { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--ink-3); letter-spacing: 0; }

/* trades, callouts */
.feed { list-style: none; margin: 0; padding: 0; }
.feed > li.muted { padding: 16px 0; }
.item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.item > img { width: 36px; height: 36px; border-radius: 4px; background: var(--sq-light); }
.item:not(:has(> img)) { grid-template-columns: minmax(0, 1fr) auto; }
.item-body { min-width: 0; }
.item-head { font-size: 14px; line-height: 1.45; }
.item-head .n { text-decoration: none; }
.item-head .n:hover b { text-decoration: underline; }
.act { color: var(--ink-2); }
.act.buy { color: var(--up); }
.act.sell { color: var(--ink); }
.act.burn { color: var(--down); }
.act.sweep { color: var(--teal); }
.said { margin-top: 4px; font-family: var(--pixel); font-size: 13px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
/* a decimal point in the pixel font, from pixel() in app.js: DotGothic16 gives '.' a whole half-width cell */
.dp { letter-spacing: -0.2em; }
.when { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.st { font-family: var(--sans); font-size: 11.5px; padding: 1px 7px; margin-left: 6px; border-radius: 4px; background: var(--teal-wash); color: var(--teal); }
.st.queued { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.st.gave_up { color: var(--down); background: transparent; }
a.coin { font-weight: 600; }

/* knights grid */
.town { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.tile:hover { border-color: rgba(29, 101, 119, 0.45); box-shadow: var(--shadow); }
.tile img { width: 72px; height: 72px; border-radius: 4px; background: var(--sq-light); margin-bottom: 8px; }
.tile .no { font-family: var(--pixel); font-size: 12px; color: var(--ink-3); }
.tile .role { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .badge { position: absolute; top: 7px; right: 7px; font-family: var(--pixel); font-size: 12px; padding: 0 5px; border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tile.busted img { opacity: 0.55; }
.tile.promoted { border-color: rgba(176, 141, 46, 0.6); }
.tile.coming { opacity: 0.7; }
.pager { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13.5px; }
.more { margin-top: 14px; }

/* fees */
.treasury { font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* how it works: a real sequence, so it is numbered */
.how { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 70ch; border-top: 1px solid var(--line-2); }
.how li { counter-increment: step; position: relative; padding: 15px 0 15px 52px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.how li::before { content: counter(step, upper-roman); position: absolute; left: 0; top: 13px; font: 500 18px/1.3 var(--serif); color: var(--teal); }
.how b { color: var(--ink); font-weight: 600; }

/* ---------- side ---------- */
.side .panel + .panel { margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; position: relative; }
.panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.log { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 420px; overflow: auto; }
.log li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log li.muted { border: 0; color: var(--ink-3); }
.log time { font-size: 12px; color: var(--ink-3); flex: none; padding-top: 1px; }
.log .n { text-decoration: none; font-weight: 600; }
.log li.fresh { animation: fresh 2.4s ease-out both; }
@keyframes fresh { from { background: var(--teal-wash); } to { background: transparent; } }
#log-dot { position: absolute; top: 22px; right: 18px; }
.stats { margin: 0; }
.stats div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.stats div:last-child { border-bottom: 0; }
.stats dt { color: var(--ink-2); }
.stats dd { margin: 0; font-weight: 600; text-align: right; }

/* status dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.on { background: var(--up); }
.dot.on.paper { background: var(--teal); }

/* ---------- one knight ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; }
.sheet-back { position: absolute; inset: 0; background: rgba(8, 34, 42, 0.36); }
.sheet-card {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 100%);
  background: var(--surface); box-shadow: -24px 0 60px -24px rgba(8, 34, 42, 0.35); overflow: auto; padding: 24px 28px 48px;
}
.sheet-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 20px; }
.sheet-face { width: 64px; height: 64px; border-radius: 4px; background: var(--sq-light); }
.sheet-title h2 { font: 500 30px/1.1 var(--serif); letter-spacing: -0.01em; }
.sheet-title .muted { font-size: 13.5px; margin-top: 3px; color: var(--ink-3); }
.close { font-size: 20px; min-height: 36px; padding: 0 12px; }
.thought { font-family: var(--pixel); font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px; }
.thought:empty { display: none; }
.sheet .meta-grid > div { background: var(--surface-2); }
.sheet .table td { font-size: 13.5px; }

/* ---------- footer ---------- */
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--pad) 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  box-shadow: inset 0 1px 0 var(--line); font-size: 13px; color: var(--ink-2);
}
.bar-l, .bar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.bar-item { display: inline-flex; align-items: center; gap: 8px; }
.bar-item b { color: var(--ink); font-weight: 600; }
.bar-link { color: var(--ink-2); text-decoration: none; }
.bar-link:hover { color: var(--ink); }
.bar-copy { color: var(--ink-3); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: #fff; border-radius: var(--r);
  padding: 10px 16px; font-size: 14px;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .top-links { display: none; }
}
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-board { position: static; max-width: 560px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .side .panel + .panel { margin-top: 0; }
  /* the board comes right after the title: it is the page */
  .hero { gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .lede { order: 2; }
  .hero-board { order: 3; margin-top: 24px; }
  .next { order: 4; }
  .figures { order: 5; }
  .status { order: 6; }
}
@media (max-width: 900px) {
  .hide-md { display: none; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .hide-sm, .lg { display: none; }
  .top { gap: 6px; padding: 10px var(--pad); }
  .brand { gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 19px; }
  .ca { padding: 0 10px; }
  .ca .k { display: none; }
  .top .btn.buy { padding: 8px 13px; font-size: 13.5px; }
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 16px; }
  .hero-board { padding: 10px; border-radius: 6px; }
  .dialog { margin: 12px -10px -10px; padding: 12px 10px; border-radius: 0 0 6px 6px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .pane-head h2 { font-size: 30px; }
  .meta-grid, .meta-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { grid-template-columns: minmax(0, 1fr); }
  .ghost-no { font-size: 10px; }
  .item { grid-template-columns: 32px minmax(0, 1fr); }
  .item > img { width: 32px; height: 32px; }
  .item .when { grid-column: 2; }
  .sheet-card { padding: 20px 18px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
