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

@font-face {
  font-family: "Handjet";
  src: url("./fonts/Handjet.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

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

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

:root {
  --sky: #050608;
  --void: #090b0e;
  --basalt: #11151a;
  --basalt-2: #171c21;
  --line: rgba(197, 200, 197, 0.22);
  --line-strong: rgba(221, 226, 225, 0.42);
  --moon: #9b9d9d;
  --regolith: #c9c4b6;
  --regolith-dark: #8d8b83;
  --ivory: #f0eadc;
  --sodium: #ff8b2d;
  --sodium-light: #ffc069;
  --earth: #5abaff;
  --earth-deep: #286d96;
  --ink: #070809;
  --display: "Sixtyfour", "Courier New", monospace;
  --body: "Handjet", "Courier New", monospace;
  --mono: "DM Mono", "Courier New", monospace;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  --step-corner: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--sky);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  isolation: isolate;
  color: var(--ivory);
  background:
    linear-gradient(180deg, #050608 0%, #090b0e 48%, #050608 100%);
  font-family: var(--body);
  font-size: 20px;
  font-weight: 350;
  line-height: 1.42;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  cursor: crosshair;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.52) 3px 4px);
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 91;
  pointer-events: none;
  opacity: 0.15;
  background:
    radial-gradient(circle at 19% 13%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 64%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 43% 82%, rgba(255, 139, 45, 0.55) 0 1px, transparent 1.5px);
  background-size: 83px 71px, 113px 97px, 149px 131px;
}

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

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

button {
  cursor: pointer;
}

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

::selection {
  color: var(--ink);
  background: var(--sodium-light);
}

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

.wrap {
  width: min(1220px, calc(100% - 56px));
  margin-inline: auto;
}

.static-dust {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 67px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 67px);
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 86%);
}

.pixel-wind {
  position: fixed;
  right: 2vw;
  top: 18vh;
  z-index: 92;
  width: 2px;
  height: 2px;
  pointer-events: none;
  background: var(--sodium);
  box-shadow:
    -42px 70px 0 rgba(255, 255, 255, 0.32),
    -120px 123px 0 rgba(255, 139, 45, 0.35),
    28px 207px 0 rgba(90, 186, 255, 0.4),
    -260px 322px 0 rgba(255, 255, 255, 0.22),
    -68px 448px 0 rgba(255, 139, 45, 0.3),
    -318px 510px 0 rgba(255, 255, 255, 0.18);
  animation: dust-drift 9s steps(9) infinite;
}

@keyframes dust-drift {
  from { transform: translate(0, -18px); }
  to { transform: translate(-34px, 24px); }
}

@keyframes soft-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-pulse {
  50% { opacity: 0.58; filter: brightness(1.13); }
}

@keyframes scan-down {
  0% { transform: translateY(-110%); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translateY(620%); opacity: 0; }
}

.top-rail {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(197, 200, 197, 0.18);
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(14px) saturate(1.15);
}

.top-rail::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -1px;
  width: 74px;
  height: 2px;
  background: var(--sodium);
  box-shadow: 84px 0 0 rgba(90, 186, 255, 0.75), 168px 0 0 rgba(240, 234, 220, 0.35);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.wordmark b {
  color: var(--sodium-light);
  font-weight: 400;
}

.wordmark-cap {
  position: relative;
  width: 27px;
  height: 27px;
  flex: none;
  image-rendering: pixelated;
}

.wordmark-cap i {
  position: absolute;
  display: block;
  background: var(--sodium);
  box-shadow: 0 0 10px rgba(255, 139, 45, 0.24);
}

.wordmark-cap i:nth-child(1) {
  left: 4px;
  top: 2px;
  width: 19px;
  height: 4px;
  box-shadow: 4px 4px 0 var(--regolith), 0 8px 0 var(--regolith);
}

.wordmark-cap i:nth-child(2) {
  left: 2px;
  top: 11px;
  width: 23px;
  height: 7px;
  background: var(--regolith);
}

.wordmark-cap i:nth-child(3) {
  left: 2px;
  top: 16px;
  width: 4px;
  height: 8px;
  box-shadow: 19px 0 0 var(--sodium);
}

.wordmark-cap i:nth-child(4) {
  left: 8px;
  top: 19px;
  width: 11px;
  height: 6px;
  background: transparent;
  border: 2px solid var(--sodium);
}

.wordmark-code {
  color: rgba(240, 234, 220, 0.48);
  font: 8px var(--mono);
  letter-spacing: 0.12em;
}

.survey-coord {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: rgba(240, 234, 220, 0.56);
  font: 10px var(--mono);
  letter-spacing: 0.16em;
}

.survey-coord i {
  display: block;
  width: 38px;
  height: 1px;
  background: var(--line);
  box-shadow: 7px -2px 0 var(--sodium), -7px 2px 0 var(--earth);
}

.top-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 6, 8, 0.82);
  color: var(--ivory);
  outline: none;
}

select {
  max-width: 122px;
  min-height: 38px;
  padding: 7px 26px 7px 9px;
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sodium);
  box-shadow: 0 0 0 2px rgba(255, 139, 45, 0.18);
}

.hard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(17, 21, 26, 0.92);
  color: var(--ivory);
  clip-path: var(--step-corner);
  font-family: var(--display);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms steps(2), color 160ms steps(2), transform 160ms steps(2);
}

.hard-button:hover {
  transform: translateY(-2px);
  background: var(--regolith);
  color: var(--ink);
}

.hard-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.hard-button--hot {
  border-color: var(--sodium);
  background: var(--sodium);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 139, 45, 0.12);
}

.hard-button--hot:hover {
  background: var(--sodium-light);
  color: var(--ink);
}

.hard-button--large {
  min-height: 54px;
  padding-inline: 27px;
  font-size: 12px;
}

.hard-button--ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}

.hard-button--ink:hover {
  background: var(--sodium);
  color: var(--ink);
}

.text-link,
.text-button {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--ivory);
  font: 10px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link:hover,
.text-button:hover {
  border-color: var(--sodium);
  color: var(--sodium-light);
}

.text-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.micro-type {
  margin: 0;
  color: var(--sodium-light);
  font: 9px var(--mono);
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  min-height: 880px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px 0 118px;
  background: var(--sky);
  isolation: isolate;
}

.hero-panorama {
  position: absolute;
  inset: 0 0 0 26%;
  z-index: -3;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 82%, 3% 82%, 3% 71%, 7% 71%, 7% 61%, 11% 61%, 11% 51%, 15% 51%, 15% 38%, 19% 38%, 19% 22%, 24% 22%);
}

.hero-land {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 63%;
  filter: saturate(0.62) contrast(1.08) brightness(0.58);
}

.hero-panorama::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--sky) 0%, rgba(5, 6, 8, 0.94) 8%, rgba(5, 6, 8, 0.52) 36%, transparent 65%),
    linear-gradient(0deg, var(--sky) 1%, rgba(5, 6, 8, 0.55) 17%, transparent 47%),
    radial-gradient(circle at 79% 18%, rgba(90, 186, 255, 0.12), transparent 27%);
}

.hero-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.24;
  background:
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(5, 6, 8, 0.28) 5px 6px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(5, 6, 8, 0.18) 5px 6px);
  mix-blend-mode: multiply;
}

.hero-scan {
  position: absolute;
  inset: -20% 0 auto;
  z-index: 3;
  height: 16%;
  background: linear-gradient(180deg, transparent, rgba(90, 186, 255, 0.12), transparent);
  animation: hero-scan 7s steps(14) infinite;
}

@keyframes hero-scan {
  from { transform: translateY(0); }
  to { transform: translateY(760%); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: 48px;
}

.hero-words {
  position: relative;
  z-index: 2;
  animation: soft-rise 650ms steps(6) both;
}

.chapter-line {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--earth);
  font: 10px/1.55 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.chapter-glyph {
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--sodium);
  box-shadow:
    9px 0 0 rgba(255, 139, 45, 0.55),
    0 9px 0 rgba(255, 139, 45, 0.36),
    18px 9px 0 var(--earth);
}

.hero-words h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(43px, 5.45vw, 78px);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero-words h1 span,
.hero-words h1 em {
  display: block;
}

.hero-words h1 span {
  text-shadow: 4px 4px 0 rgba(90, 186, 255, 0.15);
}

.hero-words h1 em {
  margin-top: 8px;
  color: var(--sodium);
  font-style: normal;
  text-shadow: 4px 4px 0 rgba(255, 139, 45, 0.13);
}

.hero-note {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d3d2ca;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}

.mission-tape {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 690px;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.42);
  backdrop-filter: blur(4px);
}

.mission-tape div {
  min-width: 0;
  padding: 13px 13px 12px;
  border-right: 1px solid var(--line);
}

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

.mission-tape dt {
  color: var(--ivory);
  font: 500 12px var(--mono);
  white-space: nowrap;
}

.mission-tape dd {
  margin: 3px 0 0;
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reveal-stage {
  position: relative;
  align-self: stretch;
  min-height: 610px;
  animation: soft-rise 850ms 100ms steps(7) both;
}

.earthrise {
  position: absolute;
  right: 5%;
  top: 4%;
  width: 235px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(118deg, transparent 27%, rgba(255, 255, 255, 0.32) 28% 31%, transparent 32% 59%, rgba(240, 234, 220, 0.19) 60% 63%, transparent 64%),
    radial-gradient(circle at 34% 28%, #a8e0ff 0 7%, #5abaff 28%, #246f9c 59%, #122a3c 76%, #081218 100%);
  box-shadow: 0 0 65px rgba(90, 186, 255, 0.2);
  image-rendering: pixelated;
}

.earthrise::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.56;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 20% 34%, rgba(240, 234, 220, 0.52) 0 5%, transparent 6%),
    radial-gradient(ellipse at 55% 19%, rgba(240, 234, 220, 0.38) 0 7%, transparent 8%),
    radial-gradient(ellipse at 68% 55%, rgba(240, 234, 220, 0.25) 0 9%, transparent 10%),
    radial-gradient(ellipse at 42% 75%, rgba(240, 234, 220, 0.3) 0 4%, transparent 5%);
  filter: blur(1px);
}

.earthrise::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(5, 6, 8, 0.25) 5px 6px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(5, 6, 8, 0.16) 5px 6px);
}

.earthrise-cloud {
  position: absolute;
  z-index: 2;
  display: block;
  height: 7px;
  background: rgba(240, 234, 220, 0.38);
}

.cloud-a { left: 13%; top: 42%; width: 38%; }
.cloud-b { right: 8%; top: 34%; width: 26%; height: 5px; }
.cloud-c { left: 36%; top: 61%; width: 45%; height: 4px; }

.orbital-arc {
  position: absolute;
  left: 3%;
  top: 13%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px dashed rgba(197, 200, 197, 0.28);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbital-arc::before {
  content: "";
  position: absolute;
  left: 9%;
  top: 13%;
  width: 7px;
  height: 7px;
  background: var(--sodium);
  box-shadow: 0 0 15px rgba(255, 139, 45, 0.5);
}

.arc-two {
  inset: 29% 22% auto;
  width: auto;
  border-style: dotted;
  border-color: rgba(90, 186, 255, 0.38);
  transform: rotate(19deg);
}

.arc-two::before {
  left: auto;
  right: 4%;
  top: 49%;
  background: var(--earth);
}

.stage-crosshair {
  position: absolute;
  inset: 22% 7% 12%;
  border: 1px solid rgba(240, 234, 220, 0.12);
  clip-path: polygon(0 0, 24px 0, 24px 1px, 1px 1px, 1px 24px, 0 24px, 0 100%, 24px 100%, 24px calc(100% - 1px), 1px calc(100% - 1px), 1px calc(100% - 24px), 0 calc(100% - 24px), 100% calc(100% - 24px), 100% calc(100% - 23px), calc(100% - 1px) calc(100% - 23px), calc(100% - 1px) calc(100% - 1px), calc(100% - 24px) calc(100% - 1px), calc(100% - 24px) 100%, 100% 100%, 100% 0, calc(100% - 24px) 0, calc(100% - 24px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) 24px, 100% 24px);
}

.stage-crosshair i {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  background: rgba(240, 234, 220, 0.23);
  transform: translate(-50%, -50%);
}

.stage-crosshair i:first-child {
  width: 110%;
  height: 1px;
}

.stage-crosshair i:last-child {
  width: 1px;
  height: 110%;
}

.relic-float {
  position: absolute;
  left: 14%;
  top: 23%;
  z-index: 4;
  width: 72%;
  aspect-ratio: 1;
  padding: 7px;
  clip-path: var(--step-corner);
  background: rgba(240, 234, 220, 0.9);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.72);
  animation: relic-hover 4.4s steps(8) infinite;
}

.relic-float::before,
.relic-float::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.relic-float::before {
  left: 7px;
  top: 7px;
  border-left: 3px solid var(--sodium);
  border-top: 3px solid var(--sodium);
}

.relic-float::after {
  right: 7px;
  bottom: 7px;
  border-right: 3px solid var(--earth);
  border-bottom: 3px solid var(--earth);
}

.relic-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.42) sepia(0.12) contrast(1.08);
  image-rendering: pixelated;
}

.relic-scanline {
  position: absolute;
  inset: 7px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.relic-scanline::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 25%;
  background: linear-gradient(180deg, transparent, rgba(90, 186, 255, 0.52), transparent);
  animation: scan-down 4.6s steps(12) infinite;
}

@keyframes relic-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.pedestal {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 4%;
  height: 145px;
  z-index: 3;
}

.pedestal span {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #45494b, #171b1e 53%, #0a0c0e);
  box-shadow: inset 0 1px 0 rgba(240, 234, 220, 0.24);
}

.pedestal-top {
  top: 0;
  width: 70%;
  height: 25px;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #b0aca1, #5d5f5e 45%, #24282a) !important;
}

.pedestal-mid {
  top: 24px;
  width: 54%;
  height: 57px;
  clip-path: polygon(3% 0, 97% 0, 91% 100%, 9% 100%);
}

.pedestal-base {
  top: 78px;
  width: 82%;
  height: 52px;
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 139, 45, 0.4) 9% 10%, transparent 10% 90%, rgba(255, 139, 45, 0.4) 90% 91%, transparent 91%),
    linear-gradient(180deg, #77766f, #2c3032 48%, #121518) !important;
}

.stage-tag {
  position: absolute;
  z-index: 5;
  color: var(--moon);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-tag--left {
  left: 1%;
  top: 47%;
  color: var(--sodium);
  font-size: 16px;
}

.stage-tag--right {
  right: 0;
  bottom: 21%;
  max-width: 145px;
  padding-left: 10px;
  border-left: 2px solid var(--earth);
  text-align: right;
}

.crater-rim {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 92px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, #0c0e10 48%);
}

.crater-rim::before,
.crater-rim::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 56px;
  background: #090b0d;
  clip-path: polygon(0 70%, 4% 66%, 4% 58%, 7% 58%, 7% 73%, 12% 73%, 12% 47%, 16% 47%, 16% 62%, 23% 62%, 23% 70%, 31% 70%, 31% 54%, 37% 54%, 37% 67%, 44% 67%, 44% 44%, 49% 44%, 49% 64%, 58% 64%, 58% 73%, 65% 73%, 65% 58%, 71% 58%, 71% 69%, 80% 69%, 80% 51%, 85% 51%, 85% 65%, 92% 65%, 92% 72%, 100% 72%, 100% 100%, 0 100%);
}

.crater-rim::after {
  bottom: -22px;
  height: 68px;
  background: #050608;
  transform: scaleX(-1);
}

.chapter {
  position: relative;
  isolation: isolate;
  padding: 104px 0;
  scroll-margin-top: 81px;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.folio-head {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(60px, 0.55fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 44px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.folio-number {
  color: var(--sodium);
  font-family: var(--display);
  font-size: 68px;
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.08em;
  text-shadow: 5px 5px 0 rgba(255, 139, 45, 0.13);
}

.folio-kicker {
  margin: 0 0 8px;
  color: var(--earth);
  font: 9px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.folio-head h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(25px, 3.1vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.folio-lede {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--moon);
  font-size: 20px;
  line-height: 1.3;
}

.folio-rule {
  height: 1px;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 12px);
}

.folio-code {
  align-self: start;
  color: rgba(240, 234, 220, 0.52);
  font: 8px var(--mono);
  letter-spacing: 0.11em;
  text-align: right;
  white-space: nowrap;
}

.chapter--intake {
  background:
    radial-gradient(800px 430px at 14% 28%, rgba(255, 139, 45, 0.075), transparent 67%),
    linear-gradient(180deg, #0b0e11, #090b0e);
}

.chapter--intake::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.intake-shop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.77fr) minmax(0, 1.23fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  background: rgba(8, 10, 12, 0.88);
  box-shadow: var(--shadow);
}

.intake-shop::before,
.intake-shop::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 48px;
  height: 8px;
  background: var(--sodium);
}

.intake-shop::before {
  left: -1px;
  top: -1px;
  box-shadow: 48px 0 0 var(--earth);
}

.intake-shop::after {
  right: -1px;
  bottom: -1px;
  box-shadow: -48px 0 0 var(--regolith);
}

.shop-relic {
  position: relative;
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(201, 196, 182, 0.09), transparent 38%),
    #0d1013;
}

.item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.item-label span {
  color: var(--sodium);
}

.item-label b {
  color: var(--ivory);
  font-weight: 400;
  text-align: right;
}

.relic-window {
  position: relative;
  margin-inline: auto;
  width: min(100%, 360px);
  aspect-ratio: 1;
  padding: 9px;
  clip-path: var(--step-corner);
  background:
    linear-gradient(135deg, var(--regolith), #5e605f 44%, #98968d 45% 48%, #191d20 49%);
}

.relic-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.36) contrast(1.09);
  image-rendering: pixelated;
}

.relic-window::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(5, 6, 8, 0.19) 4px 5px),
    linear-gradient(135deg, rgba(255, 139, 45, 0.12), transparent 36%);
}

.window-index {
  position: absolute;
  right: 21px;
  bottom: 20px;
  z-index: 2;
  color: var(--sodium-light);
  font: 30px var(--display);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--ink);
}

.relic-caption {
  max-width: 390px;
  margin: 18px auto 0;
  color: #c3c1b9;
  font-size: 19px;
  line-height: 1.25;
}

.relic-odds {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 13px;
  margin-top: 12px;
}

.mini-odd {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--moon);
  font: 9px var(--mono);
}

.mini-odd i {
  width: 5px;
  height: 10px;
  background: var(--tier);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.11);
}

.mini-odd span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-odd b {
  color: var(--ivory);
  font-weight: 400;
}

.shop-console {
  position: relative;
  min-width: 0;
  padding: 28px clamp(24px, 4vw, 50px) 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 32%),
    #111419;
}

.shop-console::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(197, 200, 197, 0.075);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.console-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--ivory);
  font: 9px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-pulse {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--earth);
  box-shadow: 0 0 9px rgba(90, 186, 255, 0.62);
  animation: reveal-pulse 2s steps(4) infinite;
}

.status-lamp.live {
  border-color: var(--sodium);
}

.status-lamp.live .status-pulse {
  background: var(--sodium);
  box-shadow: 0 0 10px rgba(255, 139, 45, 0.72);
}

.status-lamp.warn {
  border-color: rgba(255, 139, 45, 0.48);
  color: var(--sodium-light);
}

.countdown-label {
  color: var(--moon);
  font: 9px var(--mono);
  letter-spacing: 0.06em;
  text-align: right;
}

.progress-ledger {
  position: relative;
  margin-top: 26px;
}

.progress-ledger p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.progress-ledger strong {
  color: var(--ivory);
  font: 400 clamp(52px, 6vw, 82px)/0.9 var(--display);
  letter-spacing: -0.06em;
}

.progress-ledger span {
  color: var(--moon);
  font: 14px var(--mono);
}

.progress-ledger em {
  color: var(--sodium);
  font: 9px var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.segmented-progress {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  height: 20px;
  margin-top: 18px;
}

.segmented-progress i {
  border: 1px solid rgba(197, 200, 197, 0.19);
  background: #080a0c;
}

.segmented-progress i.on {
  border-color: rgba(255, 139, 45, 0.5);
  background: linear-gradient(180deg, var(--sodium), #9b4b14);
  box-shadow: 0 0 8px rgba(255, 139, 45, 0.25);
}

.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-top: 20px;
  padding: 13px 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(90, 186, 255, 0.04), transparent 30% 70%, rgba(255, 139, 45, 0.04));
}

.countdown div {
  min-width: 0;
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--ivory);
  font: 500 24px/1 var(--mono);
  letter-spacing: -0.04em;
}

.countdown span {
  display: block;
  margin-top: 5px;
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.countdown > b {
  align-self: start;
  padding-top: 1px;
  color: var(--sodium);
  font: 400 22px var(--mono);
}

.route-readout {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  margin: 18px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--earth);
  background: rgba(90, 186, 255, 0.06);
}

.route-readout p {
  margin: 0;
  color: #d2d3cf;
  font-size: 18px;
  line-height: 1.2;
}

.route-readout.eligible {
  border-left-color: var(--sodium);
  background: rgba(255, 139, 45, 0.07);
}

.route-icon {
  width: 10px;
  height: 10px;
  flex: none;
  border: 2px solid var(--earth);
  box-shadow: 5px 5px 0 var(--sodium);
  transform: rotate(45deg);
}

.purchase-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 18px;
}

.qty-module {
  flex: 1;
  min-width: 0;
}

.qty-module > label {
  display: block;
  margin-bottom: 8px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 42px minmax(55px, 1fr) 42px auto;
  min-height: 45px;
  border: 1px solid var(--line-strong);
  background: #080a0c;
}

.quantity-control button {
  border: 0;
  background: transparent;
  color: var(--sodium-light);
  font: 20px var(--mono);
}

.quantity-control button:hover {
  background: rgba(255, 139, 45, 0.1);
}

.quantity-control input {
  width: 100%;
  min-width: 0;
  border-width: 0 1px;
  border-style: solid;
  border-color: var(--line);
  background: transparent;
  font: 500 14px var(--mono);
  text-align: center;
  -moz-appearance: textfield;
}

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

.quantity-control .qty-max {
  padding: 0 13px;
  border-left: 1px solid var(--line);
  font: 9px var(--mono);
}

.price-ticket {
  flex: 0 0 auto;
  min-width: 125px;
  padding: 7px 13px 9px;
  border-left: 3px solid var(--sodium);
  background: rgba(255, 139, 45, 0.08);
}

.price-ticket span {
  display: block;
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.12em;
}

.price-ticket strong {
  display: block;
  color: var(--sodium-light);
  font: 500 15px var(--mono);
}

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

.receipt > div {
  min-width: 0;
  padding: 11px 9px;
  border-right: 1px solid var(--line);
}

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

.receipt dt {
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.receipt dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ivory);
  font: 9px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-earn {
  background: rgba(90, 186, 255, 0.055);
}

.receipt-earn dd {
  color: var(--earth);
}

.mint-slab {
  position: relative;
  width: 100%;
  min-height: 62px;
  overflow: hidden;
  border: 0;
  background: var(--sodium);
  color: var(--ink);
  clip-path: var(--step-corner);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  box-shadow: inset 0 -7px 0 rgba(5, 6, 8, 0.18);
}

.mint-slab i {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(5, 6, 8, 0.38);
}

.mint-slab:hover:not(:disabled) {
  background: var(--sodium-light);
}

.mint-slab:disabled {
  background: #34383a;
  color: rgba(240, 234, 220, 0.55);
  cursor: not-allowed;
}

.tx-feedback {
  display: none;
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--moon);
  font: 10px/1.5 var(--mono);
}

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

.tx-feedback.ok {
  border-color: var(--earth);
  color: #b8e4ff;
  background: rgba(90, 186, 255, 0.07);
}

.tx-feedback.err {
  border-color: var(--sodium);
  color: var(--sodium-light);
  background: rgba(255, 139, 45, 0.07);
}

.referral-chip {
  margin: 10px 0 0;
  color: var(--earth);
  font: 9px var(--mono);
}

.quest-yard {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  margin-top: 19px;
  border: 1px solid var(--line);
}

.quest-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: #0c0f12;
}

.quest-card--agent {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-content: start;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 25%, rgba(90, 186, 255, 0.1), transparent 27%),
    #0c0f12;
}

.quest-card--x {
  padding: 25px 27px;
  background:
    linear-gradient(135deg, rgba(255, 139, 45, 0.055), transparent 38%),
    #0d1014;
}

.quest-index {
  position: absolute;
  right: 12px;
  top: 9px;
  color: rgba(240, 234, 220, 0.13);
  font: 40px var(--display);
}

.quest-sigil {
  position: relative;
  width: 50px;
  height: 58px;
  border: 2px solid var(--earth);
  box-shadow: 5px 5px 0 rgba(90, 186, 255, 0.15);
}

.quest-sigil i {
  position: absolute;
  display: block;
  background: var(--earth);
}

.quest-sigil i:nth-child(1) {
  left: 50%;
  top: 9px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
}

.quest-sigil i:nth-child(2) {
  left: 17px;
  top: 24px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--sodium);
}

.quest-sigil i:nth-child(3) {
  left: 50%;
  bottom: 9px;
  width: 22px;
  height: 2px;
  transform: translateX(-50%);
  box-shadow: 0 -14px 0 rgba(90, 186, 255, 0.35);
}

.quest-copy {
  min-width: 0;
}

.quest-copy h3,
.quest-head h3 {
  margin: 4px 0 12px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.26;
}

.quest-copy h3 span {
  display: block;
  color: var(--earth);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.quest-copy > p:last-child,
.quest-desc {
  margin: 0;
  color: var(--moon);
  font-size: 18px;
  line-height: 1.25;
}

.quest-route {
  grid-column: 1 / -1;
  margin: 23px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  color: var(--sodium-light);
  font: 9px/1.5 var(--mono);
}

.quest-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.x-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 2px solid var(--sodium);
  color: var(--sodium-light);
  font: 18px var(--display);
}

.quest-steps {
  margin-top: 18px;
}

.quest-steps label {
  display: block;
  margin: 13px 0 7px;
}

.quest-steps textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px;
  font: 10px/1.6 var(--mono);
}

.quest-steps input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  font: 10px var(--mono);
}

.inline-actions,
.x-check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

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

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

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

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

.turnstile-box {
  min-height: 65px;
  margin-top: 10px;
}

.x-state-note {
  margin: 14px 0 0;
  color: var(--moon);
  font: 9px/1.5 var(--mono);
}

.manual-accordion {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.manual-entry {
  border-bottom: 1px solid var(--line);
}

.manual-entry summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 15px;
  min-height: 55px;
  list-style: none;
  cursor: pointer;
}

.manual-entry summary::-webkit-details-marker {
  display: none;
}

.manual-entry summary > span {
  color: var(--sodium);
  font: 10px var(--mono);
}

.manual-entry summary > b {
  color: var(--ivory);
  font-size: 19px;
  font-weight: 400;
}

.manual-entry summary > i {
  position: relative;
  width: 13px;
  height: 13px;
}

.manual-entry summary > i::before,
.manual-entry summary > i::after {
  content: "";
  position: absolute;
  background: var(--sodium);
}

.manual-entry summary > i::before {
  left: 0;
  top: 6px;
  width: 13px;
  height: 2px;
}

.manual-entry summary > i::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 13px;
}

.manual-entry[open] summary > i::after {
  display: none;
}

.manual-body {
  padding: 0 45px 18px 61px;
}

.manual-body p {
  max-width: 900px;
  margin: 0 0 8px;
  color: var(--moon);
  font: 10px/1.65 var(--mono);
}

.free-slots {
  display: none !important;
}

.chapter--archive {
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(900px 500px at 92% 2%, rgba(90, 186, 255, 0.08), transparent 62%),
    #06080a;
}

.archive-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    linear-gradient(90deg, rgba(197, 200, 197, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(197, 200, 197, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 86% 84%, 86% 90%, 73% 90%, 73% 95%, 0 95%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.strata-stack {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.stratum {
  --tier: var(--sodium);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-top: 3px solid var(--tier);
  background: #0c0f12;
  transition: transform 180ms steps(2);
}

.stratum:hover {
  transform: translateY(-5px);
}

.stratum > summary {
  min-height: 390px;
  list-style: none;
  cursor: pointer;
}

.stratum > summary::-webkit-details-marker {
  display: none;
}

.stratum-picture {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: #050608;
}

.stratum-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c0f12 0, rgba(12, 15, 18, 0.36) 39%, transparent 73%);
}

.stratum-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.78);
  image-rendering: pixelated;
  transition: filter 180ms steps(2), transform 400ms steps(5);
}

.stratum:hover .stratum-picture img {
  filter: saturate(0.92) contrast(1.08) brightness(0.9);
  transform: scale(1.04);
}

.stratum-rank {
  position: absolute;
  left: 10px;
  top: 9px;
  z-index: 2;
  color: var(--tier);
  font: 10px var(--mono);
}

.stratum-supply {
  position: absolute;
  right: 10px;
  top: 7px;
  z-index: 2;
  color: var(--ivory);
  font: 500 10px var(--mono);
}

.stratum-copy {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: -22px;
  padding: 0 13px 18px;
}

.stratum-title {
  display: block;
  margin: 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
}

.stratum-note {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 12px;
  color: var(--moon);
  font: 8px/1.55 var(--mono);
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.stratum-copy b {
  color: var(--tier);
  font: 9px var(--mono);
  font-weight: 400;
}

.stratum-detail {
  padding: 14px;
  border-top: 1px solid var(--line);
  color: var(--moon);
  font: 9px/1.6 var(--mono);
}

.art-missing {
  position: relative;
  background:
    radial-gradient(circle at 50% 36%, rgba(197, 200, 197, 0.15), transparent 33%),
    linear-gradient(145deg, #252a2c, #090b0e 70%);
}

.art-missing::after {
  content: "MOONDRILL";
  position: absolute;
  inset: 44% 0 auto;
  color: rgba(240, 234, 220, 0.22);
  font: 10px var(--display);
  letter-spacing: 0.1em;
  text-align: center;
}

.model-register {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 90px;
}

.register-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 23px;
}

.register-heading > div {
  max-width: 760px;
}

.register-heading p:last-child {
  margin: 8px 0 0;
  color: var(--moon);
  font-size: 19px;
}

.model-groups {
  display: grid;
  gap: 27px;
}

.model-group {
  min-width: 0;
}

.model-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.model-group-head i {
  width: 8px;
  height: 8px;
  flex: none;
}

.model-group-head h4 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.model-group-head span {
  margin-left: auto;
  color: var(--moon);
  font: 8px var(--mono);
}

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

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

.specimen-card {
  --tier: var(--sodium);
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0a0d10;
  transition: transform 160ms steps(2), border-color 160ms steps(2);
}

.specimen-card:hover {
  transform: translateY(-4px);
  border-color: var(--tier);
}

.specimen-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #050608;
}

.specimen-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03);
  image-rendering: pixelated;
}

.specimen-art > span {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 5px;
  border: 1px solid rgba(240, 234, 220, 0.25);
  background: rgba(5, 6, 8, 0.72);
  color: var(--ivory);
  font: 7px var(--mono);
}

.specimen-copy {
  padding: 9px 9px 11px;
  border-top: 1px solid var(--line);
}

.specimen-copy small {
  display: block;
  color: var(--tier);
  font: 7px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.specimen-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ivory);
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specimen-copy span {
  display: block;
  margin-top: 3px;
  color: var(--moon);
  font: 7px var(--mono);
  text-transform: uppercase;
}

.chapter--story {
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(5, 6, 8, 0.045) 42px 43px),
    radial-gradient(circle at 9% 15%, rgba(255, 139, 45, 0.13), transparent 22%),
    var(--regolith);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 19px), 72% calc(100% - 19px), 72% 100%, 43% 100%, 43% calc(100% - 9px), 17% calc(100% - 9px), 17% 100%, 0 100%);
}

.chapter--story::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(5, 6, 8, 0.035) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

.folio-head--ink {
  border-color: rgba(5, 6, 8, 0.28);
}

.folio-head--ink .folio-number {
  color: var(--sodium);
  text-shadow: 5px 5px 0 rgba(255, 139, 45, 0.17);
}

.folio-head--ink .folio-kicker {
  color: var(--earth-deep);
}

.folio-head--ink h2 {
  color: var(--ink);
}

.folio-head--ink .folio-lede {
  color: #424543;
}

.folio-head--ink .folio-rule {
  background: repeating-linear-gradient(90deg, rgba(5, 6, 8, 0.45) 0 7px, transparent 7px 12px);
}

.folio-head--ink .folio-code {
  color: rgba(5, 6, 8, 0.58);
}

.shift-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 38px;
  align-items: stretch;
  margin-top: 8px;
}

.shift-visual {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  border: 8px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(5, 6, 8, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
}

.shift-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.62) contrast(1.06) brightness(0.73);
  image-rendering: pixelated;
}

.shift-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 6, 8, 0.8), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(5, 6, 8, 0.14) 5px 6px);
}

.shift-visual-tag {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 210px);
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  background: rgba(5, 6, 8, 0.84);
}

.shift-visual-tag span {
  color: var(--sodium);
  font: 30px var(--display);
}

.shift-visual-tag p {
  margin: 0;
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.2;
}

.drill-line {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2px;
  background: var(--sodium);
}

.drill-line i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--sodium);
  box-shadow: 0 0 10px rgba(255, 139, 45, 0.6);
}

.shift-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.shift-steps li {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(5, 6, 8, 0.3);
}

.shift-steps > li > span {
  color: var(--sodium);
  font-family: var(--display);
  font-size: 15px;
}

.shift-steps li > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.shift-steps p {
  margin: 0;
  color: #292c2b;
  font-size: 21px;
  font-weight: 450;
  line-height: 1.24;
}

.step-glyph {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.glyph-seal {
  border: 3px solid var(--earth-deep);
  box-shadow: 4px 4px 0 rgba(40, 109, 150, 0.18);
}

.glyph-seal::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 3px;
  height: 4px;
  background: var(--sodium);
}

.glyph-block {
  background: var(--ink);
  clip-path: polygon(0 18%, 18% 18%, 18% 0, 100% 0, 100% 82%, 82% 82%, 82% 100%, 0 100%);
}

.glyph-block::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--earth);
}

.glyph-open {
  border: 3px solid var(--sodium);
  transform: rotate(45deg) scale(0.72);
}

.glyph-open::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--earth-deep);
}

.glyph-token {
  background: var(--sodium);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.glyph-token::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--regolith);
}

.story-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 35px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.story-quote {
  max-width: 850px;
  margin: 0;
  color: #333735;
  font-size: 24px;
  font-weight: 450;
  line-height: 1.22;
}

.chapter--cargo {
  background:
    radial-gradient(760px 450px at 92% 32%, rgba(90, 186, 255, 0.08), transparent 65%),
    linear-gradient(180deg, #0b0e11, #080a0c);
}

.cargo-console {
  display: grid;
  grid-template-columns: minmax(260px, 0.67fr) minmax(0, 1.33fr);
  gap: 16px;
}

.claim-dial {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 139, 45, 0.16), transparent 27%),
    linear-gradient(145deg, #14181c, #0a0c0f);
  clip-path: var(--step-corner);
}

.claim-dial::before,
.claim-dial::after {
  content: "";
  position: absolute;
  background: var(--sodium);
}

.claim-dial::before {
  left: 18px;
  top: 13px;
  width: 38px;
  height: 3px;
  box-shadow: 42px 0 0 var(--earth);
}

.claim-dial::after {
  right: 15px;
  bottom: 15px;
  width: 8px;
  height: 8px;
  box-shadow: -13px 0 0 rgba(90, 186, 255, 0.8);
}

.claim-amount {
  display: block;
  margin: 11px 0 18px;
  color: var(--earth);
  font: 400 clamp(52px, 6.6vw, 88px)/0.9 var(--display);
  letter-spacing: -0.07em;
  text-shadow: 5px 5px 0 rgba(90, 186, 255, 0.12);
}

.inline-feedback {
  min-height: 0;
  margin: 9px 0 0;
  color: var(--moon);
  font: 9px var(--mono);
}

.invite-strip {
  padding: 25px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(90, 186, 255, 0.04), transparent 36%),
    #101419;
}

.invite-heading {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.invite-heading > p:last-child {
  margin: 0;
  color: var(--moon);
  font-size: 18px;
  line-height: 1.25;
}

.invite-strip > label {
  display: block;
  margin-bottom: 7px;
}

.copy-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.copy-field input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  font: 9px var(--mono);
}

.copy-field .text-button {
  flex: none;
  padding-inline: 3px;
}

.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.invite-stats div {
  padding: 11px 0;
}

.invite-stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.invite-stats span {
  display: block;
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invite-stats strong {
  display: block;
  margin-top: 3px;
  color: var(--ivory);
  font: 500 17px var(--mono);
}

.micro-copy {
  margin: 9px 0 0;
  color: var(--moon);
  font: 9px/1.55 var(--mono);
}

.cargo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 17px;
}

.cargo-toolbar p {
  margin: 0;
  color: var(--moon);
  font: 10px var(--mono);
}

.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 11px;
}

.cargo-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0b0e11;
  transition: transform 160ms steps(2);
}

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

.cargo-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #050608;
  filter: saturate(0.78);
  image-rendering: pixelated;
}

.cargo-card.sealed > img {
  object-fit: cover;
  padding: 0;
  filter: saturate(0.24) contrast(1.06);
}

.cargo-body {
  padding: 10px 11px 12px;
  border-top: 1px solid var(--line);
}

.cargo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--moon);
  font: 7px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-pip {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--tier);
}

.cargo-body > strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--ivory);
  font-size: 18px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cargo-body .hard-button,
.cargo-body .text-button {
  width: 100%;
  margin-top: 9px;
}

.sealed-stamp {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 5px;
  border: 1px solid rgba(240, 234, 220, 0.42);
  background: rgba(5, 6, 8, 0.78);
  color: var(--sodium-light);
  font: 7px var(--mono);
}

.empty-card {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--moon);
  font: 10px/1.6 var(--mono);
  text-align: center;
}

.chapter--exchange {
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 139, 45, 0.05) 9% 9.3%, transparent 9.3% 90.7%, rgba(90, 186, 255, 0.05) 90.7% 91%, transparent 91%),
    #080a0c;
}

.chapter--exchange::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(197, 200, 197, 0.035) 79px 80px);
}

.rewards-oath {
  color: var(--regolith) !important;
}

.helium-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 16px;
}

.ramp-chart,
.supply-map {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 20, 0.88);
}

.ramp-chart {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 139, 45, 0.055), transparent 38%),
    rgba(13, 16, 20, 0.9);
}

.ramp-chart::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 42%;
  background: var(--sodium);
}

.ledger-title {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ledger-title p {
  margin: 0;
  color: var(--moon);
  font-size: 18px;
  line-height: 1.25;
}

.ramp-stairs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 225px;
  margin: 25px 0 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(197, 200, 197, 0.07) 44px 45px);
}

.ramp-stairs span {
  position: relative;
  flex: 1;
  height: var(--h);
  min-height: 13px;
  background:
    repeating-linear-gradient(0deg, rgba(5, 6, 8, 0.16) 0 5px, transparent 5px 6px),
    linear-gradient(180deg, var(--sodium-light), var(--sodium) 34%, #804011);
  box-shadow: 0 0 16px rgba(255, 139, 45, 0.07);
}

.ramp-stairs span b {
  position: absolute;
  left: 50%;
  bottom: -22px;
  color: var(--moon);
  font: 7px var(--mono);
  font-weight: 400;
  transform: translateX(-50%);
}

.ramp-stairs .peak {
  background:
    repeating-linear-gradient(0deg, rgba(5, 6, 8, 0.13) 0 5px, transparent 5px 6px),
    linear-gradient(180deg, #c2edff, var(--earth) 34%, var(--earth-deep));
}

.next-strike {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  color: var(--moon);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.next-strike strong {
  color: var(--earth);
  font-weight: 500;
}

.supply-map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(90, 186, 255, 0.09), transparent 42%),
    rgba(13, 16, 20, 0.9);
}

.supply-wheel {
  position: relative;
  display: grid;
  place-content: center;
  width: 205px;
  max-width: 70%;
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(var(--earth) 0 25.906%, var(--sodium) 25.906% 59.433%, #3e4447 59.433% 100%);
  box-shadow: 0 0 38px rgba(90, 186, 255, 0.08);
  text-align: center;
}

.supply-wheel::before {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: #0d1014;
  box-shadow: inset 0 0 0 1px var(--line);
}

.supply-wheel b,
.supply-wheel span {
  position: relative;
  z-index: 1;
}

.supply-wheel b {
  color: var(--ivory);
  font: 13px var(--display);
}

.supply-wheel span {
  color: var(--moon);
  font: 8px var(--mono);
}

.supply-wheel i {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  background: var(--earth);
  transform: translateX(-50%);
}

.supply-wheel i:nth-of-type(2) {
  left: 15%;
  top: 77%;
  background: var(--sodium);
}

.supply-wheel i:nth-of-type(3) {
  left: 87%;
  top: 66%;
  background: #3e4447;
}

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

.supply-keys div {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.supply-keys i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
}

.supply-keys span {
  color: var(--moon);
  font-size: 17px;
  line-height: 1.1;
}

.supply-keys b {
  grid-column: 2;
  color: var(--ivory);
  font: 8px var(--mono);
  font-weight: 400;
}

.key-reward { background: var(--earth); }
.key-ref { background: var(--sodium); }
.key-rest { background: #3e4447; }

.exchange-ledger {
  margin-top: 56px;
  padding-top: 31px;
  border-top: 1px solid var(--line-strong);
}

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

.exchange-head h3 {
  margin: 4px 0 5px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(25px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.exchange-head p:last-child {
  max-width: 670px;
  margin: 0;
  color: var(--moon);
  font-size: 19px;
}

.fee-stamp {
  flex: none;
  padding: 8px 11px;
  border: 1px solid var(--earth);
  color: var(--earth);
  font: 9px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.market-state {
  margin: 0 0 18px;
  color: var(--moon);
  font: 9px var(--mono);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 11px;
}

.market-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0c0f12;
}

.market-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.76);
  image-rendering: pixelated;
}

.market-body {
  padding: 10px;
  border-top: 1px solid var(--line);
}

.market-body > strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 9px;
}

.market-price strong {
  color: var(--earth);
  font: 500 11px var(--mono);
}

.market-price span {
  overflow: hidden;
  color: var(--moon);
  font: 7px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-body .hard-button,
.market-body .text-button {
  width: 100%;
}

.listing-bench {
  margin-top: 17px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(90, 186, 255, 0.035), transparent 42%),
    #0d1013;
}

.listing-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.seller-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.miner-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 7px;
  max-height: 330px;
  margin-top: 8px;
  padding-right: 4px;
  overflow: auto;
}

.miner-picker button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07090b;
  color: var(--ivory);
}

.miner-picker button.selected {
  border-color: var(--sodium);
  box-shadow: inset 0 0 0 1px var(--sodium);
}

.miner-picker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
}

.miner-picker span {
  display: block;
  overflow: hidden;
  padding: 5px;
  font: 7px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-form {
  display: flex;
  flex-direction: column;
}

.seller-form > label {
  margin-bottom: 7px;
}

.seller-form > input {
  min-height: 44px;
  padding: 9px 11px;
  font: 11px var(--mono);
}

.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 10px;
}

.chapter--faq {
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--regolith), #b9b4a7);
  clip-path: polygon(0 0, 49% 0, 49% 7px, 72% 7px, 72% 0, 100% 0, 100% 100%, 0 100%);
}

.chapter--faq::before {
  background:
    radial-gradient(circle at 84% 11%, rgba(90, 186, 255, 0.11), transparent 25%),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(5, 6, 8, 0.035) 59px 60px);
}

.faq-sheet {
  max-width: 1120px;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-entry {
  border-bottom: 1px solid rgba(5, 6, 8, 0.35);
}

.faq-entry summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  gap: 15px;
  align-items: center;
  min-height: 68px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
}

.faq-entry summary::-webkit-details-marker {
  display: none;
}

.faq-number {
  color: var(--sodium);
  font: 10px var(--mono);
}

.faq-question {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.16;
}

.faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.faq-toggle::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}

.faq-toggle::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.faq-entry[open] .faq-toggle::after {
  display: none;
}

.faq-answer {
  margin: 0 46px 21px 61px;
  padding: 13px 16px;
  border-left: 3px solid var(--sodium);
  background: rgba(5, 6, 8, 0.06);
  color: #343735;
  font-size: 19px;
  line-height: 1.32;
}

.endplate {
  padding: 54px 0 137px;
  border-top: 1px solid var(--line);
  background: #050608;
}

.endplate-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.endplate-brand > p {
  margin: 17px 0 4px;
  color: var(--ivory);
  font: 8px var(--mono);
}

.endplate-brand > span {
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endplate-links {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 22px;
}

.endplate-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.endplate-links span {
  color: var(--moon);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endplate-links code {
  color: var(--ivory);
  font: 9px var(--mono);
  overflow-wrap: anywhere;
}

.endplate-links .text-button {
  padding: 0;
  border-bottom: 0;
  color: var(--ivory);
  font-size: 9px;
  text-align: left;
}

.tab-rail {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 75;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(1030px, calc(100% - 24px));
  min-height: 72px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 10, 12, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(15px) saturate(1.2);
  transform: translateX(-50%);
}

.tab-rail::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 3px;
  background:
    linear-gradient(90deg, var(--sodium) 0 17%, transparent 17% 83%, var(--earth) 83% 100%);
}

.tab-rail a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 7px 7px;
  border-right: 1px solid var(--line);
  color: var(--moon);
  font: 8px var(--mono);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

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

.tab-rail a:hover,
.tab-rail a:focus-visible {
  color: var(--ivory);
  background: rgba(240, 234, 220, 0.055);
}

.tab-rail a:hover .tab-pixel {
  filter: brightness(1.3);
}

.tab-pixel {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  image-rendering: pixelated;
}

.tab-pixel::before,
.tab-pixel::after {
  content: "";
  position: absolute;
  display: block;
}

.tab-pixel--seal {
  width: 18px;
  height: 20px;
  border: 2px solid var(--sodium);
}

.tab-pixel--seal::before {
  left: 3px;
  right: 3px;
  top: 3px;
  height: 3px;
  background: var(--regolith);
}

.tab-pixel--seal::after {
  left: 6px;
  bottom: 3px;
  width: 2px;
  height: 6px;
  background: var(--sodium);
  box-shadow: 4px 0 0 var(--sodium);
}

.tab-pixel--stack {
  background: var(--regolith);
  clip-path: polygon(0 37%, 100% 37%, 100% 63%, 0 63%);
}

.tab-pixel--stack::before {
  left: 2px;
  top: 1px;
  width: 18px;
  height: 4px;
  background: var(--earth);
}

.tab-pixel--stack::after {
  left: 4px;
  bottom: 1px;
  width: 14px;
  height: 4px;
  background: var(--sodium);
}

.tab-pixel--path {
  background: var(--sodium);
  clip-path: polygon(0 77%, 28% 77%, 28% 54%, 54% 54%, 54% 29%, 78% 29%, 78% 0, 100% 0, 100% 100%, 0 100%);
}

.tab-pixel--path::after {
  left: 3px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  background: var(--sky);
}

.tab-pixel--cargo {
  border: 2px solid var(--earth);
}

.tab-pixel--cargo::before {
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  background: var(--regolith);
}

.tab-pixel--cargo::after {
  left: 8px;
  bottom: 4px;
  width: 2px;
  height: 7px;
  background: var(--sodium);
  box-shadow: 4px 0 0 var(--sodium);
}

.tab-pixel--token {
  background: var(--earth);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.tab-pixel--token::after {
  inset: 6px;
  background: var(--sky);
}

.tab-pixel--log {
  border: 2px solid var(--regolith);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}

.tab-pixel--log::before {
  left: 4px;
  top: 7px;
  width: 12px;
  height: 2px;
  background: var(--sodium);
  box-shadow: 0 5px 0 var(--sodium), 0 10px 0 var(--sodium);
}

.tab-pixel--log::after {
  right: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--regolith);
  border-bottom: 2px solid var(--regolith);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 3, 4, 0.87);
  backdrop-filter: blur(7px);
}

.modal.show {
  display: grid;
}

.modal-box {
  width: min(410px, 100%);
  padding: 20px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 139, 45, 0.07), transparent 38%),
    #101419;
  box-shadow: var(--shadow);
  clip-path: var(--step-corner);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  font: 18px var(--mono);
}

.wallet-options {
  display: grid;
  gap: 8px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 99px;
  z-index: 110;
  max-width: min(480px, calc(100% - 30px));
  padding: 10px 14px;
  border: 1px solid var(--sodium);
  background: #101316;
  color: var(--ivory);
  font: 9px/1.5 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 160ms steps(2), transform 160ms steps(2);
}

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

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

  .hero-panorama {
    left: 18%;
  }

  .reveal-stage {
    min-height: 560px;
  }

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

  .stratum > summary {
    min-height: 350px;
  }

  .stratum-picture {
    height: 220px;
  }

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

  .model-grid-preview .specimen-card:nth-child(n + 6) {
    display: block;
  }
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 36px, 1220px);
  }

  .top-rail {
    padding-inline: 18px;
    grid-template-columns: 1fr auto;
  }

  .survey-coord {
    display: none;
  }

  .hero-stage {
    min-height: auto;
    padding: 122px 0 140px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-panorama {
    inset: 0;
    clip-path: none;
  }

  .hero-panorama::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.46), rgba(5, 6, 8, 0.86) 58%, var(--sky) 96%),
      linear-gradient(90deg, rgba(5, 6, 8, 0.88), transparent 75%);
  }

  .hero-words h1 {
    max-width: 740px;
  }

  .reveal-stage {
    width: min(100%, 610px);
    min-height: 600px;
    margin-inline: auto;
  }

  .intake-shop,
  .quest-yard,
  .cargo-console,
  .helium-ledger {
    grid-template-columns: 1fr;
  }

  .shop-relic,
  .quest-card--agent {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .shop-relic {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px 24px;
    align-items: center;
  }

  .item-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .relic-window {
    grid-row: 2 / 4;
    width: 100%;
  }

  .relic-caption {
    margin: 0;
  }

  .relic-odds {
    margin-top: 0;
    padding-top: 13px;
  }

  .folio-head {
    grid-template-columns: 80px minmax(0, 1fr) auto;
  }

  .folio-rule {
    display: none;
  }

  .folio-number {
    font-size: 54px;
  }

  .folio-code {
    max-width: 130px;
    white-space: normal;
  }

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

  .shift-spread {
    grid-template-columns: 1fr;
  }

  .shift-visual {
    min-height: 470px;
  }

  .story-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .endplate-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .tab-rail {
    width: calc(100% - 16px);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 19px;
  }

  .top-rail {
    height: 62px;
    padding-inline: 13px;
    gap: 8px;
  }

  .wordmark {
    gap: 7px;
    font-size: 13px;
  }

  .wordmark-cap {
    transform: scale(0.82);
    transform-origin: left center;
  }

  .wordmark-code {
    display: none;
  }

  .top-tools {
    gap: 5px;
  }

  .top-tools .hard-button {
    min-width: 78px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 9px;
  }

  select {
    width: 76px;
    min-height: 36px;
    padding: 6px 18px 6px 6px;
    font-size: 8px;
  }

  .hero-stage {
    padding: 98px 0 115px;
  }

  .hero-words h1 {
    font-size: clamp(36px, 11vw, 54px);
    letter-spacing: -0.055em;
  }

  .chapter-line {
    margin-bottom: 17px;
    font-size: 8px;
  }

  .hero-note {
    margin-top: 20px;
    font-size: 20px;
  }

  .hero-actions {
    gap: 17px;
  }

  .hero-actions .hard-button {
    flex: 1;
    min-width: 175px;
  }

  .mission-tape {
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }

  .mission-tape div:nth-child(2) {
    border-right: 0;
  }

  .mission-tape div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .reveal-stage {
    min-height: 470px;
  }

  .earthrise {
    right: 0;
    width: 175px;
  }

  .relic-float {
    left: 9%;
    top: 23%;
    width: 79%;
  }

  .stage-tag--right {
    right: 2%;
    bottom: 22%;
    max-width: 115px;
    font-size: 7px;
  }

  .pedestal {
    bottom: 2%;
    height: 125px;
  }

  .chapter {
    padding: 76px 0;
  }

  .folio-head {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 31px;
  }

  .folio-number {
    font-size: 43px;
  }

  .folio-code {
    display: none;
  }

  .folio-head h2 {
    font-size: clamp(23px, 7vw, 32px);
  }

  .folio-lede {
    font-size: 18px;
  }

  .shop-relic {
    display: block;
    padding: 18px;
  }

  .item-label {
    display: flex;
  }

  .relic-window {
    width: min(100%, 330px);
    margin-inline: auto;
  }

  .relic-caption {
    margin-top: 16px;
  }

  .relic-odds {
    margin-top: 20px;
  }

  .shop-console {
    padding: 19px 18px 25px;
  }

  .console-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .countdown-label {
    text-align: left;
  }

  .progress-ledger strong {
    font-size: 52px;
  }

  .segmented-progress {
    height: 15px;
    gap: 2px;
  }

  .countdown strong {
    font-size: 17px;
  }

  .countdown span {
    font-size: 7px;
  }

  .countdown > b {
    font-size: 16px;
  }

  .purchase-row {
    align-items: stretch;
    flex-direction: column;
  }

  .price-ticket {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-height: 44px;
  }

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

  .receipt > div:nth-child(2) {
    border-right: 0;
  }

  .receipt > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .quest-card--agent {
    grid-template-columns: 55px minmax(0, 1fr);
    padding: 20px 17px;
  }

  .quest-sigil {
    transform: scale(0.76);
    transform-origin: left top;
  }

  .quest-card--x {
    padding: 21px 17px;
  }

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

  .x-check-row .hard-button {
    width: 100%;
    flex: none;
  }

  .manual-entry summary {
    grid-template-columns: 33px minmax(0, 1fr) 18px;
    gap: 9px;
  }

  .manual-entry summary > b {
    font-size: 17px;
  }

  .manual-body {
    padding: 0 20px 16px 42px;
  }

  .strata-stack {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .stratum-picture {
    height: 190px;
  }

  .stratum > summary {
    min-height: 315px;
  }

  .stratum-title {
    font-size: 10px;
  }

  .model-grid,
  .model-grid-preview {
    grid-template-columns: 1fr 1fr;
  }

  .register-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shift-visual {
    min-height: 355px;
    border-width: 5px;
  }

  .shift-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .shift-steps li > div {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 10px;
  }

  .step-glyph {
    transform: scale(0.82);
    transform-origin: left top;
  }

  .shift-steps p {
    font-size: 19px;
  }

  .story-quote {
    font-size: 21px;
  }

  .claim-dial,
  .invite-strip,
  .ramp-chart,
  .supply-map,
  .listing-bench {
    padding: 19px;
  }

  .invite-heading,
  .ledger-title {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .copy-field {
    flex-direction: column;
  }

  .copy-field .text-button {
    align-self: flex-start;
  }

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

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

  .ramp-stairs {
    height: 195px;
  }

  .exchange-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .seller-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .faq-entry summary {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  .faq-question {
    font-size: 19px;
  }

  .faq-answer {
    margin: 0 20px 17px 42px;
    padding: 11px 13px;
    font-size: 18px;
  }

  .endplate {
    padding-bottom: 125px;
  }

  .endplate-links {
    grid-template-columns: 1fr;
  }

  .tab-rail {
    bottom: max(7px, env(safe-area-inset-bottom));
    min-height: 67px;
  }

  .tab-rail a {
    gap: 4px;
    padding: 6px 2px;
    font-size: 7px;
  }

  .tab-pixel {
    transform: scale(0.84);
  }

  .toast {
    bottom: 85px;
  }
}

@media (max-width: 410px) {
  .wrap {
    width: calc(100% - 26px);
  }

  .wordmark {
    font-size: 11px;
  }

  .wordmark-cap {
    width: 22px;
    transform: scale(0.7);
  }

  .top-tools .hard-button {
    min-width: 67px;
    padding-inline: 7px;
    font-size: 8px;
  }

  select {
    width: 66px;
    font-size: 7px;
  }

  .hero-words h1 {
    font-size: 34px;
  }

  .reveal-stage {
    min-height: 410px;
  }

  .earthrise {
    width: 145px;
  }

  .folio-head h2 {
    font-size: 22px;
  }

  .mini-odds {
    grid-template-columns: 1fr;
  }

  .quantity-control {
    grid-template-columns: 37px minmax(45px, 1fr) 37px auto;
  }

  .quantity-control .qty-max {
    padding-inline: 9px;
  }

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

  .tab-rail a {
    font-size: 6.5px;
  }
}

@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;
  }
}
