/* ==========================================================================
   Proof of New Shitcoins . a block explorer for the pons production line
   Dark instrument surface. One accent, used only for the live chain layer.
   Surfaces separate by FILL. No borders on boxes, no shadows anywhere.
   ========================================================================== */

@font-face {
  font-family: "Excon";
  src: url("/assets/vendor/fonts/excon-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Excon";
  src: url("/assets/vendor/fonts/excon-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "0xProto";
  src: url("/assets/vendor/fonts/0xproto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "0xProto";
  src: url("/assets/vendor/fonts/0xproto-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* metric matched fallbacks, measured off the real files */
@font-face {
  font-family: "Excon fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105%;
  ascent-override: 105%;
  descent-override: 27%;
  line-gap-override: 10%;
}
@font-face {
  font-family: "0xProto fallback";
  src: local("Consolas"), local("Courier New"), local("Liberation Mono");
  size-adjust: 103%;
  ascent-override: 113%;
  descent-override: 43%;
  line-gap-override: 0%;
}

:root {
  /* colour. one accent, and it belongs to the chain layer. */
  --ground: #0d1117;
  --ink: #e6edf3;
  --accent: #00d3f2; /* oklch chroma 0.140 */

  --surface-1: color-mix(in oklch, var(--ground), var(--ink) 5%);
  --surface-2: color-mix(in oklch, var(--ground), var(--ink) 10%);
  --ink-2: color-mix(in oklch, var(--ink), var(--ground) 46%);
  --ink-3: color-mix(in oklch, var(--ink), var(--ground) 72%);
  --rule: color-mix(in oklch, var(--ink), var(--ground) 86%);
  --accent-dim: color-mix(in oklch, var(--accent), var(--ground) 76%);
  --accent-mid: color-mix(in oklch, var(--accent), var(--ground) 42%);
  --accent-wash: color-mix(in oklch, var(--accent), var(--ground) 90%);
  --scrim: oklch(from var(--ground) l c h / 0.78);

  /* direction is not decoration on an explorer, so it gets two reserved tokens */
  --up: #3fb950;
  --down: #f85149;

  /* the three parts of a supply, validated against this surface for CVD */
  --part-pool: #009fbb;
  --part-maker: #d04a69;
  --part-loose: #bb881a;

  /* type. ratio 1.25 off a 15px body. */
  --t-hero: clamp(36px, 4.8vw, 68px);
  --t-head: clamp(20px, 2.1vw, 29px);
  --t-body: clamp(14px, 1vw, 15px);
  --t-label: 12px;
  --t-micro: 11px;

  --ui: "Excon", "Excon fallback", system-ui, sans-serif;
  --mono: "0xProto", "0xProto fallback", Consolas, monospace;

  /* spacing: one scale, and nothing on the page picks a number outside it */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;

  /* surfaces: ONE device, a fill change. three levels, no fourth. */
  --pad: var(--s5);
  --gap: var(--s4);
  --margin: clamp(16px, 2.4vw, 34px);
  --radius: 8px;
  --radius-inner: max(0px, calc(var(--radius) - var(--pad)));
  --bar-r: 3px;
  --chip-r: 3px;
  --dot-r: 2px;
  --picked-edge: inset 2px 0 0 0 var(--accent);
  /* the pons mark is a glossy pale green glass letter, so it ships on its own light plate */
  --plate: #f4f4f4;
  --plate-hi: #ffffff;
  --plate-ink: #111111;
  --mask-solid: #000000;

  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --z-page: 0;
  --z-chrome: 10;
  --z-sticky: 20;
  --z-overlay: 40;
  --z-toast: 60;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-body);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--margin);
  top: var(--s2);
  z-index: var(--z-toast);
  background: var(--surface-2);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.dim {
  color: var(--ink-2);
}
.nojs {
  margin: var(--margin);
}

/* ------------------------------------------------------------------ chrome */

.top {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s5);
  padding: var(--s3) var(--margin);
  background: var(--ground);
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.brand-mark canvas {
  width: 22px;
  height: 22px;
}
.brand-name {
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  margin-top: var(--s1);
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--t-micro);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.find {
  display: flex;
  align-items: center;
  gap: var(--s2);
  max-width: 520px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-1);
}
.find input {
  flex: 1;
  min-width: 0;
  padding: var(--s3) 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-label);
}
.find input::placeholder {
  color: var(--ink-3);
}
.find:focus-within {
  background: var(--surface-2);
}
.find-hint {
  font-size: var(--t-micro);
  color: var(--ink-3);
  white-space: nowrap;
}

.links {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  background: var(--surface-1);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-label);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.mark:hover {
  background: var(--surface-2);
}
.mark img {
  display: block;
  height: 16px;
  width: auto;
}
/* the pons mark is a glossy pale green glass letter and it wants a light plate */
.mark-pons {
  background: var(--plate);
  color: var(--plate-ink);
  font-weight: 700;
}
.mark-pons:hover {
  background: var(--plate-hi);
}
.mark-pons img {
  height: 20px;
}
.mark[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* the machine line. one row, telemetry, no links. */
.machine {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s6);
  padding: var(--s3) var(--margin);
  background: var(--surface-1);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.machine b {
  color: var(--ink);
  font-weight: 400;
}
.machine .live {
  color: var(--accent);
}
.machine .live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--s2);
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

/* ------------------------------------------------------------------- bench */

.bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 33%);
  gap: var(--gap);
  padding: var(--gap) var(--margin) 0;
  align-items: stretch;
  /* The row is as tall as the RECORD, whose every slot is reserved, so it never
     changes size. The table then scrolls inside whatever height that gives it. */
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
}

/* every panel opens the same way: the name, then its one line under it, then air */
.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s1) var(--s4);
  padding: var(--s5) var(--pad) var(--s4);
}
.panel-head h2 {
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.say {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--t-micro);
  color: var(--ink-2);
}
.count {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  font-size: var(--t-micro);
  color: var(--ink-3);
  white-space: nowrap;
}

.waiting {
  margin: 0;
  padding: var(--s2) var(--pad) var(--s6);
  font-size: var(--t-label);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- chart */

.rate {
  padding: 0 var(--pad) var(--s5);
}
.rate-title {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s2);
}
.rate canvas {
  display: block;
  width: 100%;
  height: 56px;
}

/* ------------------------------------------------------------------- table */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-label);
}
.tbl th {
  position: sticky;
  top: 0;
  z-index: var(--z-chrome);
  padding: var(--s2) var(--pad);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.tbl th.num,
.tbl td.num {
  text-align: right;
}
.tbl td {
  padding: var(--s3) var(--pad);
  border-top: 1px solid var(--rule);
  white-space: nowrap;
}
.tbl tbody tr {
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.tbl tbody tr:hover {
  background: var(--surface-2);
}
.tbl tbody tr.on {
  background: var(--accent-wash);
  box-shadow: var(--picked-edge);
}
.tbl .sym {
  font-family: var(--ui);
  font-weight: 700;
  max-width: 15ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbl .addr {
  color: var(--ink-3);
  font-size: var(--t-micro);
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.flat {
  color: var(--ink-3);
}

.glyph {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: var(--chip-r);
}
.cell-glyph {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.quote {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-2);
}
.quote img {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.fresh-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: var(--s2);
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.scroll {
  flex: 1 1 0;
  min-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* the row at the cut is a scroll affordance, not a broken row */
  mask-image: linear-gradient(to bottom, var(--mask-solid) calc(100% - 28px), transparent 100%);
}

/* ------------------------------------------------------------------ record */

.record {
  overflow: hidden;
}
.rec-body {
  padding: 0 var(--pad) var(--s6);
}
.rec-sym {
  margin: 0;
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-hero);
  line-height: 0.94;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.rec-quote {
  margin: var(--s2) 0 var(--s5);
  font-size: var(--t-label);
  color: var(--ink-2);
}
.rec-addr {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: var(--s3);
  border-radius: var(--radius-inner);
  background: var(--surface-2);
  font-size: var(--t-micro);
  color: var(--ink-2);
  text-align: left;
  transition: color var(--dur) var(--ease);
}
.rec-addr span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-addr:hover {
  color: var(--ink);
}

.rows {
  margin: var(--s5) 0 0;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-label);
}
.row dt {
  color: var(--ink-2);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.row dd {
  margin: 0;
  text-align: right;
}

.meter {
  margin-top: var(--s5);
}
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s2);
}
.meter-head b {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.track {
  height: 8px;
  border-radius: var(--bar-r);
  background: var(--surface-2);
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  border-radius: var(--bar-r);
  background: var(--accent);
  transition: width 500ms var(--ease);
}
.meter-note {
  min-height: 1.4em;
  margin: var(--s2) 0 0;
  font-size: var(--t-micro);
  color: var(--ink-3);
}

/* the supply split: three named parts, direct labelled, 2px of surface between */
.split {
  display: flex;
  gap: 2px;
  height: 10px;
  margin-bottom: var(--s3);
}
.split > i {
  display: block;
  height: 100%;
  border-radius: var(--bar-r);
  transition: width 500ms var(--ease);
}
.split-pool {
  background: var(--part-pool);
}
.split-maker {
  background: var(--part-maker);
}
.split-loose {
  background: var(--part-loose);
}
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-micro);
  color: var(--ink-2);
}
.keys li {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.keys i {
  width: 9px;
  height: 9px;
  border-radius: var(--dot-r);
}
.keys b {
  color: var(--ink);
  font-weight: 400;
}

.wallets {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--s1);
  min-height: 58px;
  margin: var(--s2) 0 0;
  padding: 0;
  list-style: none;
}
.wallets li {
  padding: var(--s1) var(--s2);
  border-radius: var(--chip-r);
  background: var(--surface-2);
  font-size: var(--t-micro);
  color: var(--ink-2);
}
.wallets .wallets-said {
  background: none;
  padding-inline: 0;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ grades */

.verdict {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}
.verdict-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tally {
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}
.tally li.none {
  opacity: 0.34;
}
.tally li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  padding: var(--s1) 0;
  font-size: var(--t-label);
}
.tally .tally-bar {
  position: relative;
  height: 24px;
  border-radius: var(--bar-r);
  background: var(--surface-2);
  overflow: hidden;
}
.tally .tally-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--bar-r);
  background: var(--accent-mid);
  transition: width 400ms var(--ease);
}
.tally .tally-bar > span {
  position: relative;
  display: block;
  padding: var(--s1) var(--s3);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tally li.lead .tally-bar > i {
  background: var(--accent);
}
.tally li.lead .tally-bar > span {
  color: var(--ground);
}
.tally .tally-n {
  min-width: 52px;
  text-align: right;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: var(--t-micro);
}
.tally .tally-n b {
  color: var(--accent);
  font-weight: 400;
}

.dies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s4);
}
.die {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius-inner);
  background: var(--surface-2);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  text-align: left;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.die:hover:not(:disabled) {
  background: var(--accent);
  color: var(--ground);
}
.die:active:not(:disabled) {
  transform: scale(0.98);
}
.die:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.die.paid {
  grid-column: 1 / -1;
  color: var(--accent);
}
.die.paid:hover:not(:disabled) {
  color: var(--ground);
}
.die-cost {
  color: var(--ink-3);
  white-space: nowrap;
}
.die.paid:hover .die-cost {
  color: var(--ground);
}

.settled {
  margin-top: var(--s5);
}
.settled.pending {
  visibility: hidden;
}
.seal {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1000 / 281;
}
.crown .seal {
  max-width: 320px;
  margin-inline: auto;
}
.settled-note {
  min-height: 1.5em;
  margin: var(--s2) 0 0;
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.crown .settled {
  margin-top: 0;
}

.note {
  margin: var(--s4) 0 0;
  min-height: 2.6em;
  font-size: var(--t-micro);
  color: var(--accent);
}

/* --------------------------------------------------------------- registers */

.regs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding: var(--gap) var(--margin) 0;
  align-items: stretch;
}
.reg-wide {
  grid-column: 1 / -1;
}
.regs > .panel {
  height: 292px;
}
.regs > .panel > .list,
.regs > .panel > .waiting {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.regs > .reg-wide {
  height: auto;
  min-height: 208px;
}
@media (min-width: 1240px) {
  .regs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.crown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: var(--s6);
  padding: var(--s2) var(--pad) var(--s6);
  align-items: center;
}
.crown-sym {
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1;
  overflow-wrap: anywhere;
}
.crown-addr {
  margin: var(--s2) 0 var(--s4);
  font-size: var(--t-micro);
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-label);
}
.list > li {
  display: grid;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--pad);
  border-top: 1px solid var(--rule);
}
.list > li:last-child {
  border-bottom: 1px solid var(--rule);
}
.list.ranked > li {
  grid-template-columns: 24px 22px minmax(0, 1fr) auto;
}
.list.people > li {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}
.list.makers > li {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s2);
  padding: var(--s4) var(--pad);
}
.list.graves > li {
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.list.graves > li:hover {
  background: var(--surface-2);
}
.rank {
  color: var(--ink-3);
  font-size: var(--t-micro);
}
.who {
  font-family: var(--ui);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score {
  color: var(--accent);
  white-space: nowrap;
}
.aside {
  color: var(--ink-2);
  font-size: var(--t-micro);
  white-space: nowrap;
}

.maker-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.chip {
  padding: var(--s1) var(--s2);
  border-radius: var(--chip-r);
  background: var(--surface-2);
  font-size: var(--t-micro);
  transition: background var(--dur) var(--ease);
}
.chip:hover {
  background: var(--accent);
  color: var(--ground);
}

/* ----------------------------------------------------------------- the foot */

.foot {
  margin-top: var(--s6);
  padding: var(--s7) var(--margin) var(--s6);
  background: var(--surface-1);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: var(--s7) var(--s6);
  padding-bottom: var(--s7);
}

.foot-col h3 {
  margin-bottom: var(--s4);
  font-family: var(--ui);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.foot-id .brand-mark {
  margin-bottom: var(--s5);
}
.foot-name {
  margin: 0 0 var(--s3);
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1.15;
}
.foot-line {
  margin: 0 0 var(--s6);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink-2);
}
.foot-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding: var(--s4);
  line-height: 1.7;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: var(--t-micro);
  color: var(--ink-2);
  text-align: left;
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease);
}
.foot-ca:hover {
  color: var(--ink);
}
.foot-ticker {
  color: var(--accent);
}

.foot-rows {
  margin: 0;
}
.foot-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s2) 0;
  font-size: var(--t-label);
}
.foot-rows dt {
  color: var(--ink-2);
}
.foot-rows dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-label);
}
.foot-list li {
  padding: var(--s2) 0;
}
.foot-list a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.foot-list a:hover {
  color: var(--accent);
}

.foot-marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
/* the footer sits on surface 1, so a plate on it has to be surface 2 to read as a plate */
.foot-marks .mark {
  background: var(--surface-2);
}
.foot-marks .mark:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.foot-marks .mark-pons,
.foot-marks .mark-pons:hover {
  background: var(--plate);
  color: var(--plate-ink);
}

.foot-base {
  margin: 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- the desk */

dialog.burn {
  width: min(430px, calc(100vw - 28px));
  padding: 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
}
dialog.burn::backdrop {
  background: var(--scrim);
}
dialog.burn h3 {
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-head);
  line-height: 1.1;
}
dialog.burn p {
  margin: var(--s3) 0 var(--s5);
  font-size: var(--t-label);
  color: var(--ink-2);
  max-width: 60ch;
}
.picks {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.picks li + li {
  margin-top: var(--s2);
}
.picks button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: var(--s3);
  border-radius: var(--radius-inner);
  background: var(--surface-1);
  font-size: var(--t-label);
  transition: background var(--dur) var(--ease);
}
.picks button:hover:not(:disabled) {
  background: var(--accent);
  color: var(--ground);
}
.picks button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.go {
  width: 100%;
  padding: var(--s4);
  border-radius: var(--radius-inner);
  background: var(--accent);
  color: var(--ground);
  font-family: var(--ui);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  transition: opacity var(--dur) var(--ease);
}
.go:disabled {
  opacity: 0.5;
}
.out {
  display: block;
  margin: var(--s4) auto 0;
  font-size: var(--t-micro);
  color: var(--ink-3);
  text-decoration: underline;
}

/* ------------------------------------------------------------------- small */

@media (max-width: 1080px) {
  .bench {
    grid-template-columns: minmax(0, 1fr);
  }
  .record {
    order: -1;
    overflow: visible;
  }
  .scroll {
    min-height: 420px;
  }
  .regs > .panel {
    height: 268px;
  }
}

@media (max-width: 980px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6) var(--s5);
  }
  .foot-id {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .foot {
    padding-top: var(--s6);
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
    padding-bottom: var(--s6);
  }
  .top {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: var(--s3);
  }
  .find {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .find-hint {
    display: none;
  }
  .brand {
    min-width: 0;
  }
  .brand-name {
    font-size: var(--t-label);
    white-space: normal;
    overflow: hidden;
  }
  .brand-sub {
    display: none;
  }
  .mark span:not(.die-cost) {
    display: none;
  }
  .mark-pons span {
    display: inline !important;
  }
  .record {
    top: auto;
  }
  .regs {
    grid-template-columns: minmax(0, 1fr);
  }
  .crown {
    grid-template-columns: minmax(0, 1fr);
  }
  .tbl .hide-s {
    display: none;
  }
  .dies {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .machine .live::before {
    animation: none;
  }
  .track > i,
  .split > i,
  .tally .tally-bar > i {
    transition: none;
  }
}
