/*
 * GAUDY. Every visual decision lives here; app.js sets classes and text.
 *
 * The address is the art. Two faces: Rubik Mono One shouts (the mark, the
 * buttons, the huge address and the stamps), Anonymous Pro reads (the feed,
 * the hunt, everything small). Both are monospace: an address is a grid of
 * 56 characters, so the lit words line up down the feed.
 *
 * The main screen is a centred column with one grid edge, one control height
 * (--h), one border weight (--b) and three text sizes: --t-s for meta,
 * --t-m for addresses, the hunt and the rate, and the display size of a found
 * address. Acid marks the word in an address, the one action that spends
 * money, and a paused feed. Hazard orange marks loss. No gradients, no radius.
 * The loud rotated stamps belong to the big moments only (YOURS, TAKEN, SNIPED).
 */

/* ── faces (SIL OFL 1.1, licences beside them in assets/fonts) ───────────── */

@font-face {
  font-family: 'Rubik Mono One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/rubik-mono-one-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/anonymous-pro-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/anonymous-pro-700.woff2) format('woff2');
}

:root {
  --void:   #050604;
  --sludge: #10140B;
  --rot:    #2A3320;
  --ash:    #7C886F;
  --bone:   #EEF3E2;
  --acid:   #C6FF1A;
  --hazard: #FF5A1F;

  --display: 'Rubik Mono One', 'Arial Black', Impact, sans-serif;
  --data:    'Anonymous Pro', ui-monospace, Menlo, monospace;

  /* advance of one glyph, in em */
  --adv-display: 0.85;
  --adv-data: 0.546;

  --h: 52px;
  --b: 2px;
  --t-s: 13px;
  --t-m: 24px;

  /* the column every row of the main screen aligns to */
  --gutter: clamp(16px, 4vw, 48px);
  --column: 960px;
  --edge: max(var(--gutter), calc((100% - var(--column)) / 2));
  --speed: 0.16s;
}

/* ── reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

/* a column: the feed takes the slack, so the legal line ends even a short page */
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font: 400 var(--t-s)/1.5 var(--data);
  font-variant-numeric: tabular-nums;
}

/* print grit over everything, never in the way */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-staged { overflow: hidden; }

a { color: inherit; }
button, input { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: var(--b) solid var(--acid); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* the anchored marker, the same everywhere: a small acid wedge */
.top { display: inline-flex; color: var(--acid); }
.top svg { width: 0.5em; height: 0.5em; fill: currentColor; }

/* ── controls: one height, one border ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 16px;
  border: var(--b) solid var(--bone);
  background: none;
  color: var(--bone);
  font: 400 var(--t-s)/1 var(--display);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--speed), border-color var(--speed), background-color var(--speed);
}
.btn:hover:not(:disabled) { border-color: var(--acid); color: var(--acid); }
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled { cursor: not-allowed; border-color: var(--rot); color: var(--ash); }

.btn-acid { background: var(--acid); border-color: var(--acid); color: var(--void); }
.btn-acid:hover:not(:disabled) { background: var(--void); }
.btn-acid:focus-visible { outline-color: var(--bone); }
.btn-acid:disabled { background: var(--rot); border-color: var(--rot); color: var(--ash); }
/* busy is alive, not dead: tape marches while the wallet or the network works */
.btn-acid[aria-busy='true'] {
  background: repeating-linear-gradient(-45deg, var(--acid) 0 14px, #9FD10F 14px 28px);
  background-size: 39.6px 39.6px;
  color: var(--void);
  animation: march 0.7s linear infinite;
}
@keyframes march { to { background-position: 39.6px 0; } }

.btn-x {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--h);
  height: var(--h);
  border: var(--b) solid var(--rot);
  background: none;
  color: var(--ash);
  cursor: pointer;
}
.btn-x svg { width: 14px; height: 14px; fill: currentColor; }
.btn-x:hover { border-color: var(--bone); color: var(--bone); }

.field {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--h);
  padding: 0 16px;
  border: var(--b) solid var(--rot);
  background: var(--sludge);
  color: var(--bone);
  font: 700 var(--t-m)/1 var(--data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field::placeholder { color: var(--ash); font-weight: 400; opacity: 0.7; }
.field:focus { outline: none; border-color: var(--acid); }
.field.is-bad { border-color: var(--hazard); }

.msg { margin: 0; color: var(--ash); }
.msg:empty { display: none; }
.msg.is-bad { color: var(--hazard); }
.msg.is-good { color: var(--acid); }

/* ── the bar ───────────────────────────────────────────────────────────── */

.chrome {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--void);
  border-bottom: var(--b) solid var(--rot);
}

.bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px var(--edge);
}

/* The melt wordmark. Its letters fill the top of the image and the drips
   hang below them: --mark-mid is the letters' centre as a share of the image
   height. The image moves down so that centre, not the box's, meets the row's. */
.mark { display: block; line-height: 0; --mark-mid: 0.265; }
.mark img {
  display: block;
  height: 40px;
  width: auto;
  transform: translateY(calc((0.5 - var(--mark-mid)) * 100%));
}

.mode { display: flex; }
.mode button {
  width: 44px;
  height: var(--h);
  border: var(--b) solid var(--rot);
  background: none;
  color: var(--ash);
  font: 400 var(--t-s)/1 var(--display);
  cursor: pointer;
}
.mode button + button { border-left: 0; }
.mode button:hover { color: var(--bone); }
.mode button[aria-pressed='true'] { background: var(--bone); border-color: var(--bone); color: var(--void); }

.rate { margin: 0; color: var(--ash); white-space: nowrap; }
.rate b { color: var(--bone); font: 700 var(--t-m)/1 var(--data); }

/* PAUSE and CONNECT: one frame, one size */
.acts { display: flex; gap: 8px; }
.acts .btn { width: 136px; }
.btn-pause .icon { width: 18px; height: 18px; fill: currentColor; }
.btn-pause .i-play,
.btn-pause[aria-pressed='true'] .i-pause { display: none; }
.btn-pause[aria-pressed='true'] .i-play { display: inline; }
.btn-pause[aria-pressed='true'] { border-color: var(--acid); color: var(--acid); }
#connect.is-on { border-color: var(--acid); color: var(--acid); }
#connect.is-on:hover,
#connect.is-bad { border-color: var(--hazard); color: var(--hazard); }

/* ── deployer (C only) and the hunt ───────────────────────────────────── */

.hunt {
  display: grid;
  gap: 8px;
  padding: 0 var(--edge) 16px;
}
.deployer { display: grid; gap: 8px; }
.deployer .line { display: flex; gap: 8px; }
.deployer .field { font-size: var(--t-s); letter-spacing: 0.04em; }

/* a placement: the address it makes, then its ETA and price. The chips
   share the row out, so it ends on the column's right edge like the rest. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chips > * { flex: 1 1 auto; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--h);
  padding: 0 16px;
  border: var(--b) solid var(--rot);
  background: none;
  color: var(--bone);
  cursor: pointer;
  text-align: left;
}
.chip:hover:not(:disabled) { border-color: var(--acid); }
/* The second character of a from-the-top placement, A–D, and its chip share
   one frame, which lights up as a whole. */
.pick { display: flex; border: var(--b) solid var(--rot); }
.pick:hover,
.pick:focus-within { border-color: var(--acid); }
.pick .chip { flex: 1 1 auto; border: 0; height: calc(var(--h) - 2 * var(--b)); }
.second {
  height: calc(var(--h) - 2 * var(--b));
  width: var(--h);
  border: 0;
  border-right: var(--b) solid var(--rot);
  background: none;
  color: var(--acid);
  font: 700 var(--t-m)/1 var(--data);
  cursor: pointer;
}
.second:hover { background: var(--sludge); }
.chip:disabled { cursor: not-allowed; opacity: 0.55; }
.chip .meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ash); white-space: nowrap; }
.chip .meta b { color: var(--bone); font-weight: 700; }
.chip .top svg { width: 9px; height: 9px; }

/* a G buyer also funds its new account: a bare secondary amount after the price */
.plus { color: var(--ash); font: 400 var(--t-s)/1 var(--data); white-space: nowrap; }

.pattern { font: 700 var(--t-m)/1 var(--data); color: var(--ash); white-space: nowrap; }
.pattern .w { color: var(--acid); }

/* hunting: the chip becomes a slim line that fills toward the ETA */
.hunting {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--h);
}
.track { position: relative; flex: 1; height: 4px; background: var(--rot); overflow: hidden; }
.track-fill { display: block; height: 100%; width: 0; background: var(--acid); transition: width 0.25s linear; }
.hunting.is-late .track-fill {
  width: 100% !important;
  background: repeating-linear-gradient(-45deg, var(--acid) 0 6px, var(--rot) 6px 12px);
  background-size: 17px 17px;
  animation: march 0.7s linear infinite;
}
.hunting .meta { color: var(--ash); white-space: nowrap; }
.hunting .meta b { color: var(--bone); font: 700 var(--t-m)/1 var(--data); }
/* finding: the bar is the count of finds, and a scan head keeps sweeping it */
.hunting.is-finding .track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -48px;
  width: 48px;
  background: var(--bone);
  animation: scan 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scan { to { left: 100%; } }

/* found: the hit, huge, right under the input, until dismissed */
.found {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: var(--b) solid var(--acid);
  container-type: inline-size;
}
/* --per characters a line fill the card from edge to edge: a hair under, so
   the next one never fits and the lines stay even */
.found-addr {
  --per: 28;
  margin: 0;
  font: 400 min(calc(100cqi / (var(--per) * var(--adv-display)) - 0.02px), 64px)/1.05 var(--display);
  color: var(--bone);
  word-break: break-all;
}
.found-addr .w { color: var(--acid); }
.found.is-gone .found-addr,
.found.is-gone .found-addr .w { color: var(--rot); text-decoration: line-through var(--b) var(--hazard); }
.found-deal { display: flex; align-items: center; gap: 8px; }
.found-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 auto 0 0;
  color: var(--ash);
}
.found-price .plus { margin-left: 4px; }
#found-price { color: var(--bone); font: 700 var(--t-m)/1 var(--data); }
.found-price .top { align-self: center; }
.found-price .top svg { width: 10px; height: 10px; }
.found-deal .btn-acid { width: 136px; }

/* the finds, one at a time: NEWEST appears to the left so the arrows never move */
.pager { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.pager .btn-x svg { width: 16px; height: 16px; }
.pager .btn-x[aria-disabled='true'] { border-color: var(--rot); color: var(--rot); cursor: default; }
.count { min-width: 5ch; color: var(--ash); text-align: center; white-space: nowrap; }
.count b { color: var(--bone); font: 700 var(--t-m)/1 var(--data); }
.newest {
  height: var(--h);
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--acid);
  font: 400 var(--t-s)/1 var(--display);
  cursor: pointer;
}
.newest:hover { color: var(--bone); }

/* paused: hazard tape across the page, FROZEN on the column's left edge and
   what landed meanwhile on its right, which resumes the feed */
.frozen {
  --box: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px var(--edge);
  background: repeating-linear-gradient(-45deg, var(--acid) 0 12px, var(--void) 12px 24px);
}
.frozen-word,
.frozen-count {
  display: inline-flex;
  align-items: center;
  height: var(--box);
  margin: 0;
  padding: 0 14px;
  background: var(--void);
  color: var(--acid);
  white-space: nowrap;
}
.frozen-word { font: 400 30px/1 var(--display); letter-spacing: 0.02em; }
.frozen-count {
  gap: 12px;
  border: 0;
  font: 400 var(--t-s)/1 var(--display);
  cursor: pointer;
}
.frozen-count b { font: 400 30px/1 var(--display); }
.frozen-count:hover { color: var(--bone); }

/* ── the feed: the address, the price, nothing else ───────────────────── */

.feed-wrap { flex: 1 0 auto; padding: 8px 0 96px; }
.feed { list-style: none; margin: 0; padding: 0; }

.hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  padding: 8px var(--edge);
  border: 0;
  background: none;
  color: var(--ash);
  text-align: left;
  cursor: pointer;
  animation: land 0.7s ease-out;
}
.hit:hover:not(:disabled),
.hit:focus-visible { background: var(--sludge); }
.hit:focus-visible { outline-offset: -2px; }
@keyframes land { from { background: color-mix(in srgb, var(--acid) 12%, transparent); } }

.addr { font: 400 var(--t-m)/1.25 var(--data); word-break: break-all; }
/* One line of 56 where it fits, otherwise two even lines of 28: never a short tail. */
@media (max-width: 960px) {
  .addr { width: calc(28ch + 1px); }
}
.addr .w { color: var(--acid); font-weight: 700; }
.hit:hover:not(:disabled) .addr { color: var(--bone); }

.cost { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ash); white-space: nowrap; }
.cost b { color: var(--bone); font: 700 var(--t-m)/1 var(--data); }
.cost .top { align-self: center; }
.cost .top svg { width: 9px; height: 9px; }

.hit.is-gone { cursor: default; animation: none; }
.hit.is-gone .addr,
.hit.is-gone .addr .w { color: var(--rot); text-decoration: line-through var(--b) var(--hazard); }
.hit.is-gone .cost > * { display: none; }
.hit.is-gone .cost::before { content: 'SOLD'; color: var(--hazard); font: 400 var(--t-s)/1 var(--display); }

.ghost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 8px var(--edge);
  color: var(--rot);
}
.ghost .addr, .ghost .cost { color: var(--rot); }

.feed-down {
  margin: 0;
  padding: 8px var(--edge);
  background: var(--hazard);
  color: var(--void);
  font: 400 var(--t-s)/1.3 var(--display);
}

.feed-empty { padding: 48px var(--edge); }
.empty-big { margin: 0; font: 400 clamp(32px, 6vw, 64px)/0.95 var(--display); color: var(--acid); }

/* ── the stage: one address, huge ─────────────────────────────────────── */

.stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px var(--gutter) 64px;
  overflow-y: auto;
  background: var(--void);
}

.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage-wallet { color: var(--acid); font: 400 var(--t-s)/1 var(--display); }

.hero-wrap {
  position: relative;
  container-type: inline-size;
  max-width: 1600px;
}

/* 14 characters a row, four rows (8 a row, seven rows on a phone): the address set like a poster */
.hero {
  --per: 14;
  position: relative;
  z-index: 1;
  width: calc(var(--per) * 1ch + 2px);
  margin: 0;
  font: 400 min(calc(100cqi / (var(--per) * var(--adv-display)) - 0.5px), 140px)/1.2 var(--display);
  color: var(--bone);
  word-break: break-all;
  outline: none;
}
.hero .w { color: var(--acid); }
.hero.is-lost { color: var(--rot); }
.hero.is-lost .w { color: var(--ash); }


.stamp {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 0.1em 0.22em 0.14em;
  border: 0.09em solid currentColor;
  background: var(--void);
  font: 400 clamp(40px, 12cqi, 168px)/1 var(--display);
  white-space: nowrap;
  --at: translate(-50%, -50%);
  transform: var(--at) rotate(-6deg);
  animation: slam 0.24s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
/* a loss covers the address; a win sits bottom left, where words never are */
.stamp.is-loss { color: var(--hazard); }
.stamp.is-yours {
  left: 0;
  top: auto;
  bottom: -0.35em;
  color: var(--acid);
  font-size: clamp(32px, 7cqi, 96px);
  --at: translate(0, 0);
}
@keyframes slam {
  from { opacity: 0; transform: var(--at) rotate(-14deg) scale(1.8); }
}

/* price and the one action on a line, the hold's clock and status under them */
.deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 48px;
  max-width: 1600px;
  padding-top: 24px;
  border-top: 2px solid var(--rot);
}

.price {
  margin: 0;
  font: 400 clamp(48px, 9vw, 112px)/0.85 var(--display);
  color: var(--bone);
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.2em; }
.price small { font-size: 0.32em; color: var(--ash); }
.price .plus { margin-left: 0.4em; font: 400 0.32em/1 var(--display); }
.price .top { align-self: center; margin-right: 0.1em; }
.price .top svg { width: 0.32em; height: 0.32em; }

.btn-big { height: 72px; padding: 0 48px; font-size: clamp(20px, 2.6vw, 32px); }

.deal-status {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 0;
  min-height: 1.5em;
  color: var(--ash);
  font-size: 15px;
}
.clock { font: 400 24px/1 var(--display); color: var(--bone); }
.clock:empty { display: none; }
.clock.is-urgent { color: var(--hazard); }

.lost {
  display: grid;
  gap: 12px;
  max-width: 48rem;
  padding-top: 24px;
  border-top: 2px solid var(--hazard);
}
.lost-why { margin: 0; font-size: 17px; font-weight: 700; color: var(--bone); }
.lost-detail { margin: 0; color: var(--ash); word-break: break-word; }
.lost-detail:empty { display: none; }
.lost-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.yours {
  display: grid;
  margin: 0;
  max-width: 1600px;
  border-top: 2px solid var(--acid);
}
.yours > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rot);
}
.yours dt { font: 400 13px/1.4 var(--display); color: var(--ash); }
.yours dd { margin: 0; min-width: 0; }
.yours .v { font: 700 17px/1.4 var(--data); color: var(--bone); word-break: break-all; }
.yours a.v { color: var(--acid); text-underline-offset: 4px; }
.yours a.v:hover { color: var(--bone); }
.yours .is-wide .v { font-weight: 400; font-size: 15px; color: var(--bone); }
.btn-copy { height: 36px; padding: 0 12px; }
.yours-act { display: flex; gap: 8px; max-width: 1600px; }

/* ── the receipt: on paper only, black on white, one A4 page ──────────── */

/* Never on screen. RECEIPT fills it, lifts `hidden` and prints. */
@media screen {
  .receipt { display: none !important; }
}

@media print {
  @page { size: A4; margin: 18mm 16mm; }
  /* paper is white, margins included, whatever the screen's dark scheme says */
  html { background: #fff; color-scheme: light; }
  body.has-receipt {
    display: block;
    min-height: 0;
    overflow: visible;
    background: #fff;
    color: #000;
    font: 400 9.5pt/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
  }
  body.has-receipt::after { display: none; }
  body.has-receipt > :not(.receipt) { display: none !important; }
}

.receipt { max-width: 178mm; color: #000; }
.rc-mark { margin: 0 0 7mm; font: 400 22pt/1 var(--display); letter-spacing: 0.02em; }
.rc-title { margin: 0 0 4mm; font-size: 13pt; font-weight: 700; letter-spacing: 0.24em; }
.rc-seller { margin-bottom: 5mm; }
.rc-seller p { margin: 0; }
.rc-name { font-weight: 700; }
.rc-addr { white-space: pre-line; }
.rc-lines { margin: 0; border-top: 1pt solid #000; }
.rc-lines > div {
  display: grid;
  grid-template-columns: 46mm minmax(0, 1fr);
  gap: 5mm;
  padding: 1.7mm 0;
  border-bottom: 0.5pt solid #000;
  break-inside: avoid;
}
.rc-lines dt { font-weight: 700; }
.rc-lines dd { display: grid; gap: 0.5mm; margin: 0; min-width: 0; }
.rc-lines .mono { font: 400 9pt/1.4 var(--data); word-break: break-all; }

/* ── the legal line, last thing on the page ───────────────────────────── */

.legal {
  display: flex;
  gap: 12px;
  padding: 0 var(--edge) 32px;
  color: var(--rot);
}
.legal a { color: var(--ash); text-decoration: none; }
.legal a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ── narrow: two rows, only the bar sticks ────────────────────────────── */

.mode-hunt { display: none; }
.hunt-line { display: flex; gap: 8px; }

@media (max-width: 720px) {
  :root { --t-m: 18px; }

  .chrome { display: contents; }
  /* the mark over the rate, PAUSE and CONNECT at full size beside them */
  .bar {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'mark acts' 'rate acts';
    gap: 4px 8px;
    padding-block: 12px;
    background: var(--void);
  }
  /* stacked, the letters' top meets the buttons' top and the rate's foot
     their foot; the drips hang into the space between */
  .mark { grid-area: mark; align-self: start; }
  .mark img { height: 28px; transform: none; }
  .rate { grid-area: rate; align-self: start; font-size: var(--t-s); }
  .rate b { font-size: var(--t-s); }
  .acts { grid-area: acts; }
  .mode-bar { display: none; }
  .mode-hunt { display: flex; }
  .acts .btn { width: 112px; padding: 0 8px; }
  .frozen { position: sticky; top: 76px; z-index: 9; --box: 36px; padding-block: 6px; }
  .frozen-word { padding: 0 10px; font-size: 20px; }
  .frozen-count { gap: 8px; padding: 0 10px; font-size: 10px; }
  .frozen-count b { font-size: 20px; }
  .frozen-count span { white-space: normal; max-width: 10em; line-height: 1.15; }
  .hunt { padding-top: 4px; }

  /* placements stack their meta under the address they make */
  .chip { flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 12px; }
  .found-addr { --per: 14; }
  /* the price takes what GRAB and ✕ leave, the funding amount under it */
  .found-price { flex: 1 1 0; min-width: 0; flex-wrap: wrap; row-gap: 6px; }
  .found-price .plus { flex-basis: 100%; margin: 0; }
  /* more than one find: the pager takes its own row, its arrows under GRAB and ✕ */
  .found-deal { flex-wrap: wrap; }
  .pager { order: 1; flex: 1 0 100%; justify-content: flex-end; margin: 0; }

  /* two rows of 28 characters, the price beside them */
  .addr { width: calc(28ch + 1px); }
  .hit, .ghost { gap: 12px; }
  .cost { flex-direction: column; align-items: flex-end; gap: 2px; }

  .stage { gap: 24px; }
  .deal { grid-template-columns: minmax(0, 1fr); }
  .btn-big { width: 100%; }

  .yours > div { grid-template-columns: minmax(0, 1fr) auto; }
  .yours dt { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero { --per: 8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hunting.is-finding .track::after { display: none; }
}
