@font-face {
  font-family: "Jacquard 12";
  src: url("./fonts/Jacquard12-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("./fonts/Silkscreen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("./fonts/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("./fonts/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("./fonts/DMMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f2eadc;
  --paper-bright: #fffdf5;
  --paper-shadow: #dfd1bd;
  --ink: #292824;
  --ink-soft: #5f5b53;
  --ink-faint: #8d8578;
  --crane: #b83b2f;
  --crane-dark: #7f241e;
  --crane-light: #d86b5b;
  --kraft: #b89469;
  --kraft-dark: #74573b;
  --rule: rgba(41, 40, 36, 0.22);
  --rule-strong: rgba(41, 40, 36, 0.72);
  --display: "Jacquard 12", "Silkscreen", monospace;
  --pixel: "Silkscreen", monospace;
  --mono: "DM Mono", "SFMono-Regular", Menlo, monospace;
  --shadow: 7px 7px 0 rgba(41, 40, 36, 0.16);
  --dock-width: clamp(370px, 31vw, 430px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 87% 4%, rgba(184, 59, 47, 0.09), transparent 27%),
    linear-gradient(115deg, var(--paper-bright), var(--paper) 42%, #eadfce);
  font: 400 15px/1.6 var(--mono);
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(41, 40, 36, 0.035) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(184, 59, 47, 0.018) 7px 8px);
}

::selection {
  color: var(--paper-bright);
  background: var(--crane);
}

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

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

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--crane);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 200;
  padding: 9px 13px;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--paper-bright);
  font: 10px var(--pixel);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.printer-air {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 11px 11px, rgba(41, 40, 36, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 59px 37px, rgba(184, 59, 47, 0.055) 0 1px, transparent 1.5px);
  background-size: 67px 61px, 101px 83px;
}

.registration-grid {
  position: fixed;
  inset: 12px;
  z-index: 95;
  pointer-events: none;
}

.registration-grid i {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.34;
}

.registration-grid i::before,
.registration-grid i::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.registration-grid i::before {
  left: 8px;
  top: 0;
  width: 1px;
  height: 18px;
}

.registration-grid i::after {
  left: 0;
  top: 8px;
  width: 18px;
  height: 1px;
}

.registration-grid i:nth-child(1) {
  left: 0;
  top: 0;
}

.registration-grid i:nth-child(2) {
  right: 0;
  top: 0;
}

.registration-grid i:nth-child(3) {
  left: 0;
  bottom: 0;
}

.registration-grid i:nth-child(4) {
  right: 0;
  bottom: 0;
}

.press-layout {
  display: grid;
  grid-template-columns: var(--dock-width) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.scroll-world {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: clip;
}

.section-code,
.field-label {
  margin: 0;
  color: var(--crane);
  font: 700 9px/1.45 var(--pixel);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-code::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 7px;
  background:
    linear-gradient(var(--crane), var(--crane)) left top / 4px 2px no-repeat,
    linear-gradient(var(--crane), var(--crane)) left bottom / 8px 2px no-repeat,
    linear-gradient(var(--crane), var(--crane)) right 2px top 2px / 2px 5px no-repeat;
  transform: translateY(1px);
}

.float-nav {
  position: fixed;
  z-index: 80;
  top: 17px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - var(--dock-width) - 42px);
  min-height: 46px;
  padding: 5px 6px 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.94);
  box-shadow: 4px 4px 0 var(--crane);
  backdrop-filter: blur(12px);
}

.nav-stamp {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 8px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
}

.nav-name {
  font: 700 10px var(--pixel);
  letter-spacing: 0.05em;
}

.fold-glyph {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 22px;
  flex: none;
}

.fold-glyph i {
  position: absolute;
  display: block;
  background: var(--crane);
  clip-path: polygon(0 0, 100% 24%, 76% 100%, 18% 78%);
}

.fold-glyph i:nth-child(1) {
  left: 0;
  top: 7px;
  width: 23px;
  height: 13px;
}

.fold-glyph i:nth-child(2) {
  left: 7px;
  top: 0;
  width: 12px;
  height: 11px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 82%);
}

.fold-glyph i:nth-child(3) {
  right: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--kraft);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-links a {
  padding: 9px 7px;
  color: var(--ink-soft);
  font: 400 8px var(--pixel);
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--paper-bright);
  background: var(--ink);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

select,
input,
textarea {
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  outline: none;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--crane);
  box-shadow: 0 0 0 2px rgba(184, 59, 47, 0.14);
}

.float-nav select {
  width: 82px;
  height: 33px;
  padding: 4px 6px;
  font: 9px var(--pixel);
  border-color: var(--rule);
}

.ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 17px;
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  background: var(--paper-bright);
  font: 700 10px/1.35 var(--pixel);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-align: center;
  transition: transform 120ms steps(2), box-shadow 120ms steps(2), background 120ms;
}

.ink-button:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.ink-button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.ink-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.ink-button-hot {
  color: var(--paper-bright);
  background: var(--crane);
}

.ink-button-hot:hover {
  background: var(--crane-dark);
}

.ink-button-line {
  background: transparent;
}

.ink-button-small {
  min-height: 32px;
  padding: 6px 10px;
  border-width: 1px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 8px;
}

.ink-button-wide {
  width: 100%;
  min-height: 48px;
}

.nav-connect {
  min-height: 33px;
  padding: 6px 10px;
  border-width: 1px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 8px;
}

/* Hero */

.hero-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  padding: clamp(100px, 13vh, 150px) clamp(28px, 4.2vw, 72px) 58px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 96%, rgba(41, 40, 36, 0.08) 96% 97%, transparent 97%),
    radial-gradient(ellipse at 82% 30%, rgba(184, 59, 47, 0.12), transparent 38%),
    linear-gradient(150deg, var(--paper-bright), var(--paper) 57%, #eadac5);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(90deg, rgba(41, 40, 36, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(41, 40, 36, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 77%);
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: -110px;
  top: 17%;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 2px dashed rgba(184, 59, 47, 0.28);
  transform: rotate(17deg);
}

.hero-serial {
  position: absolute;
  right: 20px;
  top: 92px;
  display: grid;
  gap: 12px;
  color: var(--ink-faint);
  font: 7px var(--pixel);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
  animation: fold-in 560ms steps(5) both;
}

.hero-wordmark {
  margin: 11px 0 5px;
  font: 400 clamp(72px, 9.65vw, 164px)/0.78 var(--display);
  letter-spacing: -0.025em;
  color: var(--paper-bright);
  -webkit-text-stroke: clamp(2px, 0.28vw, 5px) var(--ink);
  text-shadow:
    5px 5px 0 var(--kraft),
    9px 9px 0 rgba(184, 59, 47, 0.72);
  transform: scaleX(0.93);
  transform-origin: left center;
  white-space: nowrap;
}

.hero-statement {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.32em;
  margin-top: 19px;
  font: 700 clamp(24px, 3.45vw, 51px)/1 var(--pixel);
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero-statement span:first-child {
  color: var(--crane);
}

.hero-statement span:last-child {
  padding-left: 0.18em;
  color: var(--ink);
}

.hero-strip {
  position: relative;
  z-index: 3;
  height: clamp(142px, 22vh, 224px);
  margin: clamp(22px, 3vh, 40px) 0 28px;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow:
    8px 8px 0 var(--crane),
    14px 14px 0 rgba(41, 40, 36, 0.15);
  transform: rotate(-0.55deg);
  overflow: hidden;
  animation: strip-in 720ms 120ms steps(6) both;
}

.hero-strip::before,
.hero-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 7px;
  background:
    repeating-linear-gradient(90deg, var(--paper) 0 8px, transparent 8px 16px);
}

.hero-strip::before {
  top: 0;
}

.hero-strip::after {
  bottom: 0;
}

.hero-strip-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 4s ease;
}

.hero-strip:hover .hero-strip-image {
  transform: scale(1.025);
}

.hero-strip figcaption {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 13px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--paper-bright);
  font: 7px var(--pixel);
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 var(--ink);
}

.tape {
  position: absolute;
  top: -5px;
  z-index: 5;
  width: 72px;
  height: 22px;
  background: rgba(242, 234, 220, 0.77);
  border-inline: 1px solid rgba(41, 40, 36, 0.16);
  backdrop-filter: blur(1px);
}

.tape-left {
  left: 8%;
  transform: rotate(-5deg);
}

.tape-right {
  right: 8%;
  transform: rotate(4deg);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: end;
}

.hero-note {
  max-width: 720px;
}

.hero-lede {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(41, 40, 36, 0.06) 26px 27px),
    var(--paper-bright);
  box-shadow: 5px 5px 0 var(--kraft);
}

.hero-ledger div {
  min-width: 0;
  padding: 11px 12px 10px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-ledger div:nth-child(2n) {
  border-right: 0;
}

.hero-ledger div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.hero-ledger dt {
  color: var(--ink-faint);
  font: 7px/1.4 var(--pixel);
  text-transform: uppercase;
}

.hero-ledger dd {
  margin: 4px 0 0;
  font: 700 clamp(14px, 1.5vw, 20px)/1.1 var(--pixel);
  white-space: nowrap;
}

.fold-seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  display: flex;
  background:
    linear-gradient(135deg, transparent 0 50%, var(--paper-bright) 50%) 0 0 / 13px 13px,
    linear-gradient(45deg, var(--paper-bright) 0 50%, transparent 50%) 0 0 / 13px 13px;
}

.fold-seam i {
  flex: 1;
  border-right: 1px solid var(--rule);
}

@keyframes fold-in {
  0% {
    opacity: 0;
    transform: translateY(18px) skewY(1.4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

@keyframes strip-in {
  0% {
    opacity: 0;
    transform: translateX(30px) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-0.55deg);
  }
}

/* Story and tier meters */

.chapter-stage,
.archive-stage,
.exchange-stage,
.faq-stage {
  position: relative;
  padding: clamp(82px, 10vw, 138px) clamp(28px, 4.2vw, 72px);
  border-bottom: 2px solid var(--ink);
}

.chapter-stage {
  background:
    linear-gradient(102deg, rgba(184, 148, 105, 0.12), transparent 38%),
    var(--paper-bright);
}

.stage-margin {
  position: absolute;
  left: 13px;
  top: 94px;
  color: var(--ink-faint);
  font: 7px var(--pixel);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.stage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.36fr);
  gap: 12px 36px;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.stage-heading .section-code {
  grid-column: 1 / -1;
}

.stage-heading h2,
.archive-head h2,
.exchange-head h2,
.reward-head h2,
.faq-head h2 {
  margin: 0;
  font: 400 clamp(42px, 5.7vw, 83px)/0.88 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.stage-lede {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.65;
}

.chapter-book {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 1020px;
  margin: 0 auto 76px;
}

.chapter-book::before {
  content: "";
  position: absolute;
  left: 41px;
  top: 12px;
  bottom: 12px;
  border-left: 1px dashed var(--crane);
  opacity: 0.45;
}

.chapter-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 29px);
  align-items: start;
  width: 78%;
  padding: 23px 42px 27px 0;
  border-top: 1px solid var(--rule);
  background: linear-gradient(90deg, transparent 0 84%, rgba(184, 148, 105, 0.08));
}

.chapter-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.chapter-card:nth-child(2) {
  width: 70%;
  margin-left: 20%;
}

.chapter-card:nth-child(3) {
  width: 72%;
  margin-left: 8%;
}

.chapter-card:nth-child(4) {
  width: 62%;
  margin-left: 31%;
}

.chapter-index {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 71px;
  height: 62px;
  color: transparent;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  -webkit-text-stroke: 1px var(--crane);
  font: 400 61px/1 var(--display);
  box-shadow: 3px 3px 0 var(--paper-shadow);
}

.chapter-card h3 {
  margin: 0 0 9px;
  font: 700 clamp(16px, 1.7vw, 22px)/1.25 var(--pixel);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.chapter-card p {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
}

.crease-corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 38px;
  background:
    linear-gradient(135deg, transparent 0 49%, var(--rule) 50% 51%, var(--paper) 52%),
    linear-gradient(315deg, transparent 0 48%, var(--crane-light) 49% 50%, var(--paper-bright) 51%);
}

.creased-arrow {
  position: absolute;
  right: 4px;
  top: 24px;
  width: 37px;
  height: 22px;
  background: var(--crane);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 50%);
  opacity: 0.8;
}

.tier-dossier {
  position: relative;
  padding: clamp(23px, 3vw, 40px);
  color: var(--paper-bright);
  background:
    linear-gradient(90deg, transparent 0 98%, rgba(255, 253, 245, 0.06) 98%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 253, 245, 0.045) 31px 32px),
    var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--crane);
}

.tier-dossier::after {
  content: "RARITY METERS";
  position: absolute;
  right: 16px;
  top: 13px;
  color: rgba(255, 253, 245, 0.28);
  font: 7px var(--pixel);
  letter-spacing: 0.12em;
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 253, 245, 0.28);
}

.dossier-head .section-code {
  flex: none;
  color: var(--crane-light);
  font: 700 16px var(--pixel);
}

.dossier-head p:last-child {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 253, 245, 0.72);
  font-size: 13px;
}

.tier-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.fold-meter {
  position: relative;
  display: grid;
  grid-template-columns: 47px 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 80px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 253, 245, 0.15);
}

.fold-meter:nth-child(-n + 2) {
  border-top: 0;
}

.fold-meter-index {
  color: var(--tier);
  font: 7px/1.5 var(--pixel);
}

.fold-meter-index b {
  display: block;
  margin-top: 4px;
  color: var(--paper-bright);
  font: 10px var(--pixel);
}

.fold-meter img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 253, 245, 0.34);
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

.fold-meter-copy {
  min-width: 0;
}

.fold-meter-copy h3 {
  margin: 0;
  overflow: hidden;
  color: var(--paper-bright);
  font: 700 9px/1.35 var(--pixel);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fold-meter-copy p,
.fold-meter-copy small {
  display: block;
  margin: 3px 0 0;
  color: rgba(255, 253, 245, 0.6);
  font: 7px/1.4 var(--pixel);
}

.fold-meter-bar {
  height: 6px;
  margin-top: 7px;
  padding: 1px;
  border: 1px solid rgba(255, 253, 245, 0.24);
}

.fold-meter-bar i {
  display: block;
  width: var(--fill);
  height: 100%;
  min-width: 3px;
  background: var(--tier);
}

/* Model register */

.archive-stage {
  background:
    linear-gradient(90deg, rgba(41, 40, 36, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(41, 40, 36, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 33px 33px;
}

.archive-head,
.exchange-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}

.archive-head > div,
.exchange-head > div {
  max-width: 780px;
}

.archive-head h2,
.exchange-head h2 {
  margin: 6px 0 12px;
}

.sheet-archive {
  display: grid;
  gap: 38px;
}

.sheet-run {
  position: relative;
}

.sheet-run-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font: 7px var(--pixel);
  text-transform: uppercase;
}

.sheet-run-head i {
  width: 10px;
  height: 10px;
  background: var(--tier);
  box-shadow: 3px 0 0 rgba(41, 40, 36, 0.18);
}

.sheet-run-head b {
  margin-left: auto;
  color: var(--ink-faint);
  font-weight: 400;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}

.sheet-grid-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 740px;
}

.archive-sheet {
  position: relative;
  min-width: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper-bright);
  box-shadow: 3px 3px 0 var(--paper-shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 180ms steps(2), box-shadow 180ms;
}

.archive-sheet:nth-child(3n + 1) {
  --tilt: -0.45deg;
}

.archive-sheet:nth-child(4n + 2) {
  --tilt: 0.55deg;
}

.archive-sheet:hover {
  z-index: 2;
  transform: translateY(-5px) rotate(0);
  box-shadow: 6px 7px 0 var(--tier);
}

.sheet-picture {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.sheet-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04) hue-rotate(var(--hue, 0deg));
}

.sheet-number {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 5px;
  color: var(--paper-bright);
  background: var(--ink);
  font: 6px var(--pixel);
}

.sheet-caption {
  min-width: 0;
  padding: 9px 9px 10px;
}

.sheet-caption > span {
  display: block;
  color: var(--tier);
  font: 6px var(--pixel);
  text-transform: uppercase;
}

.sheet-caption strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font: 700 8px/1.4 var(--pixel);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sheet-caption small {
  display: block;
  margin-top: 3px;
  color: var(--ink-faint);
  font: 7px var(--mono);
}

.art-missing {
  position: relative;
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(184, 59, 47, 0.26) 50%, transparent 51%),
    repeating-linear-gradient(45deg, var(--paper) 0 8px, var(--paper-shadow) 8px 9px);
}

.art-missing::after {
  content: "FOLD";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font: 18px var(--display);
}

/* Market and drawer */

.exchange-stage {
  background:
    radial-gradient(ellipse at 92% 8%, rgba(184, 59, 47, 0.12), transparent 30%),
    #e9ddcb;
}

.fee-stamp {
  flex: none;
  padding: 12px 16px;
  color: var(--crane-dark);
  border: 2px solid var(--crane);
  background: rgba(255, 253, 245, 0.58);
  font: 700 9px var(--pixel);
  text-transform: uppercase;
  transform: rotate(-2deg);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.exchange-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(300px, 0.73fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.stall-ledger {
  min-width: 0;
}

.ledger-state {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font: 9px var(--pixel);
}

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

.stall-ticket {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-width: 0;
  min-height: 118px;
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 12px), rgba(41, 40, 36, 0.05) calc(100% - 12px)),
    var(--paper-bright);
  box-shadow: 3px 3px 0 var(--paper-shadow);
}

.ticket-art {
  position: relative;
  min-height: 118px;
  border-right: 1px dashed var(--rule-strong);
  overflow: hidden;
}

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

.ticket-art span {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 2px 4px;
  color: var(--paper-bright);
  background: var(--ink);
  font: 6px var(--pixel);
}

.ticket-copy {
  min-width: 0;
  padding: 10px 10px 9px;
}

.ticket-meta {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: var(--ink-faint);
  font: 6px var(--pixel);
  text-transform: uppercase;
}

.ticket-copy > strong {
  display: block;
  margin: 5px 0;
  overflow: hidden;
  font: 700 8px/1.4 var(--pixel);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 7px;
}

.ticket-price b {
  color: var(--crane);
  font: 700 10px var(--pixel);
}

.ticket-price span {
  overflow: hidden;
  color: var(--ink-faint);
  font: 6px var(--pixel);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stall-ticket .ink-button {
  width: 100%;
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--rule-strong);
  background: rgba(255, 253, 245, 0.38);
  text-align: center;
  font: 8px/1.7 var(--pixel);
}

.listing-bench {
  margin-top: 18px;
  padding: clamp(16px, 2vw, 25px);
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.bench-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 17px;
}

.bench-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.micro-copy {
  margin: 5px 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.origami-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 5px;
  max-height: 254px;
  margin-top: 6px;
  padding-right: 4px;
  overflow: auto;
}

.origami-picker button {
  min-width: 0;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.origami-picker button.selected {
  border-color: var(--crane);
  box-shadow: 0 0 0 2px var(--crane);
}

.origami-picker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.origami-picker span {
  display: block;
  padding: 3px 4px;
  overflow: hidden;
  font: 6px var(--pixel);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.price-form input {
  width: 100%;
  padding: 10px;
  font: 11px var(--mono);
}

.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 3px;
}

.seller-actions .ink-button {
  flex: 1 1 42%;
}

.inline-feedback {
  display: none;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.inline-feedback.show {
  display: block;
}

.drawer-ledger {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2vw, 25px);
  color: var(--paper-bright);
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 253, 245, 0.022) 18px 19px),
    var(--ink);
  box-shadow: 8px 8px 0 var(--crane);
}

.drawer-ledger::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--crane) 0 8px, var(--paper-bright) 8px 16px);
}

.drawer-head {
  padding: 7px 0 18px;
  border-bottom: 1px dashed rgba(255, 253, 245, 0.25);
}

.drawer-head .section-code {
  color: var(--crane-light);
}

.drawer-head h3 {
  margin: 5px 0 7px;
  font: 700 17px var(--pixel);
  text-transform: uppercase;
}

.drawer-head > p:last-child {
  margin: 0;
  color: rgba(255, 253, 245, 0.63);
  font-size: 11px;
}

.drawer-reward {
  margin: 17px 0 0;
  padding: 16px;
  color: var(--ink);
  background: var(--crane-light);
  border: 1px solid var(--paper-bright);
}

.drawer-reward .field-label {
  color: var(--crane-dark);
}

.claim-amount {
  display: block;
  margin: 3px 0 12px;
  font: 400 clamp(44px, 5vw, 68px)/0.9 var(--display);
  color: var(--paper-bright);
  -webkit-text-stroke: 1px var(--crane-dark);
  text-shadow: 3px 3px 0 var(--crane-dark);
}

.drawer-reward .ink-button {
  width: 100%;
}

.invite-slip {
  margin-top: 16px;
  padding: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}

.invite-slip > p:not(.section-code) {
  margin: 6px 0 11px;
  color: var(--ink-soft);
  font-size: 10px;
}

.copy-field {
  display: flex;
  margin-top: 5px;
}

.copy-field input {
  flex: 1;
  min-width: 0;
  padding: 7px;
  border-right: 0;
  font: 8px var(--mono);
}

.copy-field .ink-button {
  min-height: 34px;
  flex: none;
}

.invite-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 11px;
  border-block: 1px solid var(--rule);
}

.invite-counts div {
  padding: 9px 0;
}

.invite-counts div + div {
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}

.invite-counts span {
  display: block;
  color: var(--ink-faint);
  font: 6px var(--pixel);
  text-transform: uppercase;
}

.invite-counts strong {
  display: block;
  margin-top: 3px;
  font: 700 13px var(--pixel);
}

.drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 11px;
}

.drawer-toolbar p {
  margin: 0;
  color: rgba(255, 253, 245, 0.66);
  font-size: 9px;
}

.drawer-toolbar .ink-button {
  flex: none;
  color: var(--paper-bright);
  border-color: var(--paper-bright);
  background: transparent;
  box-shadow: 2px 2px 0 var(--paper-bright);
}

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

.drawer-item {
  position: relative;
  min-width: 0;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--paper-bright);
  overflow: hidden;
}

.drawer-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: hue-rotate(var(--hue, 0deg)) saturate(0.91);
}

.drawer-item.sealed img {
  object-fit: contain;
  padding: 14px;
  background: var(--paper);
}

.drawer-copy {
  padding: 7px;
  border-top: 1px solid var(--rule);
}

.drawer-copy small {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: var(--ink-faint);
  font: 6px var(--pixel);
  text-transform: uppercase;
}

.drawer-copy strong {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  font: 700 7px var(--pixel);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.drawer-copy .ink-button {
  width: 100%;
  min-height: 27px;
  margin-top: 4px;
  padding: 4px;
  font-size: 6px;
}

.sealed-stamp {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 2;
  padding: 3px 4px;
  color: var(--paper-bright);
  background: var(--crane);
  font: 6px var(--pixel);
}

.tier-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--paper-bright);
}

/* Rewards */

.reward-stage {
  position: relative;
  padding: clamp(82px, 10vw, 138px) clamp(28px, 4.2vw, 72px);
  color: var(--paper-bright);
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 0 71%, rgba(255, 253, 245, 0.05) 71% 72%, transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 50px, rgba(255, 253, 245, 0.04) 50px 51px),
    var(--crane);
}

.reward-stage .stage-margin {
  color: rgba(255, 253, 245, 0.52);
}

.reward-stage .section-code {
  color: var(--paper-bright);
}

.reward-head {
  max-width: 900px;
  margin-bottom: 44px;
}

.reward-head h2 {
  margin: 8px 0 15px;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--paper-bright);
}

.reward-head .stage-lede {
  max-width: 760px;
  color: rgba(255, 253, 245, 0.9);
}

.reward-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.ramp-board,
.supply-board {
  position: relative;
  min-width: 0;
  padding: clamp(19px, 2.4vw, 30px);
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 var(--ink);
}

.board-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule-strong);
  font: 700 9px var(--pixel);
  text-transform: uppercase;
}

.board-label strong {
  color: var(--crane);
  font-size: 11px;
}

.ramp-board > p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.ramp-graph {
  position: relative;
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 28px 4px 0;
  padding: 0 4px;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0 35px, rgba(41, 40, 36, 0.055) 35px 36px);
}

.ramp-graph span {
  position: relative;
  flex: 1;
  height: var(--h);
  min-height: 9px;
  border-top: 2px solid var(--crane-dark);
  background:
    repeating-linear-gradient(0deg, var(--crane) 0 5px, var(--crane-light) 5px 10px);
}

.ramp-graph span.peak {
  background:
    repeating-linear-gradient(0deg, var(--kraft-dark) 0 5px, var(--kraft) 5px 10px);
}

.ramp-graph b {
  position: absolute;
  left: 50%;
  bottom: -18px;
  color: var(--ink-faint);
  font: 7px var(--mono);
  font-weight: 400;
  transform: translateX(-50%);
}

.supply-board {
  display: grid;
  align-content: start;
}

.supply-orbit {
  position: relative;
  width: min(190px, 65%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
  margin: 11px auto 25px;
  background: conic-gradient(var(--crane) 0 19.417%, var(--kraft) 19.417% 59.433%, var(--ink-soft) 59.433% 100%);
  border: 2px solid var(--ink);
  clip-path: polygon(13% 0, 87% 0, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0 87%, 0 13%);
}

.supply-orbit::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  clip-path: polygon(13% 0, 87% 0, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0 87%, 0 13%);
}

.supply-orbit span {
  position: relative;
  z-index: 1;
  text-align: center;
  font: 400 27px var(--display);
}

.supply-orbit small {
  display: block;
  color: var(--crane);
  font: 7px var(--pixel);
}

.supply-notes {
  display: grid;
  gap: 9px;
}

.supply-notes div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.supply-notes span {
  color: var(--ink-soft);
  font-size: 10px;
}

.supply-notes strong {
  grid-column: 2;
  color: var(--ink);
  font: 8px var(--pixel);
}

.swatch {
  width: 7px;
  height: 7px;
  margin-top: 1px;
}

.swatch-mint {
  background: var(--crane);
}

.swatch-invite {
  background: var(--kraft);
}

.swatch-left {
  background: var(--ink-soft);
}

/* FAQ and footer */

.faq-stage {
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 82% 20%, rgba(184, 59, 47, 0.35), transparent 25%),
    var(--ink);
}

.faq-stage .stage-margin {
  color: rgba(255, 253, 245, 0.35);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 92px;
}

.faq-head .section-code {
  color: var(--crane-light);
}

.faq-head h2 {
  margin-top: 9px;
  color: var(--paper-bright);
  text-shadow: 3px 3px 0 var(--crane);
}

.faq-fold-mark {
  position: relative;
  width: 92px;
  height: 92px;
  margin-top: 35px;
  border: 1px dashed rgba(255, 253, 245, 0.32);
  transform: rotate(45deg);
}

.faq-fold-mark i {
  position: absolute;
  width: 17px;
  height: 17px;
  background: var(--crane);
}

.faq-fold-mark i:nth-child(1) {
  left: 10px;
  top: 10px;
}

.faq-fold-mark i:nth-child(2) {
  right: 10px;
  top: 25px;
  background: var(--kraft);
}

.faq-fold-mark i:nth-child(3) {
  left: 28px;
  bottom: 10px;
  background: var(--paper);
}

.faq-fold-mark i:nth-child(4) {
  right: 17px;
  bottom: 21px;
  width: 7px;
  height: 7px;
}

.faq-list {
  border-top: 1px solid rgba(255, 253, 245, 0.24);
}

.question-slip {
  border-bottom: 1px solid rgba(255, 253, 245, 0.24);
}

.question-slip summary {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 21px;
  gap: 10px;
  align-items: center;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
  font: 700 11px/1.5 var(--pixel);
}

.question-slip summary::-webkit-details-marker {
  display: none;
}

.question-no {
  color: var(--crane-light);
  font: 8px var(--mono);
}

.question-slip summary::after {
  content: "+";
  color: var(--crane-light);
  font: 17px var(--pixel);
}

.question-slip[open] summary::after {
  content: "−";
}

.question-slip p {
  margin: -3px 26px 18px 46px;
  color: rgba(255, 253, 245, 0.67);
  font-size: 11px;
  line-height: 1.75;
}

.press-footer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 35px;
  padding: 45px clamp(28px, 4.2vw, 72px) 68px;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(41, 40, 36, 0.035) 22px 23px),
    var(--paper);
}

.footer-mark a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-mark strong {
  font: 400 23px var(--display);
  letter-spacing: 0.02em;
}

.footer-mark p {
  margin: 13px 0 4px;
  color: var(--ink-soft);
  font: 7px var(--pixel);
}

.footer-mark > span {
  color: var(--crane);
  font: 7px var(--pixel);
  text-transform: uppercase;
}

.footer-records {
  display: grid;
  grid-template-columns: 1fr 1fr 0.84fr;
  gap: 18px;
}

.footer-records div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.footer-records span {
  color: var(--ink-faint);
  font: 6px var(--pixel);
  text-transform: uppercase;
}

.footer-records code {
  color: var(--ink);
  font: 8px var(--mono);
  overflow-wrap: anywhere;
}

.footer-link {
  padding: 0;
  border: 0;
  color: var(--crane);
  background: transparent;
  font: 8px var(--mono);
  text-align: left;
}

/* Fixed mint dock */

.mint-dock {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 60;
  height: 100vh;
  padding: 14px 18px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--paper-bright);
  border-right: 2px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(255, 253, 245, 0.035) 97%),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255, 253, 245, 0.025) 29px 30px),
    var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--crane) var(--ink);
}

.mint-dock::-webkit-scrollbar {
  width: 5px;
}

.mint-dock::-webkit-scrollbar-thumb {
  background: var(--crane);
}

.dock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  margin: 0 0 12px 2px;
  color: var(--paper-bright);
}

.dock-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.dock-brand strong {
  font: 400 23px/0.9 var(--display);
  letter-spacing: 0.015em;
}

.dock-brand small {
  color: rgba(255, 253, 245, 0.5);
  font: 6px var(--pixel);
  letter-spacing: 0.09em;
}

.mint-console {
  position: relative;
  padding: 19px 18px 16px;
  color: var(--ink);
  border: 2px solid var(--paper-bright);
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(41, 40, 36, 0.028) 25px 26px),
    var(--paper-bright);
  box-shadow: 6px 6px 0 var(--crane);
}

.mint-console::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, transparent 0 49%, var(--paper-shadow) 50% 51%, var(--paper) 52%);
}

.console-perf {
  position: absolute;
  left: 12px;
  right: 12px;
  top: -6px;
  height: 10px;
  background: radial-gradient(circle, var(--paper-bright) 0 2px, transparent 2.5px) 0 0 / 11px 10px;
}

.console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 2px;
}

.console-head h2 {
  margin: 4px 0 0;
  font: 700 14px/1.25 var(--pixel);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 6px;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font: 6px/1.3 var(--pixel);
  text-align: right;
  text-transform: uppercase;
}

.status-chip.live {
  color: var(--paper-bright);
  border-color: var(--crane);
  background: var(--crane);
}

.status-chip.warn {
  color: var(--paper-bright);
  border-color: var(--ink);
  background: var(--ink);
}

.status-pulse {
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--kraft);
  box-shadow: 0 0 0 1px rgba(41, 40, 36, 0.25);
}

.status-chip.live .status-pulse {
  background: var(--paper-bright);
  animation: blink 1.8s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.mint-count-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

.mint-count-line > span:last-child {
  max-width: 47%;
  color: var(--ink-faint);
  font: 6px/1.5 var(--pixel);
  text-align: right;
  text-transform: uppercase;
}

.print-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.print-count strong {
  font: 400 clamp(32px, 3.4vw, 45px)/0.8 var(--display);
  color: var(--crane);
}

.print-count small {
  color: var(--ink-faint);
  font: 8px var(--mono);
}

.paper-meter {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 2px;
  height: 10px;
  margin: 10px 0 12px;
}

.paper-meter i {
  background: var(--paper-shadow);
}

.paper-meter i.on {
  background: var(--crane);
  box-shadow: inset 0 -2px 0 var(--crane-dark);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.countdown div {
  padding: 7px 3px 6px;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.countdown div:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  color: var(--ink);
  font: 700 13px/1 var(--pixel);
}

.countdown span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-faint);
  font: 5px var(--pixel);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mint-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 13px;
  border: 1px solid var(--ink);
}

.mint-tab {
  min-width: 0;
  min-height: 34px;
  padding: 6px 3px;
  overflow: hidden;
  color: var(--ink-soft);
  border: 0;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  font: 700 7px var(--pixel);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-tab:last-child {
  border-right: 0;
}

.mint-tab[aria-selected="true"] {
  color: var(--paper-bright);
  background: var(--ink);
  box-shadow: inset 0 -3px 0 var(--crane);
}

.mint-panels {
  border: 1px solid var(--rule-strong);
  border-top: 0;
  background: rgba(242, 234, 220, 0.54);
}

.mint-panel {
  padding: 12px;
}

.unit-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--rule);
}

.unit-price span {
  color: var(--ink-faint);
  font: 6px var(--pixel);
  text-transform: uppercase;
}

.unit-price strong {
  font: 700 11px var(--pixel);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.stepper {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
}

.stepper button {
  width: 29px;
  height: 31px;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  font: 15px var(--mono);
}

.stepper button:hover {
  color: var(--paper-bright);
  background: var(--crane);
}

.stepper input {
  width: 40px;
  height: 31px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--rule-strong);
  text-align: center;
  font: 10px var(--pixel);
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.stepper .stepper-max {
  width: auto;
  padding: 0 7px;
  color: var(--crane);
  border-left: 1px solid var(--rule-strong);
  font: 7px var(--pixel);
}

.lane-notes {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.lane-notes p {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 7px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.lane-notes b {
  color: var(--crane);
  font: 7px var(--pixel);
}

.free-route {
  display: grid;
  gap: 10px;
}

.route-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.route-badge {
  padding: 3px 5px;
  color: var(--paper-bright);
  background: var(--crane);
  font: 6px var(--pixel);
}

.route-copy p,
.route-rule {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.slot-line {
  padding: 9px;
  border: 1px solid var(--rule);
  background: var(--paper-bright);
}

.slot-line > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font: 7px var(--pixel);
}

.slot-line b {
  color: var(--crane);
  font-weight: 400;
}

.slot-line i {
  font-style: normal;
}

.slot-bar {
  height: 5px;
  margin-top: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.slot-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--crane);
  transition: width 300ms steps(8);
}

.slot-line small {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font: 6px/1.45 var(--pixel);
}

.x-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.x-lane h3 {
  margin: 4px 0 0;
  font: 700 10px/1.3 var(--pixel);
  text-transform: uppercase;
}

.x-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--paper-bright);
  background: var(--ink);
  font: 700 12px var(--pixel);
}

.x-desc {
  margin: 7px 0 10px;
  color: var(--ink-soft);
  font-size: 9px;
}

.x-lane .field-label {
  display: block;
  margin: 9px 0 4px;
}

.x-lane textarea {
  width: 100%;
  min-height: 93px;
  padding: 8px;
  resize: vertical;
  font: 7px/1.55 var(--mono);
}

.x-lane input {
  width: 100%;
  padding: 8px;
  font: 8px var(--mono);
}

.inline-actions,
.x-check-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inline-actions {
  margin-top: 6px;
}

.x-check-row {
  margin-top: 8px;
}

.x-check-row .ink-button {
  flex: 1;
}

.turnstile-box {
  margin-top: 7px;
}

.turnstile-box:empty {
  display: none;
}

.x-state-note {
  margin: 7px 0 0;
  color: var(--ink-faint);
  font: 6px/1.5 var(--pixel);
}

.eligibility {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 7px 8px;
  color: var(--ink-soft);
  border-left: 3px solid var(--crane);
  background: rgba(184, 59, 47, 0.075);
  font-size: 9px;
}

.eligibility i {
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--crane);
}

.eligibility p {
  margin: 0;
}

.eligibility.eligible {
  border-color: var(--kraft-dark);
  background: rgba(184, 148, 105, 0.16);
}

.mint-order {
  margin-top: 9px;
}

.order-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 9px;
  border: 1px solid var(--rule);
}

.order-lines div {
  min-width: 0;
  padding: 7px 8px;
}

.order-lines div + div {
  border-left: 1px solid var(--rule);
}

.order-lines span {
  display: block;
  color: var(--ink-faint);
  font: 5px var(--pixel);
  text-transform: uppercase;
}

.order-lines b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font: 8px var(--pixel);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-lines div:last-child b {
  color: var(--crane);
}

.tx-feedback {
  display: none;
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid var(--rule);
  font: 8px/1.5 var(--pixel);
}

.tx-feedback.show {
  display: block;
}

.tx-feedback.ok {
  color: var(--kraft-dark);
  border-color: var(--kraft);
  background: rgba(184, 148, 105, 0.12);
}

.tx-feedback.err {
  color: var(--crane-dark);
  border-color: var(--crane);
  background: rgba(184, 59, 47, 0.08);
}

.referral-chip {
  margin: 7px 0 0;
  color: var(--crane);
  font: 6px var(--pixel);
}

.console-foot {
  margin: 11px 0 0;
  color: var(--ink-faint);
  font: 6px/1.5 var(--pixel);
  text-transform: uppercase;
}

.mini-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 9px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}

.mini-odd {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.mini-odd i {
  width: 4px;
  height: 4px;
  background: var(--tier);
}

.mini-odd span {
  overflow: hidden;
  color: var(--ink-soft);
  font: 5px var(--pixel);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-odd b {
  color: var(--ink-faint);
  font: 6px var(--mono);
  font-weight: 400;
}

.x-claim-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  padding: 13px;
  color: var(--paper-bright);
  border: 1px dashed rgba(255, 253, 245, 0.44);
}

.x-claim-card p:last-child {
  margin: 5px 0 0;
  color: rgba(255, 253, 245, 0.6);
  font-size: 9px;
}

.x-claim-card .section-code {
  color: var(--crane-light);
}

.x-claim-card .ink-button {
  color: var(--paper-bright);
  border-color: var(--paper-bright);
  background: transparent;
  box-shadow: 2px 2px 0 var(--paper-bright);
}

/* Wallet and toast */

.wallet-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(41, 40, 36, 0.7);
  backdrop-filter: blur(6px);
}

.wallet-sheet.show {
  display: grid;
}

.wallet-paper {
  width: min(390px, 100%);
  padding: 17px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 8px 8px 0 var(--crane);
}

.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--rule-strong);
  font: 700 10px var(--pixel);
  text-transform: uppercase;
}

.icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 17px var(--mono);
}

.wallet-options {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.wallet-options .ink-button {
  width: 100%;
  justify-content: flex-start;
}

.paper-toast {
  position: fixed;
  left: calc(var(--dock-width) + (100vw - var(--dock-width)) / 2);
  bottom: 23px;
  z-index: 180;
  max-width: min(420px, calc(100vw - 34px));
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  color: var(--paper-bright);
  border: 2px solid var(--paper-bright);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--crane);
  font: 8px/1.5 var(--pixel);
  transform: translate(-50%, 14px);
  transition: opacity 160ms, transform 160ms;
}

.paper-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 1380px) {
  .nav-links a {
    padding-inline: 5px;
    font-size: 7px;
  }

  .float-nav {
    right: 14px;
  }

  .exchange-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(285px, 0.9fr);
  }
}

@media (max-width: 1180px) {
  :root {
    --dock-width: 370px;
  }

  .nav-links a:nth-child(4),
  .nav-links a:nth-child(6) {
    display: none;
  }

  .stage-heading {
    grid-template-columns: 1fr;
  }

  .chapter-card,
  .chapter-card:nth-child(2),
  .chapter-card:nth-child(3),
  .chapter-card:nth-child(4) {
    width: 88%;
    margin-left: 9%;
  }

  .exchange-grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .drawer-ledger {
    margin-top: 8px;
  }

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

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

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

@media (max-width: 960px) {
  .press-layout {
    display: flex;
    flex-direction: column;
  }

  .scroll-world {
    display: contents;
  }

  .hero-stage,
  .chapter-stage,
  .archive-stage,
  .exchange-stage,
  .reward-stage,
  .faq-stage,
  .press-footer,
  .mint-dock {
    width: 100%;
  }

  .hero-stage {
    order: 1;
  }

  .mint-dock {
    position: relative;
    top: auto;
    height: auto;
    order: 2;
    overflow: visible;
    padding: 22px max(16px, calc((100vw - 620px) / 2)) 42px;
    border-top: 2px solid var(--ink);
    border-right: 0;
  }

  .chapter-stage {
    order: 3;
  }

  .archive-stage {
    order: 4;
  }

  .exchange-stage {
    order: 5;
  }

  .reward-stage {
    order: 6;
  }

  .faq-stage {
    order: 7;
  }

  .press-footer {
    order: 8;
  }

  .mint-console {
    box-shadow: 8px 8px 0 var(--crane);
  }

  .x-claim-card {
    max-width: 620px;
    margin-inline: auto;
  }

  .float-nav {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .nav-links {
    display: none;
  }

  .nav-tools {
    margin-left: auto;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-wordmark {
    font-size: clamp(68px, 14.5vw, 128px);
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-ledger {
    max-width: 520px;
  }

  .stage-heading h2,
  .archive-head h2,
  .exchange-head h2,
  .reward-head h2,
  .faq-head h2 {
    font-size: clamp(43px, 9.2vw, 73px);
  }

  .chapter-book::before {
    left: 34px;
  }

  .chapter-card,
  .chapter-card:nth-child(2),
  .chapter-card:nth-child(3),
  .chapter-card:nth-child(4) {
    grid-template-columns: 76px minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
  }

  .chapter-index {
    width: 58px;
    height: 53px;
    font-size: 51px;
  }

  .tier-meter-grid {
    grid-template-columns: 1fr;
  }

  .fold-meter:nth-child(2) {
    border-top: 1px solid rgba(255, 253, 245, 0.15);
  }

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

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

  .faq-head {
    position: static;
  }

  .faq-fold-mark {
    display: none;
  }

  .press-footer {
    grid-template-columns: 1fr;
  }

  .paper-toast {
    left: 50%;
  }
}

@media (max-width: 700px) {
  .section-code,
  .field-label {
    font-size: 8px;
  }

  .hero-stage {
    min-height: 710px;
    padding: 96px 17px 44px;
  }

  .hero-serial,
  .registration-grid,
  .stage-margin {
    display: none;
  }

  .hero-wordmark {
    margin-top: 8px;
    font-size: clamp(53px, 16.2vw, 94px);
    -webkit-text-stroke-width: 2px;
    text-shadow:
      3px 3px 0 var(--kraft),
      6px 6px 0 rgba(184, 59, 47, 0.72);
  }

  .hero-statement {
    margin-top: 15px;
    font-size: clamp(20px, 6.4vw, 34px);
    letter-spacing: -0.07em;
  }

  .hero-strip {
    height: 150px;
    margin: 23px 0 24px;
    box-shadow:
      5px 5px 0 var(--crane),
      8px 8px 0 rgba(41, 40, 36, 0.13);
  }

  .hero-strip figcaption {
    display: none;
  }

  .hero-lede {
    font-size: 13px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chapter-stage,
  .archive-stage,
  .exchange-stage,
  .reward-stage,
  .faq-stage {
    padding: 69px 17px;
  }

  .stage-heading,
  .archive-head,
  .exchange-head {
    display: block;
  }

  .stage-heading h2,
  .archive-head h2,
  .exchange-head h2,
  .reward-head h2,
  .faq-head h2 {
    margin: 7px 0 12px;
    font-size: clamp(40px, 12.6vw, 68px);
  }

  .archive-head .ink-button,
  .fee-stamp {
    margin-top: 18px;
  }

  .chapter-card,
  .chapter-card:nth-child(2),
  .chapter-card:nth-child(3),
  .chapter-card:nth-child(4) {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    padding-right: 9px;
  }

  .chapter-book::before {
    left: 27px;
  }

  .chapter-index {
    width: 48px;
    height: 46px;
    font-size: 43px;
  }

  .chapter-card h3 {
    font-size: 13px;
  }

  .chapter-card p {
    font-size: 11px;
  }

  .dossier-head {
    display: block;
  }

  .dossier-head p:last-child {
    margin-top: 10px;
  }

  .fold-meter {
    grid-template-columns: 42px 52px minmax(0, 1fr);
    gap: 7px;
  }

  .fold-meter img {
    width: 52px;
    height: 52px;
  }

  .sheet-grid,
  .sheet-grid-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

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

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

  .drawer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ramp-graph {
    height: 170px;
  }

  .supply-orbit {
    width: 160px;
  }

  .question-slip summary {
    grid-template-columns: 29px minmax(0, 1fr) 18px;
    font-size: 9px;
  }

  .question-slip p {
    margin-left: 39px;
    font-size: 10px;
  }

  .press-footer {
    padding: 35px 17px 52px;
  }

  .footer-records {
    grid-template-columns: 1fr;
  }

  .mint-dock {
    padding-inline: 12px;
  }

  .mint-console {
    padding-inline: 13px;
  }

  .console-head {
    grid-template-columns: 1fr;
  }

  .status-chip {
    width: max-content;
  }

  .x-claim-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .float-nav {
    top: 8px;
    left: 8px;
    right: 8px;
    min-height: 42px;
    padding-left: 7px;
  }

  .nav-name {
    display: none;
  }

  .float-nav select {
    width: 72px;
  }

  .hero-stage {
    min-height: 680px;
    padding-inline: 13px;
  }

  .hero-wordmark {
    font-size: 52px;
    letter-spacing: -0.045em;
  }

  .hero-statement {
    font-size: 19px;
  }

  .hero-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ledger div {
    padding-inline: 8px;
  }

  .marquee,
  .chapter-card {
    padding-right: 4px;
  }

  .tier-dossier {
    padding: 18px 13px;
    box-shadow: 5px 5px 0 var(--crane);
  }

  .fold-meter {
    grid-template-columns: 37px 45px minmax(0, 1fr);
  }

  .fold-meter img {
    width: 45px;
    height: 45px;
  }

  .mint-tab {
    font-size: 6px;
  }

  .x-check-row {
    flex-direction: column;
  }

  .seller-actions .ink-button {
    flex-basis: 100%;
  }

  .paper-toast {
    width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
