/* Capsule of Memes. One material: a black terminal page with turquoise ASCII schematics, the way
   the reference pinout is drawn. Frames are typed characters (src/ui.js frame()), never boxes. */

@font-face {
  font-family: "Departure Mono";
  src: url("/fonts/DepartureMono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sixtyfour";
  src: url("/fonts/Sixtyfour.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #050707;
  --bg-2: #080c0c;
  --ink: #e2f3f0;
  --dim: #8fa9a4;
  --mute: #5b726e;
  --line: #1e5c55;
  --line-hi: #2d8f84;
  --acc: #40e0d0;
  --acc-ink: #021412;
  --acc-dim: rgba(64, 224, 208, 0.12);
  --sel: rgba(64, 224, 208, 0.28);

  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pix: "Departure Mono", "Geist Mono", ui-monospace, monospace;
  --title: "Sixtyfour", "Departure Mono", ui-monospace, monospace;

  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 11px;
  --fs-frame: 13px;
  --lh-frame: 16px;
  --side: 256px;
  --gut: clamp(16px, 4vw, 56px);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  min-height: 100vh;
  font: 400 var(--fs-body) / 1.6 var(--mono);
  background: var(--bg);
  color: var(--ink);
}
::selection {
  background: var(--sel);
  color: var(--ink);
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
/* the page container takes focus after a route change for screen readers; it never shows a ring */
main:focus,
main:focus-visible {
  outline: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--acc);
  color: var(--acc-ink);
  padding: 8px 12px;
  font: 400 13px var(--pix);
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ type roles */
.label {
  font: 400 var(--fs-label) / 1.4 var(--pix);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 14px;
}
.label--mute {
  color: var(--mute);
}
.pix {
  font-family: var(--pix);
}
.lead {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  max-width: 62ch;
  color: var(--ink);
}
.dim {
  color: var(--dim);
}
.mute {
  color: var(--mute);
}
.acc {
  color: var(--acc);
}
.num {
  font-family: var(--pix);
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3 {
  font-weight: 400;
  margin: 0;
}
.title {
  font: 400 clamp(30px, 4.6vw, 58px) / 1.05 var(--title);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.h2 {
  font: 400 22px / 1.25 var(--pix);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.h3 {
  font: 400 15px / 1.3 var(--pix);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
p {
  margin: 0 0 12px;
}
code,
kbd,
.code {
  font-family: var(--pix);
  font-size: 13px;
}
.tiny {
  font-size: 12px;
  color: var(--mute);
}

/* ------------------------------------------------------------------ the shell */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: var(--bg-2);
  z-index: 20;
}
/* the sidebar's edge: a dotted column, like the reference's pin columns */
.side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: radial-gradient(circle, var(--line) 0.9px, transparent 1.2px) 0 0 / 2px 6px repeat-y;
}
.side__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 400 15px / 1.15 var(--pix);
  letter-spacing: 0.08em;
  color: var(--acc);
  margin: 0 0 22px;
}
.side__brand img {
  image-rendering: pixelated;
}
.side__search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  margin-bottom: 18px;
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  font: 400 12px var(--pix);
  cursor: pointer;
  text-align: left;
}
.side__search:hover {
  box-shadow: inset 0 0 0 1px var(--line-hi);
  color: var(--dim);
}
.side__search kbd {
  color: var(--mute);
  font-size: 11px;
}
.side__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side__nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  text-decoration: none;
  font: 400 14px / 1.3 var(--mono);
  color: var(--dim);
}
.side__nav a i {
  font: 400 11px var(--pix);
  font-style: normal;
  color: var(--mute);
  width: 26px;
  flex: none;
}
.side__nav a em {
  margin-left: auto;
  font: 400 11px var(--pix);
  font-style: normal;
  color: var(--mute);
}
.side__nav a:hover {
  color: var(--ink);
}
.side__nav a[aria-current="page"] {
  color: var(--acc);
  background: var(--acc-dim);
  box-shadow: inset 2px 0 0 var(--acc);
}
.side__nav a[aria-current="page"] i {
  color: var(--acc);
}
.side__x img {
  width: 13px;
  height: 13px;
  margin: 0 13px 0 6px;
  opacity: 0.8;
  align-self: center;
}
.side__x[aria-disabled="true"] {
  cursor: default;
}
.side__group {
  font: 400 10px var(--pix);
  letter-spacing: 0.16em;
  color: var(--mute);
  margin: 18px 10px 6px;
}
.side__foot {
  margin-top: auto;
}
.side__beacon {
  font: 400 11px / 1.5 var(--pix);
  color: var(--mute);
  margin: 0 2px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side__beacon b {
  color: var(--acc);
  font-weight: 400;
}

.bar {
  display: none;
}
main {
  margin-left: var(--side);
  padding: 44px var(--gut) 80px;
  max-width: calc(var(--side) + 1200px);
  min-height: 100vh;
  outline: none;
}

/* ------------------------------------------------------------------ keys */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  background: var(--acc);
  color: var(--acc-ink);
  font: 400 13px / 1 var(--pix);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
  white-space: nowrap;
}
.key:hover {
  background: #7af0e4;
}
.key:active {
  transform: translateY(1px);
}
.key img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.key--wide {
  width: 100%;
}
.key--case {
  text-transform: none;
  letter-spacing: 0.04em;
}
.key--ghost {
  background: transparent;
  color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.key--ghost:hover {
  background: var(--acc-dim);
}
.key--quiet {
  background: transparent;
  color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 34px;
  font-size: 12px;
  padding: 0 12px;
}
.key--quiet:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-hi);
  background: transparent;
}
.key[disabled],
.key[aria-disabled="true"] {
  background: transparent;
  color: var(--mute);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: not-allowed;
  transform: none;
}
.arrow {
  font: 400 12px var(--pix);
  letter-spacing: 0.12em;
  color: var(--acc);
  text-decoration: none;
}
.arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ ASCII frames */
.fr {
  position: relative;
  padding: calc(var(--lh-frame) + 12px) 26px calc(var(--lh-frame) + 10px);
}
.fr-e {
  position: absolute;
  font: 400 var(--fs-frame) / var(--lh-frame) var(--pix);
  color: var(--line);
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.fr-t,
.fr-b {
  left: 0;
  right: 0;
  height: var(--lh-frame);
}
.fr-t {
  top: 0;
}
.fr-b {
  bottom: 0;
}
.fr-l,
.fr-r {
  top: var(--lh-frame);
  bottom: var(--lh-frame);
  width: 1ch;
}
.fr-l {
  left: 0;
}
.fr-r {
  right: 0;
}
.fr-tr,
.fr-br {
  right: 0;
  width: 1ch;
  height: var(--lh-frame);
  background: var(--bg);
}
.fr-tr {
  top: 0;
}
.fr-br {
  bottom: 0;
}
.fr-tag {
  position: absolute;
  top: 0;
  left: 3ch;
  font: 400 var(--fs-frame) / var(--lh-frame) var(--pix);
  color: var(--acc);
  background: var(--bg);
  padding: 0 0.6ch;
  white-space: nowrap;
}
.fr-tag--right {
  left: auto;
  right: 3ch;
  color: var(--mute);
}
.fr--hi .fr-e {
  color: var(--line-hi);
}
.fr--acc .fr-e {
  color: var(--acc);
}
a.fr {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.fr:hover .fr-e,
a.fr:focus-visible .fr-e {
  color: var(--acc);
}
a.fr:focus-visible {
  outline: none;
}
.side .fr-tr,
.side .fr-br {
  background: var(--bg-2);
}

/* ------------------------------------------------------------------ layout pieces */
.grid {
  display: grid;
  gap: 14px;
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.section {
  margin-top: 56px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.spread {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat;
}
.facts dt {
  font: 400 10px var(--pix);
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
}
.facts--tight dd {
  white-space: nowrap;
}
.facts dd {
  margin: 4px 0 0;
  font: 400 13px var(--pix);
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
}
.hero__copy .row {
  margin-top: 26px;
}
.pinout {
  font: 400 var(--pin-fs, 13px) / 1.24 var(--pix);
  color: var(--line-hi);
  white-space: pre;
  margin: 0;
  overflow: hidden;
}
.pinout b {
  font-weight: 400;
  color: var(--ink);
}
.pinout i {
  font-style: normal;
  color: var(--acc);
}
.pinout u {
  text-decoration: none;
  color: var(--mute);
}
.pinout .big {
  color: var(--acc);
}
.pinout a {
  text-decoration: none;
}
.pinout a:hover b {
  color: var(--acc);
}
.pin-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pin-link:hover .pinout b {
  color: var(--acc);
}
.pin-caption {
  font: 400 12px var(--pix);
  color: var(--mute);
  margin-top: 10px;
  text-align: center;
}
.pinlist {
  display: none;
}
.step__n {
  font: 400 26px var(--pix);
  color: var(--acc);
  margin: 0 0 12px;
}
.step .h3 {
  margin-bottom: 10px;
}
.step p,
.card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
}
.card .h3 {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.card .h3 span {
  color: var(--mute);
  font-size: 11px;
}
.card .arrow {
  display: inline-block;
  margin-top: 6px;
}
.shell {
  font: 400 14px var(--pix);
  color: var(--ink);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.shell::before {
  content: "$ ";
  color: var(--acc);
}

/* the $CAP module: a second pinout whose pins are the coin's links */
.module {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.module__chip {
  font: 400 13px / 1.24 var(--pix);
  color: var(--line-hi);
  white-space: pre;
  margin: 0;
}
.module__chip i {
  font-style: normal;
  color: var(--acc);
}
.module__chip b {
  font-weight: 400;
  color: var(--ink);
}
.module__pins {
  display: grid;
  gap: 14px;
}
.pinrow {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.pinrow__n {
  font: 400 12px var(--pix);
  color: var(--mute);
  white-space: nowrap;
}
.pinrow__n i {
  font-style: normal;
  color: var(--acc);
}
.ca {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
.ca code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font: 400 13px / 1.45 var(--pix);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-wrap: anywhere;
  user-select: all;
}
.ca code.empty {
  color: var(--mute);
  user-select: text;
}
.ca .key {
  min-height: auto;
}

/* ------------------------------------------------------------------ board */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tabs button {
  background: transparent;
  border: 0;
  color: var(--mute);
  font: 400 12px var(--pix);
  letter-spacing: 0.12em;
  padding: 9px 12px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  color: var(--acc);
  box-shadow: inset 0 -2px 0 var(--acc);
}
.tabs button:hover {
  color: var(--ink);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.table th {
  font: 400 10px var(--pix);
  letter-spacing: 0.14em;
  color: var(--mute);
  text-align: left;
  padding: 0 10px 10px;
  white-space: nowrap;
}
.table td {
  padding: 12px 10px;
  vertical-align: middle;
  background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat;
}
.table tr.is-link {
  cursor: pointer;
}
.table tr.is-link:hover td {
  background-color: rgba(64, 224, 208, 0.04);
}
.table .r {
  text-align: right;
}
.coin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.coin img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  flex: none;
  image-rendering: pixelated;
  background: #000;
}
.coin b {
  display: block;
  font: 400 13px var(--pix);
  color: var(--ink);
  font-weight: 400;
}
.coin div {
  min-width: 0;
}
.coin span {
  display: block;
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cipher {
  font: 400 12px / 1.2 var(--pix);
  color: var(--line-hi);
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.04em;
}
.cipher--open {
  color: var(--ink);
  white-space: normal;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
}
.when {
  font: 400 12px / 1.4 var(--pix);
  color: var(--dim);
  white-space: nowrap;
}
.when b {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: var(--acc);
}
.kind {
  font: 400 11px var(--pix);
  letter-spacing: 0.12em;
  color: var(--dim);
}
.stamp {
  display: inline-block;
  font: 400 11px / 1 var(--pix);
  letter-spacing: 0.1em;
  padding: 5px 7px;
  color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc);
  white-space: nowrap;
}
.stamp--on {
  background: var(--acc);
  color: var(--acc-ink);
}
.stamp--off {
  color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  display: block;
}
.empty-state {
  padding: 26px 4px;
  color: var(--dim);
}
.system dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.system dt {
  font: 400 10px var(--pix);
  letter-spacing: 0.14em;
  color: var(--mute);
}
.system dd {
  margin: 3px 0 0;
  font: 400 18px / 1.25 var(--pix);
  color: var(--ink);
}
.system dd small {
  display: block;
  font-size: 11px;
  color: var(--mute);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 11px var(--pix);
  letter-spacing: 0.14em;
  color: var(--acc);
}
.live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--acc);
  animation: blink 3s steps(1) infinite;
}
.live--off {
  color: var(--mute);
}
.live--off::before {
  background: var(--mute);
  animation: none;
}
@keyframes blink {
  0%,
  6% {
    opacity: 1;
  }
  7%,
  100% {
    opacity: 0.25;
  }
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

/* ------------------------------------------------------------------ seal */
.seal {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
}
.seal > div:last-child {
  position: sticky;
  top: 24px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}
.field > label,
.field > .flabel {
  font: 400 11px var(--pix);
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}
.field small {
  color: var(--mute);
  font-size: 12px;
}
.input,
textarea.input,
select.input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: #030505;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 400 14px / 1.5 var(--mono);
  border-radius: 0;
}
textarea.input {
  min-height: 120px;
  resize: vertical;
}
.input:hover {
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--acc);
}
.input::placeholder {
  color: var(--mute);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 400 12px var(--pix);
  letter-spacing: 0.1em;
  cursor: pointer;
}
.seg button:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.seg button[aria-pressed="true"] {
  color: var(--acc-ink);
  background: var(--acc);
  box-shadow: none;
}
.drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  font: 400 12px var(--pix);
  text-align: center;
  cursor: pointer;
}
.drop:hover,
.drop.is-over {
  box-shadow: inset 0 0 0 1px var(--acc);
  color: var(--dim);
}
.drop img {
  max-height: 160px;
  width: auto;
}
.cover {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cover canvas,
.cover img {
  width: 92px;
  height: 92px;
  image-rendering: pixelated;
  background: #000;
  flex: none;
}
.receipt pre {
  font: 400 12.5px / 1.55 var(--pix);
  color: var(--dim);
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.receipt pre b {
  color: var(--ink);
  font-weight: 400;
}
.receipt pre i {
  color: var(--acc);
  font-style: normal;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  counter-reset: s;
}
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  font: 400 12.5px / 1.4 var(--pix);
  color: var(--mute);
  counter-increment: s;
}
.steps li::before {
  content: "0" counter(s);
  color: var(--mute);
}
.steps li span:last-child {
  text-align: right;
}
.steps li.is-done {
  color: var(--dim);
}
.steps li.is-done::before,
.steps li.is-done span:last-child {
  color: var(--acc);
}
.steps li.is-now {
  color: var(--ink);
}
.steps li.is-now span:last-child {
  color: var(--acc);
  animation: blink 1s steps(1) infinite;
}
.steps li.is-bad span:last-child {
  color: #ff9d8a;
}
.note {
  font-size: 13px;
  color: var(--dim);
  padding: 12px 14px;
  box-shadow: inset 2px 0 0 var(--acc);
  background: var(--acc-dim);
  margin: 0 0 18px;
}
.note--warn {
  box-shadow: inset 2px 0 0 #ff9d8a;
  background: rgba(255, 157, 138, 0.07);
}
.error {
  color: #ff9d8a;
  font-size: 13px;
  min-height: 1.4em;
}

/* ------------------------------------------------------------------ open ceremony */
.ceremony {
  text-align: center;
  padding: 18px 0 8px;
  container-type: inline-size;
}
.ceremony__count {
  font: 400 min(112px, 11.5cqw) / 1 var(--pix);
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  margin: 10px 0 8px;
}
.ceremony__sub {
  font: 400 13px var(--pix);
  color: var(--dim);
  letter-spacing: 0.08em;
}
.reveal {
  font: 400 clamp(16px, 2vw, 22px) / 1.55 var(--mono);
  color: var(--ink);
  max-width: 46ch;
  margin: 26px auto 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}
.reveal .n {
  color: var(--line-hi);
  font-family: var(--pix);
}
.reveal-img {
  display: block;
  margin: 24px auto 0;
  max-width: min(520px, 100%);
  image-rendering: pixelated;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  color: var(--ink);
}
.overlay::backdrop {
  background: rgba(2, 5, 5, 0.9);
}
.overlay .ceremony__count {
  font-size: min(260px, 40cqw);
}
.overlay .close {
  position: absolute;
  top: 18px;
  right: 18px;
}

/* ------------------------------------------------------------------ rounds */
.beacon-hex {
  font: 400 12px / 1.5 var(--pix);
  color: var(--dim);
  overflow-wrap: anywhere;
}
.biground {
  font: 400 clamp(34px, 5vw, 56px) / 1 var(--pix);
  color: var(--acc);
  margin: 6px 0 6px;
}
.tick {
  height: 2px;
  background: var(--line);
  position: relative;
  margin: 12px 0 0;
  overflow: hidden;
}
.tick span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--acc);
  width: 0;
}

/* ------------------------------------------------------------------ manual */
.doc {
  max-width: 78ch;
}
.doc h2 {
  font: 400 15px var(--pix);
  letter-spacing: 0.08em;
  color: var(--acc);
  text-transform: uppercase;
  margin: 40px 0 12px;
}
.doc p,
.doc li {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
}
.doc b {
  color: var(--ink);
  font-weight: 500;
}
.doc pre {
  font: 400 12.5px / 1.6 var(--pix);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.doc pre .c {
  color: var(--mute);
}
.doc pre .p {
  color: var(--acc);
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin: 8px 0;
}
.doc td,
.doc th {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat;
  color: var(--dim);
}
.doc th {
  font: 400 10px var(--pix);
  letter-spacing: 0.14em;
  color: var(--mute);
  background: none;
}
.doc td:first-child {
  color: var(--ink);
  font-family: var(--pix);
  white-space: nowrap;
}
.risk {
  margin-top: 46px;
  font-size: 12px;
  color: var(--mute);
}

/* ------------------------------------------------------------------ capsule page */
.cap-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.cap-head > img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: #000;
  image-rendering: pixelated;
}
.cap-head h1 {
  font: 400 clamp(24px, 3vw, 34px) / 1.15 var(--pix);
  margin: 4px 0 8px;
}
.cap-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

/* ------------------------------------------------------------------ dialogs, toast */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.search {
  width: min(620px, calc(100vw - 32px));
  margin-top: 12vh;
}
.search::backdrop,
.wallets::backdrop {
  background: rgba(2, 5, 5, 0.82);
}
.search__box,
.wallets form {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-hi);
  padding: 14px;
}
.search__box .input {
  font-family: var(--pix);
}
.search__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.search__list li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  text-decoration: none;
  font: 400 13px var(--pix);
  color: var(--dim);
}
.search__list li a span {
  color: var(--mute);
  font-size: 11px;
}
.search__list li a[aria-selected="true"],
.search__list li a:hover {
  background: var(--acc-dim);
  color: var(--acc);
}
.search__hint {
  font: 400 11px var(--pix);
  color: var(--mute);
  margin: 10px 2px 0;
}
.wallets {
  width: min(380px, calc(100vw - 32px));
}
.wallets form {
  display: grid;
  gap: 10px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  background: var(--acc);
  color: var(--acc-ink);
  font: 400 12px var(--pix);
  letter-spacing: 0.08em;
  padding: 10px 14px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 32px);
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.is-bad {
  background: #ff9d8a;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .seal {
    grid-template-columns: 1fr;
  }
  .cap-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  :root {
    --side: 0px;
  }
  .bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(5, 7, 7, 0.96);
    box-shadow: 0 1px 0 var(--line);
  }
  .bar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 400 13px var(--pix);
    letter-spacing: 0.08em;
    color: var(--acc);
    text-decoration: none;
  }
  .bar__brand img {
    image-rendering: pixelated;
  }
  .bar__menu {
    min-height: 40px;
  }
  .side {
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    visibility: hidden;
  }
  .side.is-open {
    transform: none;
    visibility: visible;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
  }
  main {
    margin-left: 0;
    padding: 26px 16px 64px;
  }
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .module {
    grid-template-columns: 1fr;
  }
  .module__chip {
    justify-self: center;
  }
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }
  .table tr {
    padding: 12px 0;
    background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .table td {
    padding: 0;
    background: none;
  }
  .table td.wide {
    grid-column: 1 / -1;
  }
  .table--caps tr {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
  }
  .table--caps td:nth-child(1) {
    grid-area: 1 / 1;
  }
  .table--caps td:nth-child(2) {
    grid-area: 1 / 2;
  }
  .table--caps td:nth-child(6) {
    grid-area: 1 / 3;
  }
  .table--caps td:nth-child(3) {
    grid-area: 2 / 1 / 3 / 4;
  }
  .table--caps td:nth-child(4) {
    grid-area: 3 / 1 / 4 / 3;
  }
  .table--caps td:nth-child(5) {
    grid-area: 3 / 3;
    text-align: right;
  }
  .table .r {
    text-align: left;
  }
  .cipher {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .key {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .cap-head {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }
  .cap-head > img {
    width: 84px;
    height: 84px;
  }
  .pinout.is-wide {
    display: none;
  }
  .pinlist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 14px;
  }
  .pinlist div {
    min-width: 0;
  }
  .pinlist dt {
    font: 400 10px var(--pix);
    letter-spacing: 0.12em;
    color: var(--mute);
  }
  .pinlist dd {
    margin: 2px 0 0;
    font: 400 13px var(--pix);
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .pinrow {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .fr {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* grid children never push their track wider than the screen */
.board > *,
.seal > *,
.cap-body > *,
.hero > *,
.grid > *,
.module > * {
  min-width: 0;
}
