@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-condensed-700.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/barlow-condensed-800.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:900;font-display:swap;src:url(fonts/barlow-condensed-900.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-mono-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* styles.css */

/* ==========================================================================
   AFTERHOURS BROKERS — shared design system
   Carbon chassis, bone-paper tickets, CRT screens. Square mechanical borders
   only; nothing here is allowed to look like a rounded SaaS control.
   ========================================================================== */

:root {
  --carbon: #050505;
  --carbon-lift: #0c0c0b;
  --carbon-panel: #121210;
  --bone: #e6dcc1;
  --bone-dim: #b8ae95;
  --lime: #c4ef08;
  --lime-deep: #8ba806;
  --plum: #74546e;
  --plum-deep: #3d2c3a;
  --red: #e33c30;
  --dim: #34342e;
  --dim-soft: #22221e;

  --ink: var(--bone);
  --ink-quiet: #8d8b7e;

  --display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --unit: 8px;
  --gap: 24px;
  --canvas: 1600px;
  --margin: 40px;

  --border: 1px solid var(--dim);
  --border-strong: 2px solid var(--lime);
  --chassis: 10px;

  --rail-height: 56px;
  --header-height: 84px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --grain: 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='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  /* Mask for display type: mostly opaque with sparse dropouts, so headings
     read as ink on paper rather than as damaged text. */
  --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='i'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -0.42 1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23i)'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
  :root {
    --margin: 24px;
    --gap: 16px;
    --header-height: 72px;
  }
}

@media (max-width: 720px) {
  :root {
    --margin: 16px;
    --chassis: 6px;
  }
}

/* --------------------------------------------------------------- reset --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--carbon);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Layout display values must never resurrect a hidden element. */
[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

/* Keyboard focus is deliberately independent of hover and always visible. */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: #000;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: top 0.15s var(--ease);
}

.skip-link:focus {
  top: 8px;
}

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

/* ---------------------------------------------------------- typography --- */

.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

/* Printed-ink mask. Only applied to large display type, where losing a few
   percent of coverage reads as press texture rather than as damage. */
.inked {
  -webkit-mask-image: var(--ink-mask);
  mask-image: var(--ink-mask);
  -webkit-mask-size: 220px 220px;
  mask-size: 220px 220px;
}

@media (prefers-contrast: more) {
  .inked {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.mono-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.lime {
  color: var(--lime);
}

.red {
  color: var(--red);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- materials --- */

/* Bone paper with torn edges. The clip-path is a hand-set irregular
   rectangle; three variants keep repeated tickets from looking stamped. */
.paper {
  position: relative;
  background-color: var(--bone);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(120, 105, 75, 0.13), transparent 42%),
    radial-gradient(circle at 84% 82%, rgba(90, 78, 58, 0.15), transparent 38%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 4px);
  color: #14140f;
  clip-path: polygon(
    0.5% 2.4%, 11% 0.5%, 26% 2.6%, 40% 0.7%, 57% 2.8%, 72% 0.6%, 87% 2.5%, 99.5% 1%,
    98.8% 15%, 99.6% 32%, 98.6% 49%, 99.7% 67%, 98.7% 84%, 99.5% 98.6%,
    85% 99.6%, 69% 97.4%, 53% 99.5%, 37% 97.3%, 21% 99.4%, 6% 97.6%, 0.4% 99%,
    1.3% 83%, 0.3% 66%, 1.5% 48%, 0.4% 31%, 1.2% 16%
  );
}

.paper--alt {
  clip-path: polygon(
    0.4% 1.2%, 14% 2.6%, 29% 0.6%, 45% 2.7%, 61% 0.5%, 76% 2.6%, 91% 0.8%, 99.6% 2.2%,
    98.7% 18%, 99.6% 35%, 98.8% 52%, 99.5% 70%, 98.6% 86%, 99.6% 99%,
    83% 97.5%, 67% 99.5%, 51% 97.4%, 35% 99.6%, 19% 97.5%, 4% 99.4%, 0.5% 97.8%,
    1.4% 81%, 0.4% 63%, 1.3% 45%, 0.5% 28%, 1.4% 13%
  );
}

.paper--flat {
  clip-path: none;
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.09;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Halftone/registration overlay for dark chassis. Never sits over body copy. */
.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(230, 220, 193, 0.16) 0.6px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.5;
  pointer-events: none;
}

.panel {
  position: relative;
  background: var(--carbon-panel);
  border: var(--border);
}

.panel--lift {
  background: var(--carbon-lift);
}

/* CRT screens. Scanlines are confined to the screen surface so they can never
   sit on functional text elsewhere. */
.crt {
  position: relative;
  background: var(--plum-deep);
  overflow: hidden;
}

.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.55;
  pointer-events: none;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Barcode strip used on tickets and roster cards. */
.barcode {
  background-image: repeating-linear-gradient(
    90deg,
    #14140f 0 1px,
    transparent 1px 2px,
    #14140f 2px 4px,
    transparent 4px 5px,
    #14140f 5px 6px,
    transparent 6px 9px
  );
}

/* ------------------------------------------------------------ controls --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s var(--ease), filter 0.12s var(--ease);
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn--paper {
  color: #14140f;
}

.btn--lime {
  background: var(--lime);
  color: #0b0f00;
  clip-path: none;
}

.btn--ghost {
  background: transparent;
  border: var(--border);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 11px 18px;
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  opacity: 1;
}

.btn--locked {
  background: #6b6b64;
  color: #f0efe6;
  clip-path: none;
}

.btn--locked:hover {
  filter: none;
}

.btn--locked:active {
  transform: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--lime);
}

.dot--red {
  background: var(--red);
}

.dot--live {
  border-radius: 50%;
  animation: pulse 2.4s infinite var(--ease);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* -------------------------------------------------------------- shell --- */

.shell {
  width: 100%;
  max-width: var(--canvas);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(52, 52, 46, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: var(--header-height);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: none;
}

.wordmark__line {
  display: block;
  padding: 1px 8px 2px;
  background: var(--bone);
  color: #101008;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.wordmark__line--2 {
  letter-spacing: 0.16em;
  font-size: 24px;
}

.wordmark__tag {
  align-self: flex-end;
  padding: 0 6px 1px;
  background: var(--lime);
  color: #0b0f00;
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.site-nav__link {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 6px 2px;
  transition: color 0.12s var(--ease);
}

.site-nav__link:hover {
  color: var(--lime);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  clip-path: polygon(0 40%, 12% 0, 30% 60%, 48% 10%, 66% 70%, 84% 15%, 100% 55%, 100% 100%, 0 100%);
}

.connect {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bone);
  color: #14140f;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  clip-path: polygon(
    0.5% 4%, 12% 0.5%, 30% 5%, 48% 1%, 66% 5%, 84% 0.5%, 99.5% 4%,
    99% 96%, 84% 99.5%, 66% 95%, 48% 99%, 30% 95%, 12% 99.5%, 0.5% 96%
  );
}

.connect:hover {
  background: var(--lime);
}

.connect[data-state="connected"] {
  background: var(--lime);
}

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: var(--border);
  color: var(--bone);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Full-screen stamped-paper menu. Desktop labels are never squeezed into a
   row on small screens. */
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: max(var(--margin), env(safe-area-inset-top)) var(--margin) calc(var(--margin) + env(safe-area-inset-bottom));
  background: var(--carbon);
}

.nav-sheet[data-open="true"] {
  display: flex;
}

.nav-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.nav-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-sheet__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-sheet__link small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.62;
}

.nav-sheet__link[aria-current="page"] {
  background-color: var(--lime);
}

.nav-sheet__foot {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 12px;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .connect--header {
    display: none;
  }

  .wordmark__line {
    font-size: 21px;
  }

  .wordmark__line--2 {
    font-size: 19px;
  }

  .brand-lockup {
    gap: 7px;
  }

  .brand-lockup__mark {
    width: 42px;
    height: 42px;
  }
}

/* --------------------------------------------------------- status rail --- */

.status-rail {
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  background: var(--carbon-lift);
}

.status-rail__inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: var(--rail-height);
  overflow-x: auto;
  scrollbar-width: none;
}

.status-rail__inner::-webkit-scrollbar {
  display: none;
}

.status-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(16px, 2.4vw, 34px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-rail__item + .status-rail__item {
  border-left: 1px solid var(--dim);
}

.status-rail__item--end {
  margin-left: auto;
  color: var(--red);
}

.status-rail__skull {
  font-size: 15px;
  letter-spacing: 0;
}

/* ------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--dim);
  margin-top: 64px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  color: var(--bone-dim);
}

/* One row: mark, links, social, copyright. The wordmark lives in the header —
   repeating it here only made the footer tall. */
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(18px, 3vw, 40px);
}

.site-footer__mark {
  display: flex;
  flex: none;
  opacity: 0.85;
  transition: opacity 0.14s var(--ease);
}

.site-footer__mark:hover {
  opacity: 1;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 2vw, 26px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__links a:hover {
  color: var(--lime);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.social {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dim);
  color: var(--bone-dim);
  transition: color 0.14s var(--ease), border-color 0.14s var(--ease);
}

.social svg {
  width: 15px;
  height: 15px;
}

a.social:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* Rendered but inert: there is nothing to link to until the collection is
   deployed, and a link to a page that does not exist is worse than none. */
.social--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.site-footer__copy {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .site-footer__inner {
    gap: 14px 20px;
  }

  .site-footer__social {
    margin-left: 0;
  }

  .site-footer__copy {
    width: 100%;
  }
}

/* --------------------------------------------------------- notice bar --- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--dim);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.notice--warn {
  border-color: rgba(227, 60, 48, 0.55);
  color: #f0a49d;
  background: rgba(227, 60, 48, 0.06);
}

.notice--info {
  border-color: rgba(196, 239, 8, 0.35);
  color: #d7e79a;
  background: rgba(196, 239, 8, 0.05);
}

.notice__mark {
  flex: none;
  font-size: 14px;
  line-height: 1.3;
}

/* ------------------------------------------------------------- motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* landing.css */
/* ==========================================================================
   Landing — The Alley
   ========================================================================== */

/* The plate is full-bleed and sets the hero's height from its own aspect
   ratio, so every room hotspot can be positioned as a percentage of the art
   and stays locked to it at any width. */
.alley-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--dim);
}

.alley-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  align-items: center;
  gap: var(--gap);
  pointer-events: none;
}

/* -------------------------------------------------------------- copy --- */

.hero-copy {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  padding-block: clamp(24px, 4vh, 56px);
}

.hero-copy__headline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(46px, 6.6vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy__headline span {
  display: block;
}

.hero-copy__headline span:last-child {
  color: var(--lime);
}

.hero-copy__rule {
  width: 220px;
  max-width: 60%;
  height: 1px;
  margin: 28px 0 20px;
  background: repeating-linear-gradient(90deg, var(--dim) 0 6px, transparent 6px 12px);
}

.hero-copy__support {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone);
  max-width: 30ch;
}

.hero-copy__cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 32px;
}

.cta-paper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #14140f;
  transition: transform 0.14s var(--ease);
}

.cta-paper:hover {
  transform: translateY(-2px);
}

/* lime-deep is tuned for carbon; on bone paper it needs a darker olive to
   clear AA for large text. */
.cta-paper__arrow {
  color: #5c6e05;
  font-size: 0.8em;
}

/* The mint is the one thing on this page that takes money, so it is the one
   acid-lime control. */
.cta-paper--mint {
  background-color: var(--lime);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(90, 110, 0, 0.16), transparent 44%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 4px);
  color: #0b0f00;
}

.cta-paper--mint .cta-paper__arrow {
  color: #0b0f00;
}

.hero-copy__state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 40ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--bone-dim);
}

.hero-copy__state .dot {
  margin-top: 5px;
}

.hero-copy__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color 0.14s var(--ease), border-color 0.14s var(--ease);
}

.hero-copy__secondary:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ------------------------------------------------------------- scene --- */

.alley {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2752 / 1536;
  max-height: 88svh;
}

.alley__plate {
  display: block;
  width: 100%;
  height: 100%;
}

.alley__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}

/* Fades the plate into the carbon canvas on the copy side and along the top
   edge, so the art never reads as a pasted-in rectangle. */
.alley::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, var(--carbon) 0%, rgba(5, 5, 5, 0.9) 20%, rgba(5, 5, 5, 0.35) 34%, transparent 46%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.85) 0%, transparent 14%),
    linear-gradient(0deg, var(--carbon) 0%, transparent 12%);
  pointer-events: none;
}

.alley__rooms {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
}

.room {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
}

.room__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(196, 239, 8, 0);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

/* Permanent marker over the mint window. Every other room is discoverable on
   hover; the room that takes payment is labelled before anyone hovers. */
.room--primary .room__link {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(196, 239, 8, 0.4), 0 0 46px rgba(196, 239, 8, 0.3);
}

.room__pin {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  translate: -50% 0;
  z-index: 2;
  padding: 3px 9px 4px;
  background: var(--lime);
  color: #0b0f00;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(10px, 0.82vw, 14px);
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  animation: pin-float 3.4s ease-in-out infinite;
}

/* The tick that points the pin at the window below it. */
.room__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 0;
  border: 5px solid transparent;
  border-top-color: var(--lime);
}

@keyframes pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .room__pin {
    animation: none;
  }
}

.room__link:hover,
.room__link:focus-visible {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(196, 239, 8, 0.35), 0 0 42px rgba(196, 239, 8, 0.22);
}

/* The sign hangs in front of the window rather than taking a slice of it. In
   flow it stole about a fifth of the opening, which squashed a square portrait
   into a 1.66 letterbox and cropped the cats' heads off. */
.room__label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2px 6px 3px;
  background: var(--lime);
  color: #0b0f00;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(9px, 0.84vw, 14px);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--plum-deep);
}

/* Room interiors are lit by one hanging lamp, so the art is knocked back into
   the plum light and only comes up to full colour on hover or focus. */
.room__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(196, 239, 8, 0.14) 0%, transparent 34%),
    linear-gradient(0deg, rgba(10, 6, 14, 0.72) 0%, rgba(116, 84, 110, 0.34) 60%);
  mix-blend-mode: multiply;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}

.room__link:hover .room__art::after,
.room__link:focus-visible .room__art::after {
  opacity: 0.25;
}

.room__art img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sits the face just below the sign. The portraits put the eyes around a
     third of the way down, so anchoring here keeps ears and hat inside the
     opening instead of behind the lime bar. */
  object-position: center 30%;
  filter: grayscale(0.5) brightness(0.74) contrast(1.06);
  transition: filter 0.22s var(--ease), transform 0.45s var(--ease);
}

.room__link:hover .room__art img,
.room__link:focus-visible .room__art img {
  filter: grayscale(0) brightness(1.06) contrast(1.04);
  transform: scale(1.04);
}

/* One-line description, revealed on hover/focus without moving anything. */
.room__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  background: rgba(5, 5, 5, 0.9);
  border-top: 1px solid var(--lime);
  color: var(--bone);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  pointer-events: none;
}

.room__link:hover .room__hint,
.room__link:focus-visible .room__hint {
  opacity: 1;
  transform: translateY(0);
}

/* Windows light up in a staggered sequence on load. */
.room__link {
  animation: window-on 0.5s var(--ease) backwards;
  animation-delay: calc(240ms + var(--order) * 130ms);
}

@keyframes window-on {
  from {
    opacity: 0;
    filter: brightness(0.2);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

/* One slow camera push. Applied to the plate only, never to the hit targets. */
.alley__plate img {
  animation: camera-push 16s ease-in-out infinite alternate;
  transform-origin: 64% 46%;
}

@keyframes camera-push {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

/* Rain, drifting independently of the camera. */
.alley__rain {
  position: absolute;
  inset: -10% -5%;
  z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(102deg, rgba(230, 220, 193, 0.13) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(99deg, rgba(230, 220, 193, 0.08) 0 1px, transparent 1px 17px);
  background-size: 260px 260px, 400px 400px;
  opacity: 0.42;
  animation: rain 5.5s linear infinite;
  mask-image: linear-gradient(90deg, transparent 0 28%, #000 52%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 28%, #000 52%);
}

@keyframes rain {
  from { background-position: 0 0, 0 0; }
  to { background-position: -110px 260px, -170px 400px; }
}

/* ------------------------------------------------------- ticker tape --- */

/* The tape crosses the scene only. It is pinned below the headline column so
   it can never overlap the hero copy or the CTA hit area. */
.ticker {
  position: absolute;
  left: 30%;
  right: -10%;
  top: 60.5%;
  z-index: 4;
  transform: rotate(-4.2deg);
  pointer-events: none;
}

.ticker__strip {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 9px 0;
  background: var(--bone);
  color: #14140f;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.65);
  clip-path: polygon(
    0 8%, 6% 2%, 14% 9%, 23% 1%, 33% 8%, 44% 2%, 55% 9%, 66% 2%, 77% 8%, 88% 2%, 100% 7%,
    100% 93%, 89% 98%, 78% 91%, 67% 98%, 56% 91%, 45% 98%, 34% 91%, 23% 98%, 13% 91%, 5% 98%, 0 92%
  );
}

.ticker__track {
  display: flex;
  flex: none;
  gap: 34px;
  padding-inline: 17px;
  white-space: nowrap;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: ticker-run 42s linear infinite;
}

@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker__quote {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Signal red is tuned for the carbon chassis; on bone paper it needs the
   darker ink mix to clear AA. */
.ticker__up { color: #2f6b1f; }
.ticker__down { color: #b32a20; }

.ticker__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b32a20;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .alley__plate img,
  .alley__rain,
  .ticker__track,
  .room__link {
    animation: none;
  }

  .alley__rain {
    opacity: 0.2;
  }
}

/* ----------------------------------------------------- mobile layout --- */

/* Below 960 the isometric building stops being an interactive map: headline
   first, then a cropped hero, then five full-width room buttons. */
@media (max-width: 960px) {
  .alley-hero__grid {
    position: static;
    display: block;
    padding-inline: var(--margin);
  }

  .hero-copy {
    padding-block: 28px 24px;
  }

  .alley {
    aspect-ratio: 16 / 11;
    max-height: 46svh;
  }

  .alley::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.6) 0%, transparent 26%),
      linear-gradient(0deg, var(--carbon) 0%, transparent 22%);
  }

  .alley__rooms,
  .ticker {
    display: none;
  }

  .alley__plate img {
    object-position: 74% 40%;
  }
}

.room-list {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: 24px;
}

@media (max-width: 960px) {
  .room-list {
    display: grid;
  }
}

/* If the environment plate fails, the hotspots have nothing to sit on, so the
   plain list takes over at every width. */
.alley[data-art="failed"] {
  display: none;
}

.alley[data-art="failed"] ~ .room-list,
[data-art-failed] .room-list {
  display: grid;
}

.room-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: var(--border);
  background: var(--carbon-lift);
  transition: border-color 0.15s var(--ease);
}

.room-list__item:hover,
.room-list__item:focus-visible {
  border-color: var(--lime);
}

.room-list__thumb {
  flex: none;
  width: 56px;
  height: 56px;
  background: var(--plum-deep);
  overflow: hidden;
}

.room-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-list__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.room-list__title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-list__hint {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bone-dim);
}

.room-list__arrow {
  margin-left: auto;
  flex: none;
  color: var(--lime);
}

.room-list__item--primary {
  border-color: var(--lime);
  background: rgba(196, 239, 8, 0.07);
}

.room-list__tag {
  display: inline-block;
  translate: 0 -3px;
  margin-left: 6px;
  padding: 1px 7px 2px;
  background: var(--lime);
  color: #0b0f00;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  vertical-align: middle;
}

/* ------------------------------------------------------- mint signpost --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.steps__item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2vw, 26px);
  border: var(--border);
  background: var(--carbon-lift);
}

.steps__item:first-child {
  border-color: var(--lime);
}

.steps__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--lime);
}

.steps__title {
  font-size: 26px;
  line-height: 1.02;
}

.steps__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone-dim);
}

.steps__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.steps__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#how-to-mint code {
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 1px 6px;
  border: 1px solid rgba(196, 239, 8, 0.4);
}

/* --------------------------------------------------- content sections --- */

.section {
  padding-block: clamp(56px, 8vh, 96px);
  border-bottom: 1px solid var(--dim);
}

.section__head {
  display: grid;
  gap: 14px;
  max-width: 62ch;
  margin-bottom: 40px;
}

.section__title {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.9;
}

.section__lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone-dim);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.manifesto__body {
  display: grid;
  gap: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
}

.manifesto__rules {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--dim);
}

.manifesto__rules li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

.manifesto__rules b {
  color: var(--lime);
  font-weight: 600;
}

@media (max-width: 960px) {
  .manifesto {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Five lives explainer */
.lives {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.lives__stage {
  display: grid;
  gap: 0;
  border: var(--border);
  background: var(--carbon-lift);
}

.lives__frame {
  position: relative;
  aspect-ratio: 1;
  background: var(--plum-deep);
  overflow: hidden;
}

.lives__frame img {
  width: 500%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  image-rendering: auto;
}

.lives__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--dim);
}

.lives__numeral {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.lives__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lives__note {
  grid-column: 2;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  min-height: 2.8em;
}

@media (max-width: 960px) {
  .lives {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .lives {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ the tape --- */

.slots {
  display: grid;
  border: var(--border);
}

.slots__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 100px) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 15px 18px;
}

.slots__row + .slots__row {
  border-top: 1px solid var(--dim);
}

.slots__row--top {
  background: rgba(196, 239, 8, 0.06);
}

.slots__numeral {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.slots__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slots__cap {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.slots__row--top .slots__cap {
  color: var(--lime);
}

.slots__left {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: right;
}

@media (max-width: 720px) {
  .slots__row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .slots__left {
    grid-column: 2 / -1;
    text-align: left;
  }
}

.loop {
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: 1px solid var(--dim);
}

.loop__title {
  font-size: 26px;
  margin-bottom: 16px;
}

.loop__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

@media (max-width: 960px) {
  .loop__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .loop__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.loop__steps li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 14px;
  border-top: 2px solid var(--lime);
}

.loop__steps b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lime);
}

.loop__steps span {
  font-size: 12px;
  line-height: 1.65;
  color: var(--bone-dim);
}

.loop__fine {
  max-width: 78ch;
  margin-top: var(--gap);
  font-size: 12px;
  line-height: 1.7;
  color: var(--bone-dim);
}

/* Provenance / release verification */
.provenance {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 960px) {
  .provenance {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gates {
  display: grid;
  gap: 0;
  border: var(--border);
}

.gates__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gates__row + .gates__row {
  border-top: 1px solid var(--dim);
}

.gates__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.gates__state[data-ok="true"] { color: var(--lime); }
.gates__state[data-ok="false"] { color: var(--red); }


/* mint.css */
/* ==========================================================================
   Mint Desk — CRT chassis + order ticket
   ========================================================================== */

.desk {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  gap: var(--gap);
  align-items: stretch;
  padding-block: clamp(20px, 3vh, 32px);
}

@media (max-width: 960px) {
  .desk {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------- CRT cabinet --- */

.cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: var(--chassis);
  background:
    linear-gradient(180deg, #1b1b18 0%, #0d0d0b 55%, #131311 100%);
  border: 1px solid #2a2a25;
  box-shadow: inset 0 1px 0 rgba(230, 220, 193, 0.06), 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* The bezel grows to whatever height the order ticket sets, so the two halves
   of the desk stay the same height without letterboxing the chassis. */
.cabinet__bezel {
  position: relative;
  flex: 1;
  display: flex;
  padding: 14px;
  background: #0a0a09;
  border: 1px solid #26261f;
}

/* No aspect-ratio here on desktop: the ticket column sets the row height and
   the screen fills it. An aspect ratio would force the width instead and push
   the chassis over the ticket. */
.cabinet__screen {
  position: relative;
  flex: 1;
  min-height: 340px;
  min-width: 0;
  background: var(--plum-deep);
  border-radius: 18px / 26px;
  overflow: hidden;
}

@media (max-width: 960px) {
  .cabinet__screen {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

.cabinet__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 0;
}

.cabinet__feed {
  position: absolute;
  inset: 0;
}

.cabinet__video,
.cabinet__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* The still is the poster for anyone who blocks autoplay, and the layer the
   video paints over once it starts. */
.cabinet__video {
  z-index: 1;
}

/* WCAG 2.2.2: the loop runs longer than five seconds, so it needs a control. */
/* The loop is meant to just run, so the control is not painted over the art.
   It stays in the DOM and appears the moment it is focused with a keyboard,
   which is what keeps WCAG 2.2.2 satisfied without a permanent button sitting
   on the screen. */
.cabinet__toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  background: rgba(5, 5, 5, 0.82);
  border: 1px solid var(--dim);
  color: var(--bone);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.14s var(--ease), color 0.14s var(--ease), opacity 0.14s var(--ease);
  opacity: 0;
  pointer-events: none;
}

.cabinet__toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* A visitor who asked for reduced motion gets the still and no autoplay, so
   the control is the only way to start the feed and must always be visible. */
@media (prefers-reduced-motion: reduce) {
  .cabinet__toggle {
    opacity: 1;
    pointer-events: auto;
  }
}

.cabinet__toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* Right-pointing triangle while paused, two bars while playing. */
.cabinet__toggle-icon {
  width: 9px;
  height: 11px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cabinet__toggle[aria-pressed="true"] .cabinet__toggle-icon {
  clip-path: polygon(0 0, 32% 0, 32% 100%, 0 100%, 0 0, 68% 0, 100% 0, 100% 100%, 68% 100%, 68% 0);
}

.cabinet__caption {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #26261f;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bone-dim);
}

.cabinet__osd {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 2;
  display: grid;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.cabinet__osd-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cabinet__screws {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cabinet__screws span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a42, #17170f 70%);
}

.cabinet__screws span:nth-child(1) { left: 6px; top: 6px; }
.cabinet__screws span:nth-child(2) { right: 6px; top: 6px; }
.cabinet__screws span:nth-child(3) { left: 6px; bottom: 6px; }
.cabinet__screws span:nth-child(4) { right: 6px; bottom: 6px; }

/* -------------------------------------------------------- order side --- */

.order {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  min-width: 0;
}

.ticket {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 34px);
  padding-right: clamp(50px, 5vw, 74px);
}

.ticket__barcode {
  position: absolute;
  top: 8%;
  right: clamp(16px, 1.8vw, 26px);
  bottom: 8%;
  width: clamp(18px, 1.8vw, 26px);
  opacity: 0.85;
}

.ticket__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ticket__glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(44px, 4vw, 58px);
  aspect-ratio: 1;
  background: #14140f;
  color: var(--lime);
}

.ticket__glyph svg {
  width: 60%;
  height: 60%;
}

.ticket__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #14140f;
}

.ticket__rows {
  display: grid;
}

.trow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding-block: 6px;
  border-bottom: 1px dashed rgba(20, 20, 15, 0.45);
  color: #14140f;
}

.trow__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trow__value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.trow__value--muted {
  color: #55524a;
}

.trow__value--alert {
  color: #b32a20;
}

/* Quantity stepper — mechanical, square, tabular. */
.stepper {
  display: inline-flex;
  align-items: stretch;
  background: #14140f;
  color: var(--bone);
}

.stepper button {
  width: 38px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.stepper button:hover:not(:disabled) {
  background: var(--lime);
  color: #0b0f00;
}

.stepper button:disabled {
  color: #85857a;
  cursor: not-allowed;
}

.stepper__value {
  display: grid;
  place-items: center;
  min-width: 52px;
  padding-inline: 8px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Segmented payment selector */
.segmented {
  display: inline-flex;
  border: 1px solid #14140f;
}

.segmented button {
  padding: 9px 18px;
  background: #514f47;
  border: 0;
  color: #e2ddcf;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.segmented button + button {
  border-left: 1px solid #14140f;
}

.segmented button[aria-pressed="true"] {
  background: var(--lime);
  color: #0b0f00;
}

.segmented button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ticket__action {
  width: 100%;
  margin-top: 22px;
  padding: 20px;
  font-size: clamp(20px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ticket__action svg {
  width: 0.9em;
  height: 0.9em;
  flex: none;
}

.ticket__foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: var(--border);
}

.ticket__foot > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.ticket__foot > div + div {
  border-left: 1px solid var(--dim);
}

.ticket__foot b {
  display: block;
  color: var(--bone);
  font-size: 16px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .ticket__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket__foot > div + div {
    border-left: 0;
    border-top: 1px solid var(--dim);
  }
}

/* Transaction status region */
.txstatus {
  display: grid;
  gap: 10px;
}

/* ----------------------------------------------------------- console --- */

.console {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 320px) 150px;
  gap: 0;
  margin-top: var(--gap);
  border: 1px solid #26261f;
  background: linear-gradient(180deg, #171714 0%, #0c0c0a 100%);
}

.console > * {
  padding: 16px;
}

.console > * + * {
  border-left: 1px solid #26261f;
}

.console__speaker {
  display: grid;
  place-items: center;
}

.console__speaker span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-image: radial-gradient(circle, #3b3b33 0.9px, transparent 1px);
  background-size: 6px 6px;
  border: 1px solid #2c2c25;
}

.console__section-label {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: center;
}

.channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.channel {
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 12px 6px;
  background: linear-gradient(180deg, #2b2b25 0%, #1a1a16 100%);
  border: 1px solid #3a3a32;
  border-bottom-width: 3px;
  color: var(--bone);
  text-align: center;
  transition: transform 0.1s var(--ease), background 0.14s var(--ease);
}

.channel:hover {
  background: linear-gradient(180deg, #37372e 0%, #22221d 100%);
}

.channel:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

.channel[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime-deep);
  color: #0b0f00;
}

.channel__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
}

.channel__name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.console__meters {
  display: grid;
  gap: 12px;
  align-content: start;
}

.meter__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.meter__bar {
  display: flex;
  gap: 2px;
  height: 14px;
}

.meter__bar i {
  flex: 1;
  background: #26261f;
}

.meter__bar i[data-on="true"] {
  background: var(--lime);
}

.meter__bar i[data-on="true"][data-hot="true"] {
  background: var(--red);
}

.console__mode {
  border: 1px solid #26261f;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}

.console__chain {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.console__chain svg {
  width: 44px;
  color: var(--lime);
}

.console__chain-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

@media (max-width: 1280px) {
  .console {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  }

  .console__speaker,
  .console__chain {
    display: none;
  }

  .console > * + * {
    border-left: 1px solid #26261f;
  }
}

@media (max-width: 720px) {
  .console {
    grid-template-columns: minmax(0, 1fr);
  }

  .console > * + * {
    border-left: 0;
    border-top: 1px solid #26261f;
  }

  .channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The final transaction action docks above the safe-area inset on mobile.
   It is taken out of flow rather than made sticky: a sticky element inside the
   ticket lifts over the rows above it and covers the wallet state. */
@media (max-width: 720px) {
  .ticket__action {
    position: fixed;
    left: var(--margin);
    right: var(--margin);
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    width: auto;
    margin-top: 0;
    /* A carbon frame so the dock reads as chassis rather than as part of the
       paper ticket it floats over. */
    box-shadow: 0 0 0 10px var(--carbon), 0 16px 40px rgba(0, 0, 0, 0.85);
  }

  /* Reserves the space the docked action would otherwise have occupied. */
  .ticket {
    padding-bottom: 34px;
  }

  .order {
    padding-bottom: 84px;
  }
}

/* ------------------------------------------------------- safety copy --- */

.safety {
  display: grid;
  gap: 12px;
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: 1px solid var(--dim);
}

.safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--gap);
}

.safety__item {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone-dim);
}

.safety__item h3 {
  font-size: 20px;
  color: var(--bone);
}

/* Approval detail table, shown before any ERC-20 approval is requested. */
.approval {
  display: grid;
  gap: 0;
  border: var(--border);
  font-size: 12px;
}

.approval__row {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
}

.approval__row + .approval__row {
  border-top: 1px solid var(--dim);
}

.approval__row dt {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.approval__row dd {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}


/* tape.css */
/* The Tape — collection-wide board, margin-call desk, vault receipts.
   Class names are namespaced away from dossier.css's .tape* block: both files
   are concatenated into app.css, and the dossier owns .tape for its per-broker
   panel. */

.floor {
  padding-block: 48px 96px;
}

/* ------------------------------------------------------------- hero --- */

.floor__hero {
  max-width: 62ch;
  margin-bottom: 56px;
}

.floor__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bone-dim);
}

.floor__title {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.floor__standfirst {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--ink-quiet);
  line-height: 1.55;
}

/* ---------------------------------------------------------- sections --- */

.floor__section {
  margin-top: 64px;
  padding-top: 28px;
  border-top: var(--border);
}

.floor__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 24px;
}

.floor__section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lime);
}

.floor__section-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.floor__fine {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-quiet);
}

/* ------------------------------------------------------------ board --- */

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.slot {
  padding: 18px 16px 16px;
  border: 1px solid var(--dim);
  background: var(--carbon-panel);
  min-width: 0;
}

/* A tier with no slots left is the whole point of the board. */
.slot[data-full="true"] {
  border-color: var(--red);
}

.slot__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.slot__numeral {
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--plum);
}

.slot__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.slot__count {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.slot__left {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

.slot[data-full="true"] .slot__left {
  color: var(--red);
}

.slot__of {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

.slot__bar {
  margin-top: 14px;
  height: 6px;
  background: var(--dim-soft);
  overflow: hidden;
}

.slot__bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 420ms var(--ease);
}

.slot[data-full="true"] .slot__bar > i {
  background: var(--red);
}

.slot__taken {
  margin-top: 8px;
  color: var(--bone-dim);
}

/* ------------------------------------------------- margin call desk --- */

/* The desk sits on .paper, which sets a dark ink colour on a bone ground.
   Everything below therefore uses the paper palette — the bone/lime tokens are
   for the carbon panels and are unreadable here. */
.call {
  padding: 24px;
}

.call__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #55524a;
}

.call__row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.call__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  background: var(--carbon);
  border: 1px solid var(--dim);
}

.call__input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.call__help {
  margin-top: 8px;
  color: #55524a;
}

.call__status {
  margin-top: 16px;
}

.call__stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--dim);
}

.call__stat {
  padding: 12px 14px;
  min-width: 0;
}

.call__stat + .call__stat {
  border-left: 1px solid var(--dim);
}

.call__stat dt {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #55524a;
}

.call__stat dd {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.call__stat dd[data-tone="risk"] {
  color: #b32a20;
}

.call__stat dd[data-tone="ok"] {
  color: #3f5406;
}

.call__action {
  margin-top: 20px;
}

.call__fine {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 12px;
  line-height: 1.6;
  color: #55524a;
}

/* --------------------------------------------------------- receipts --- */

.receipts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.receipt {
  padding: 20px;
  min-width: 0;
}

.receipt__label {
  color: #55524a;
}

/* Inherits .paper's dark ink: the figure carries weight through size, not
   through a colour that would vanish against bone. */
.receipt__value {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.receipt__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #55524a;
}

.split {
  margin-top: 10px;
  list-style: none;
}

.split li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
}

.split li + li {
  border-top: 1px solid rgba(20, 20, 15, 0.16);
}

.split__pct {
  font-size: 18px;
  font-weight: 700;
  min-width: 3.5ch;
}

.split__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #55524a;
}

/* ---------------------------------------------------------- denials --- */

.floor__section--plain {
  border-top-color: var(--dim-soft);
}

.denials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 32px;
}

.denial h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.denial p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-quiet);
}

/* ------------------------------------------------------ narrow view --- */

@media (max-width: 900px) {
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipts {
    grid-template-columns: 1fr;
  }

  .call__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call__stat:nth-child(3) {
    border-left: 0;
  }

  .call__stat:nth-child(n + 3) {
    border-top: 1px solid var(--dim);
  }
}

@media (max-width: 520px) {
  .slots {
    grid-template-columns: 1fr;
  }

  .call {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot__bar > i {
    transition: none;
  }
}


/* roster.css */
/* ==========================================================================
   Broker Roster — masthead, filter rail, card grid
   ========================================================================== */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
  margin-block: var(--gap);
  padding: clamp(14px, 2vw, 24px) clamp(16px, 2.4vw, 30px);
  border: var(--border);
  background: var(--carbon-lift);
}

.masthead__title {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.85;
  letter-spacing: -0.01em;
}

.masthead__lede {
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lime);
}

.masthead__stats {
  display: flex;
  margin-left: auto;
}

.masthead__stat {
  padding-inline: clamp(14px, 2vw, 30px);
  text-align: center;
}

.masthead__stat + .masthead__stat {
  border-left: 1px solid var(--dim);
}

.masthead__stat b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.masthead__stat span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.masthead__stat--anomaly b,
.masthead__stat--anomaly span {
  color: var(--red);
}

@media (max-width: 960px) {
  .masthead__stats {
    margin-left: 0;
    width: 100%;
    border-top: 1px solid var(--dim);
    padding-top: 14px;
  }

  .masthead__stat {
    flex: 1;
  }

  .masthead__stat:first-child {
    padding-left: 0;
  }
}

/* --------------------------------------------------------- workspace --- */

.roster {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 960px) {
  .roster {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------- filter rail --- */

.filters {
  display: grid;
  gap: 10px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.type-switch {
  display: grid;
  gap: 10px;
}

.type-switch__btn {
  padding: 13px 18px;
  border: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #14140f;
  cursor: pointer;
  transition: filter 0.12s var(--ease);
}

.type-switch__btn:hover {
  filter: brightness(1.05);
}

.type-switch__btn[aria-pressed="true"] {
  background-color: var(--lime);
}

.filters__title {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dim);
  text-align: center;
}

.facet {
  border: var(--border);
  background: var(--carbon-lift);
}

.facet__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.facet__summary::-webkit-details-marker {
  display: none;
}

.facet__summary::after {
  content: "+";
  font-size: 16px;
  line-height: 1;
  color: var(--bone-dim);
}

.facet[open] > .facet__summary::after {
  content: "\2212";
}

.facet__count {
  min-width: 20px;
  padding: 1px 6px;
  background: var(--lime);
  color: #0b0f00;
  font-size: 10px;
  text-align: center;
}

.facet__body {
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid var(--dim);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.facet__option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
  font-size: 12px;
  cursor: pointer;
}

.facet__option:hover {
  color: var(--lime);
}

.facet__option input {
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--lime);
}

.facet__option span:last-child {
  margin-left: auto;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}

.facet__option input:disabled + span {
  opacity: 0.45;
}

.clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.clear-filters:hover {
  border-color: var(--red);
}

/* ------------------------------------------------------------- board --- */

.board {
  border: var(--border);
  background: var(--carbon-lift);
  padding: clamp(12px, 1.6vw, 20px);
  min-width: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: transparent;
  border: var(--border);
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search input::placeholder {
  color: #85857a;
}

.search input:focus {
  border-color: var(--lime);
  outline: none;
}

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 14px;
  color: var(--bone-dim);
  pointer-events: none;
}

.search__error {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red);
}

.select {
  position: relative;
  flex: none;
}

.select select {
  appearance: none;
  padding: 11px 38px 11px 14px;
  background: transparent;
  border: var(--border);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.select select:focus {
  border-color: var(--lime);
  outline: none;
}

.select select option {
  background: var(--carbon);
  color: var(--bone);
}

.select__caret {
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 11px;
  color: var(--bone-dim);
  pointer-events: none;
}

.view-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.view-switch__set {
  display: inline-flex;
  border: var(--border);
}

.view-switch__btn {
  padding: 9px 16px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.view-switch__btn + .view-switch__btn {
  border-left: 1px solid var(--dim);
}

.view-switch__btn[aria-pressed="true"] {
  background: var(--lime);
  color: #0b0f00;
}

.result-count {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- grid --- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 0;
  color: #14140f;
  transition: transform 0.14s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.14s var(--ease);
}

.card:hover::before,
.card:focus-visible::before {
  border-color: var(--lime-deep);
}

.card[data-type="anomaly"]::before {
  border-color: rgba(227, 60, 48, 0.8);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
}

.card__id {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.card[data-type="anomaly"] .card__id {
  color: #b32a20;
}

.card__flag {
  padding: 2px 7px;
  /* Darker than signal red so 9px reversed type still clears AA. */
  background: #c22a20;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__barcode {
  width: 26px;
  height: 26px;
  opacity: 0.8;
}

.card__art {
  position: relative;
  aspect-ratio: 1;
  background: var(--plum-deep);
  overflow: hidden;
}

.card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1.4fr);
  border-top: 1px solid rgba(20, 20, 15, 0.45);
  margin-top: 8px;
}

.card__cell {
  padding: 6px 6px 9px;
  min-width: 0;
}

.card__cell + .card__cell {
  border-left: 1px solid rgba(20, 20, 15, 0.35);
}

.card__cell dt {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5d5a50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__cell dd {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card[data-type="anomaly"] .card__cell--rank dt,
.card[data-type="anomaly"] .card__cell--rank dd {
  color: #b32a20;
}

/* -------------------------------------------------------------- list --- */

.list {
  display: grid;
  gap: 0;
  border: var(--border);
}

.list__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 76px) minmax(0, 1fr) minmax(0, 1fr) 96px;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  color: var(--bone);
  transition: background 0.12s var(--ease);
}

.list__row + .list__row {
  border-top: 1px solid var(--dim);
}

.list__row:hover {
  background: rgba(196, 239, 8, 0.06);
}

.list__row--head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: var(--carbon-panel);
}

.list__row--head:hover {
  background: var(--carbon-panel);
}

.list__thumb {
  width: 40px;
  height: 40px;
  background: var(--plum-deep);
  overflow: hidden;
}

.list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list__id {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.list__row[data-type="anomaly"] .list__id {
  color: var(--red);
}

.list__cell {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list__rank {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

@media (max-width: 720px) {
  .list__row {
    grid-template-columns: 44px minmax(0, 1fr) 84px;
  }

  .list__row > .list__cell:nth-of-type(2) {
    display: none;
  }
}

/* -------------------------------------------------------- pagination --- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--dim);
  flex-wrap: wrap;
}

.pager button {
  min-width: 44px;
  padding: 9px 12px;
  background: transparent;
  border: var(--border);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease);
}

.pager button:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}

.pager button[aria-current="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #0b0f00;
}

.pager button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pager__gap {
  padding-inline: 6px;
  color: var(--bone-dim);
}

/* ------------------------------------------------------- empty state --- */

.empty {
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--dim);
}

.empty h3 {
  font-size: 30px;
}

.empty p {
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone-dim);
}

/* --------------------------------------------- mobile filter sheet --- */

/* Defaults first: the mobile rules below override them, and a later default
   would win over the media query at equal specificity. */
.filters__handle {
  display: none;
}

.filter-scrim {
  display: none;
}

.filter-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: var(--border);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 960px) {
  .filter-trigger {
    display: flex;
  }

  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 80;
    max-height: 82svh;
    overflow-y: auto;
    padding: 20px var(--margin) calc(20px + env(safe-area-inset-bottom));
    background: var(--carbon);
    border-top: 2px solid var(--lime);
    transform: translateY(100%);
    transition: transform 0.22s var(--ease);
  }

  .filters[data-open="true"] {
    transform: translateY(0);
  }

  .filters__handle {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 4px 12px;
    margin-bottom: 6px;
    background: var(--carbon);
  }

  .filter-scrim[data-open="true"] {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 79;
    background: rgba(5, 5, 5, 0.7);
  }

  /* The sheet's own header already says Filters. */
  .filters__title {
    display: none;
  }
}


/* dossier.css */
/* ==========================================================================
   Broker Dossier — portrait, trait file, evolution, chain of custody
   ========================================================================== */

.dossier {
  display: grid;
  grid-template-columns: minmax(0, 31fr) minmax(0, 30fr) minmax(0, 39fr);
  gap: var(--gap);
  align-items: start;
  padding-block: var(--gap);
}

@media (max-width: 1280px) {
  .dossier {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .evolution {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .dossier {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------- portrait --- */

.portrait {
  display: grid;
  gap: 0;
  padding: 10px;
  border: var(--border);
  background: var(--carbon-lift);
}

.portrait__head {
  padding: 9px 14px;
  background: var(--lime);
  color: #0b0f00;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portrait[data-type="anomaly"] .portrait__head {
  background: var(--red);
  color: #fff;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 1;
  background: var(--plum-deep);
  overflow: hidden;
}

.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stacked over the frozen art so the swap needs no layout change. */
.portrait__sealed {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.portrait__verify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.portrait__verify[data-state="verified"] {
  border-color: var(--lime);
  color: var(--lime);
}

.portrait__verify[data-state="unverified"] {
  border-style: dashed;
}

.portrait__verify svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.portrait__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--dim);
}

.portrait__nav a,
.portrait__nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.portrait__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portrait__nav span[aria-disabled="true"] {
  color: #7d7d70;
}

.portrait__nav-next {
  justify-content: flex-end;
}

.portrait__counter {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------- trait file --- */

.file {
  position: relative;
  padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 28px) clamp(28px, 3vw, 40px);
  color: #14140f;
}

.file__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.file__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.stamp {
  flex: none;
  padding: 5px 11px;
  border: 2px solid #b32a20;
  color: #b32a20;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.file__rows {
  display: grid;
}

.frow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(20, 20, 15, 0.4);
}

.frow__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.frow__value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.frow__value--unminted {
  color: #b32a20;
}

.file__section-title {
  margin-top: 26px;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.file__note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed rgba(20, 20, 15, 0.45);
  font-size: 12px;
  line-height: 1.6;
  color: #3d3a32;
}

/* ------------------------------------------------------- five lives --- */

.evolution {
  border: var(--border);
  background: var(--carbon-lift);
  padding: clamp(14px, 1.6vw, 20px);
}

.evolution__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.evolution__title {
  font-size: clamp(26px, 2.4vw, 34px);
  color: var(--lime);
  line-height: 1;
}

.evolution__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.evolution__lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--dim);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--red);
}

.evolution__lock svg {
  flex: none;
  width: 15px;
  color: var(--bone-dim);
}

/* Set only after a chain read confirms the contract will accept evolve(). */
.evolution__lock[data-open="true"] {
  border-color: rgba(196, 239, 8, 0.45);
  color: var(--lime);
}

.evolution__lock[data-open="true"] svg {
  display: none;
}

.timeline {
  display: grid;
  gap: 8px;
}

.stage {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border: 1px solid var(--dim);
}

.stage[data-current="true"] {
  border-color: var(--lime);
}

.stage__frame {
  position: relative;
  width: 74px;
  height: 74px;
  background: var(--plum-deep);
  overflow: hidden;
  border: 1px solid transparent;
}

.stage[data-current="true"] .stage__frame {
  border-color: var(--lime);
}

/* The five tiers are one filmstrip image; each stage shows a single frame. */
.stage__frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 100%;
  max-width: none;
  translate: calc(var(--frame) * -20%) 0;
}

.stage__body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stage__numeral {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}

.stage[data-current="true"] .stage__numeral {
  border-color: var(--lime);
  color: var(--lime);
}

.stage__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage[data-current="true"] .stage__name {
  color: var(--lime);
}

.stage__state {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.stage__lock {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dim);
  color: var(--bone-dim);
}

.stage__lock svg {
  width: 14px;
}

.evolution__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--bone-dim);
}

/* ---------------------------------------------------- evolve control --- */

.evolve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--dim);
  background: var(--carbon-panel);
}

.evolve[data-ready="true"] {
  border-color: var(--lime);
}

.evolve__body {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 260px;
}

.evolve__state {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.evolve[data-ready="true"] .evolve__state {
  color: var(--lime);
}

.evolve__note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--bone-dim);
}

.evolve__action {
  flex: none;
  padding: 13px 24px;
  font-size: 20px;
}

/* Countdowns are read character by character; tabular figures stop the row
   from twitching as the digits change. */
.evolve__countdown {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}

@media (max-width: 480px) {
  .evolve__action {
    width: 100%;
  }
}

/* ------------------------------------------------------------- the tape --- */

.tape {
  margin-top: 14px;
  border: 1px solid var(--dim);
  background: var(--carbon-panel);
}

.tape[data-ready="true"] {
  border-color: var(--lime);
}

/* Set when the token is inside the grace window or already lapsable: the
   holder is about to lose a slot they paid for and the panel should say so
   louder than everything else on the page. */
.tape[data-risk="true"] {
  border-color: var(--red);
}

.tape__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dim);
}

.tape__title {
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--lime);
}

.tape__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.tape__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tape__stat {
  padding: 12px 16px;
  min-width: 0;
}

.tape__stat + .tape__stat {
  border-left: 1px solid var(--dim);
}

.tape__stat dt {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.tape__stat dd {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.tape__stat dd[data-tone="risk"] {
  color: var(--red);
}

.tape__stat dd[data-tone="ok"] {
  color: var(--lime);
}

@media (max-width: 720px) {
  .tape__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tape__stat:nth-child(2n) {
    border-left: 1px solid var(--dim);
  }

  .tape__stat:nth-child(n + 3) {
    border-top: 1px solid var(--dim);
  }
}

.tape__status {
  margin: 0 16px;
}

.tape__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
}

@media (max-width: 480px) {
  .tape__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tape__action {
  padding: 13px 18px;
  font-size: 18px;
}

.tape__action--ghost:not(:disabled) {
  background: transparent;
  border: 1px solid var(--lime);
  color: var(--lime);
}

.tape__action--ghost:disabled {
  background: transparent;
  border: 1px solid var(--dim);
  color: #6f6f66;
  cursor: not-allowed;
}

.tape__fine {
  padding: 0 16px 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--bone-dim);
}

/* ---------------------------------------------------- chain of custody --- */

.custody {
  display: grid;
  grid-template-columns: minmax(0, 250px) repeat(4, minmax(0, 1fr)) minmax(0, 210px);
  gap: 0;
  margin-top: var(--gap);
  border: var(--border);
  background: var(--carbon-lift);
}

.custody > * {
  padding: 16px 18px;
  min-width: 0;
}

.custody > * + * {
  border-left: 1px solid var(--dim);
}

@media (max-width: 1280px) {
  .custody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custody > * + * {
    border-left: 0;
  }

  .custody > *:nth-child(2n) {
    border-left: 1px solid var(--dim);
  }

  .custody > *:nth-child(n + 3) {
    border-top: 1px solid var(--dim);
  }
}

@media (max-width: 480px) {
  .custody {
    grid-template-columns: minmax(0, 1fr);
  }

  .custody > *:nth-child(2n) {
    border-left: 0;
  }

  .custody > * + * {
    border-top: 1px solid var(--dim);
  }
}

.custody__intro {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.custody__intro svg {
  width: 34px;
  color: var(--lime);
}

.custody__intro h2 {
  font-size: 20px;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.custody__intro p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--bone-dim);
}

.hashfield__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hashfield__box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 11px;
  border: 1px solid var(--dim);
}

.hashfield__value {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--dim);
  color: var(--lime);
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.copy-btn:hover {
  background: var(--lime);
  color: #0b0f00;
}

.copy-btn svg {
  width: 13px;
}

.custody__state {
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: right;
}

.custody__state b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.custody__state span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.back-roster {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--gap);
  padding: 14px 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #14140f;
}

.back-roster:hover {
  filter: brightness(1.05);
}

/* ------------------------------------------- the broker's own wallet --- */
/* Sits on the carbon ground beside custody, not on paper, so the bone and
   lime tokens are the right ones here. */

.wallet {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--dim);
  background: var(--carbon-panel);
}

.wallet__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet__intro svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--lime);
}

.wallet__intro h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wallet__intro p {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.wallet__stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--dim);
}

.wallet__stat {
  padding: 12px 14px;
  min-width: 0;
}

.wallet__stat + .wallet__stat {
  border-left: 1px solid var(--dim);
}

.wallet__stat dt {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.wallet__stat dd {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.wallet__stat dd[data-tone="ok"] {
  color: var(--lime);
}

.wallet__status {
  margin-top: 14px;
}

.wallet__actions {
  margin-top: 14px;
}

.wallet__fine {
  margin-top: 14px;
  max-width: 68ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-quiet);
}

@media (max-width: 560px) {
  .wallet__stats {
    grid-template-columns: 1fr;
  }

  .wallet__stat + .wallet__stat {
    border-left: 0;
    border-top: 1px solid var(--dim);
  }
}
