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

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

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

:root {
  --void: #090604;
  --coal: #120d09;
  --coal-2: #1a110c;
  --gold: #efbd4f;
  --gold-bright: #ffd873;
  --red: #b82132;
  --magma: #ff6a1a;
  --ink: #f5e7ca;
  --muted: #b7a385;
  --line: rgba(239, 189, 79, 0.25);
  --line-red: rgba(184, 33, 50, 0.55);
  --display: "Workbench", "Courier New", monospace;
  --body: "VT323", "Courier New", monospace;
  --mono: "DMMono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 560px at 82% 3%, rgba(184, 33, 50, 0.2), transparent 68%),
    radial-gradient(680px 500px at 6% 26%, rgba(239, 189, 79, 0.08), transparent 60%),
    linear-gradient(180deg, #090604 0%, #0d0805 52%, #090604 100%);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.38;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(239, 189, 79, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 189, 79, 0.02) 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fixed pixel atmosphere, deliberately sparse so the art carries the scene. */
.pixel-atmosphere,
.atlas-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.pixel-atmosphere {
  z-index: 30;
  opacity: 0.28;
  background:
    radial-gradient(circle at 18% 39%, rgba(255, 106, 26, 0.9) 0 2px, transparent 2.5px),
    radial-gradient(circle at 74% 71%, rgba(239, 189, 79, 0.82) 0 1px, transparent 2px);
  background-size: 97px 83px, 131px 109px;
}

.atlas-noise {
  z-index: 31;
  opacity: 0.13;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 4px,
    rgba(9, 6, 4, 0.7) 4px 5px
  );
  mix-blend-mode: multiply;
}

.atlas-wrap {
  width: min(1180px, calc(100% - 42px));
  margin-inline: auto;
}

/* Header: a stitched map tab, not a dashboard bar. */
.trail-header {
  position: sticky;
  top: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
  padding: 0 max(21px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(239, 189, 79, 0.045) 1px, transparent 1px),
    rgba(9, 6, 4, 0.9);
  background-size: 21px 100%;
  backdrop-filter: blur(13px) saturate(1.2);
}

.trail-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 36px,
    var(--gold) 36px 42px,
    transparent 42px 45px
  );
  opacity: 0.8;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  white-space: nowrap;
}

.brand-word {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.055em;
}

.brand-word b {
  color: var(--gold);
  font-weight: 400;
}

.sigil-eye {
  position: relative;
  display: block;
  width: 30px;
  height: 24px;
  border: 2px solid var(--gold);
  background: var(--red);
  clip-path: polygon(12% 35%, 24% 35%, 24% 18%, 40% 18%, 40% 5%, 62% 5%, 62% 18%, 78% 18%, 78% 35%, 91% 35%, 91% 70%, 78% 70%, 78% 88%, 62% 88%, 62% 100%, 40% 100%, 40% 88%, 24% 88%, 24% 70%, 12% 70%);
}

.sigil-eye::before,
.sigil-eye::after {
  content: "";
  position: absolute;
  background: var(--void);
}

.sigil-eye::before {
  left: 10px;
  top: 5px;
  width: 10px;
  height: 14px;
}

.sigil-eye::after {
  left: 13px;
  top: 9px;
  width: 4px;
  height: 6px;
  background: var(--gold-bright);
}

.sigil-eye i {
  position: absolute;
  right: 3px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.trail-coordinate {
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: 0.12em;
}

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

.language-gate select {
  max-width: 104px;
  height: 34px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--coal);
  color: var(--gold-bright);
  font: 11px var(--mono);
}

.map-ribbon {
  position: sticky;
  top: 66px;
  z-index: 42;
  overflow: hidden;
  height: 31px;
  border-bottom: 1px solid rgba(184, 33, 50, 0.55);
  background: var(--red);
}

.ribbon-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 17px;
  padding-inline: 18px;
  color: var(--gold-bright);
  font: 12px var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  animation: ribbon-run 32s linear infinite;
}

.ribbon-track a {
  color: var(--gold-bright);
  white-space: nowrap;
}

.ribbon-track b {
  color: var(--ink);
  font-size: 9px;
}

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

.action {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: filter 0.16s, transform 0.16s, background 0.16s, border-color 0.16s;
}

.action:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  filter: none;
}

.action-hot {
  color: var(--void);
  background: var(--gold);
  border-color: var(--gold-bright);
  box-shadow: 4px 4px 0 rgba(184, 33, 50, 0.55);
}

.action-quiet {
  color: var(--ink);
  background: var(--coal);
  border-color: var(--line);
}

.action-quiet:hover {
  background: var(--coal-2);
  border-color: var(--gold);
}

.action-compact {
  min-height: 35px;
  padding: 8px 13px;
  font-size: 11px;
}

.action-small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px;
}

.action-tiny {
  min-height: 33px;
  padding: 7px 10px;
  font-size: 10px;
}

.action-wide {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--gold);
  font: 12px var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--magma);
  box-shadow: 3px 3px 0 var(--red);
  transform: rotate(45deg);
}

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

.chapter-heading,
.station-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}

.chapter-heading h2,
.station-heading h2,
.story-intro h2,
.faq-intro h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 61px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.chapter-note {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.chapter-heading > .chapter-note {
  max-width: 420px;
  margin: 0 0 3px;
  text-align: right;
}

/* Hero atlas: layered art, numbered locations, and a map instead of a generic split panel. */
.atlas-hero {
  position: relative;
  min-height: 785px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.atlas-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--void);
}

.atlas-layer {
  position: absolute;
  inset: -8%;
  overflow: hidden;
  will-change: transform;
}

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

.atlas-layer--far {
  opacity: 0.5;
  filter: brightness(0.33) saturate(0.7) contrast(1.2);
  animation: atlas-drift 24s ease-in-out infinite alternate;
}

.atlas-layer--far img {
  object-position: 70% 34%;
  transform: scale(1.08);
}

.atlas-layer--near {
  opacity: 0.65;
  mix-blend-mode: screen;
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 42% 100%, 47% 76%, 38% 49%);
  filter: sepia(0.35) saturate(1.2) brightness(0.55);
  animation: atlas-drift-alt 18s ease-in-out infinite alternate;
}

.atlas-layer--near img {
  object-position: 78% 44%;
  transform: scale(1.16);
}

.atlas-grid {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(239, 189, 79, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 189, 79, 0.07) 1px, transparent 1px);
  background-size: 47px 47px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.atlas-mist {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 6, 4, 0.95) 0%, rgba(9, 6, 4, 0.65) 46%, rgba(9, 6, 4, 0.2) 100%),
    linear-gradient(0deg, var(--void) 0%, transparent 38%),
    radial-gradient(circle at 68% 43%, transparent 0 16%, rgba(184, 33, 50, 0.16) 44%, rgba(9, 6, 4, 0.54) 76%);
}

.atlas-wrap {
  position: relative;
}

.atlas-hero > .atlas-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.8fr);
  gap: 44px;
  align-items: center;
  min-height: 785px;
  padding-top: 66px;
  padding-bottom: 66px;
}

.atlas-intro {
  max-width: 750px;
  animation: map-arrive 0.75s ease both;
}

.atlas-intro h1 {
  max-width: 730px;
  margin: 12px 0 17px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(51px, 6.1vw, 88px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.91;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 5px 0 0 rgba(184, 33, 50, 0.5), -3px 0 0 rgba(239, 189, 79, 0.17);
}

.atlas-intro h1 span {
  display: block;
}

.atlas-intro h1 span:last-child {
  color: var(--gold-bright);
}

.atlas-lede {
  max-width: 680px;
  margin: 0;
  color: #d2c3a7;
  font-size: 22px;
  line-height: 1.34;
}

.atlas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 27px 0 29px;
}

.hero-coordinates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 675px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-coordinates div {
  padding: 12px 10px 10px;
  border-right: 1px solid var(--line);
}

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

.hero-coordinates strong {
  display: block;
  color: var(--gold-bright);
  font: 18px var(--display);
  letter-spacing: 0.03em;
}

.hero-coordinates span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.atlas-map-wrap {
  position: relative;
  width: min(100%, 435px);
  justify-self: end;
  padding: 10px;
  border: 1px solid rgba(239, 189, 79, 0.58);
  background: rgba(18, 13, 9, 0.8);
  box-shadow: 10px 10px 0 rgba(184, 33, 50, 0.2);
  animation: map-arrive 0.9s 0.12s ease both;
}

.atlas-map-wrap::before,
.atlas-map-wrap::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--magma);
}

.atlas-map-wrap::before {
  top: -5px;
  left: -5px;
}

.atlas-map-wrap::after {
  right: -5px;
  bottom: -5px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 3px 11px;
  color: var(--gold);
  font: 11px var(--mono);
  letter-spacing: 0.09em;
}

.map-legend-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.map-legend-note {
  color: var(--muted);
  font-size: 9px;
}

.map-canvas {
  position: relative;
  aspect-ratio: 0.87;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #160d08;
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(239, 189, 79, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 189, 79, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
  opacity: 0.28;
}

.map-canvas > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(0.75) contrast(1.16) brightness(0.67) sepia(0.12);
}

.map-ridge {
  position: absolute;
  z-index: 1;
  display: block;
  border: 2px solid var(--red);
  border-radius: 49% 51% 4% 5%;
  opacity: 0.8;
  transform: rotate(-12deg);
}

.map-ridge--one {
  top: 18%;
  left: 12%;
  width: 62%;
  height: 33%;
  box-shadow: 0 0 0 10px rgba(184, 33, 50, 0.13), 0 0 0 20px rgba(255, 106, 26, 0.06);
}

.map-ridge--two {
  right: 7%;
  bottom: 19%;
  width: 53%;
  height: 25%;
  border-color: var(--gold);
  transform: rotate(18deg);
  opacity: 0.48;
}

.map-river {
  position: absolute;
  z-index: 1;
  top: 24%;
  left: 21%;
  width: 2px;
  height: 58%;
  background: var(--magma);
  box-shadow: 26px 2px 0 var(--magma), 55px -3px 0 var(--magma), 83px 1px 0 var(--magma);
  transform: rotate(28deg);
  opacity: 0.74;
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 6px 4px 5px;
  border: 1px solid var(--gold);
  background: rgba(9, 6, 4, 0.86);
  color: var(--ink);
  font: 10px var(--mono);
  line-height: 1;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(9, 6, 4, 0.72);
  transition: transform 0.16s, background 0.16s, color 0.16s;
}

.map-pin b {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  background: var(--red);
  color: var(--gold-bright);
  font: 10px var(--mono);
}

.map-pin:hover {
  transform: translate(-2px, -2px);
  background: var(--gold);
  color: var(--void);
}

.map-pin:hover b {
  background: var(--void);
  color: var(--gold-bright);
}

.pin-01 {
  top: 19%;
  left: 8%;
}

.pin-02 {
  top: 11%;
  right: 7%;
}

.pin-03 {
  top: 35%;
  right: 5%;
}

.pin-04 {
  top: 48%;
  left: 7%;
}

.pin-05 {
  right: 9%;
  bottom: 30%;
}

.pin-06 {
  left: 14%;
  bottom: 19%;
}

.pin-07 {
  right: 17%;
  bottom: 8%;
}

.map-coordinates {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 3px 1px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

@keyframes atlas-drift {
  from {
    transform: translate3d(-1.5%, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(1.5%, -1.2%, 0) scale(1.05);
  }
}

@keyframes atlas-drift-alt {
  from {
    transform: translate3d(1.8%, 1%, 0) scale(1.03);
  }
  to {
    transform: translate3d(-1.8%, -1.2%, 0) scale(1.06);
  }
}

@keyframes map-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The mint receipt is intentionally paper-like, with stepped perforations. */
.mint-station {
  position: relative;
  padding: 84px 0 92px;
  background:
    radial-gradient(680px 400px at 85% 24%, rgba(255, 106, 26, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(26, 17, 12, 0.42), transparent 72%);
  scroll-margin-top: 98px;
}

.station-heading {
  align-items: flex-end;
}

.station-stamp {
  color: var(--magma);
  font: 11px var(--mono);
  letter-spacing: 0.11em;
  border-bottom: 1px solid var(--line-red);
  padding-bottom: 5px;
  white-space: nowrap;
}

.ticket-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.mint-receipt {
  position: relative;
  padding: 31px 29px 34px;
  border: 2px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(239, 189, 79, 0.05), transparent 38%),
    repeating-linear-gradient(0deg, rgba(239, 189, 79, 0.025) 0 1px, transparent 1px 22px),
    var(--coal);
  box-shadow: 11px 11px 0 rgba(0, 0, 0, 0.38);
}

.mint-receipt::before,
.mint-receipt::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--void) 0 6px,
    var(--gold) 6px 8px,
    var(--gold) 8px 13px,
    var(--void) 13px 16px
  );
}

.mint-receipt::before {
  top: -6px;
}

.mint-receipt::after {
  bottom: -6px;
}

.receipt-perf {
  position: absolute;
  z-index: 1;
  right: 12px;
  left: 12px;
  height: 3px;
  border-top: 1px dashed rgba(239, 189, 79, 0.4);
}

.receipt-perf--top {
  top: 10px;
}

.receipt-perf--bottom {
  bottom: 10px;
}

.receipt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.signal-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: rgba(239, 189, 79, 0.055);
  font: 11px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signal-state.live {
  border-color: var(--line-red);
  color: #ffb98d;
  background: rgba(184, 33, 50, 0.15);
}

.signal-state.warn {
  border-color: var(--red);
  color: #ffc2a7;
}

.signal-pulse {
  width: 7px;
  height: 7px;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(239, 189, 79, 0.8);
  animation: signal-blink 2.2s steps(2, end) infinite;
}

.signal-state.live .signal-pulse {
  background: var(--magma);
  box-shadow: 0 0 9px rgba(255, 106, 26, 0.8);
}

.receipt-timer {
  color: var(--muted);
  font: 11px var(--mono);
  text-align: right;
}

.supply-readout {
  margin-top: 18px;
}

.receipt-label {
  display: block;
  color: var(--gold);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supply-readout > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 3px;
}

.supply-readout strong {
  color: var(--ink);
  font: clamp(42px, 5.4vw, 68px) / 0.9 var(--display);
  letter-spacing: 0.02em;
}

.supply-readout div span {
  color: var(--muted);
  font: 16px var(--mono);
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  height: 16px;
  margin: 15px 0 14px;
}

.meter-grid i {
  display: block;
  border: 1px solid rgba(239, 189, 79, 0.2);
  background: var(--void);
  transition: background 0.3s, box-shadow 0.3s;
}

.meter-grid i.on {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 7px rgba(239, 189, 79, 0.45);
}

.countdown-dials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--void);
}

.countdown-dials div {
  padding: 10px 7px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}

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

.countdown-dials strong {
  display: block;
  color: var(--gold-bright);
  font: clamp(24px, 3.1vw, 36px) / 1 var(--display);
}

.countdown-dials span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-line {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  padding: 8px 11px;
  border-left: 3px solid var(--magma);
  background: rgba(255, 106, 26, 0.07);
  color: #dbc8aa;
  font-size: 18px;
}

.notice-line i {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--magma);
}

.notice-line p {
  margin: 0;
}

.notice-line.eligible {
  border-left-color: var(--gold);
  background: rgba(239, 189, 79, 0.08);
  color: var(--gold-bright);
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 11px;
  padding-inline: 0;
  padding-top: 15px;
  padding-bottom: 0;
  border: 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}

.quantity-row > .receipt-label {
  margin-right: auto;
}

.quantity-row > legend.receipt-label {
  float: left;
  padding: 0;
}

.quantity-stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--void);
}

.quantity-stepper button {
  width: 37px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: 22px var(--mono);
}

.quantity-stepper button:hover {
  background: var(--coal-2);
}

.quantity-stepper input {
  width: 61px;
  height: 38px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  background: var(--void);
  color: var(--ink);
  font: 15px var(--mono);
  text-align: center;
  appearance: textfield;
}

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

.receipt-lines {
  margin: 0 0 15px;
  border-top: 1px solid var(--line);
}

.receipt-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 13px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.receipt-line dt {
  margin: 0;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-line dd {
  margin: 0;
}

.receipt-line output {
  color: var(--ink);
  font: 13px var(--mono);
  font-weight: 400;
  text-align: right;
}

.receipt-line--total {
  background: rgba(239, 189, 79, 0.04);
}

.receipt-line--total dt,
.receipt-line--total output {
  color: var(--gold-bright);
}

.receipt-line--earn {
  border-bottom: 0;
  background: rgba(184, 33, 50, 0.1);
}

.receipt-line--earn dt {
  color: var(--gold-bright);
}

.receipt-line--earn output {
  color: var(--magma);
}

.mint-trigger {
  margin-top: 2px;
}

.feedback {
  display: none;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.feedback.show {
  display: block;
}

.feedback.ok {
  border-color: rgba(239, 189, 79, 0.5);
  color: var(--gold-bright);
  background: rgba(239, 189, 79, 0.06);
}

.feedback.err {
  border-color: var(--line-red);
  color: #ffb49e;
  background: rgba(184, 33, 50, 0.12);
}

.referral-tag {
  margin: 9px 0 0;
  color: var(--gold-bright);
  font: 11px var(--mono);
}

.verify-docket {
  margin-top: 21px;
  padding: 16px;
  border: 1px dashed rgba(239, 189, 79, 0.38);
  background: rgba(9, 6, 4, 0.43);
}

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

.docket-heading h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.x-seal {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 14px var(--display);
}

.docket-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 17px;
}

.verify-docket .receipt-label {
  margin: 12px 0 5px;
}

.verify-docket textarea,
.verify-docket input,
.seller-form input,
.copy-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--void);
  color: var(--ink);
  outline: none;
}

.verify-docket textarea {
  min-height: 151px;
  padding: 10px;
  resize: vertical;
  color: #d8c9ad;
  font: 12px / 1.55 var(--mono);
}

.verify-docket input {
  padding: 9px 10px;
  font: 12px var(--mono);
}

.docket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.docket-actions--main {
  margin-top: 10px;
}

.docket-actions--main .action {
  flex: 1;
}

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

.docket-note {
  margin: 10px 0 0;
  color: var(--muted);
  font: 11px / 1.35 var(--mono);
}

/* Rules are badges pinned to the side of the receipt. */
.lane-board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(184, 33, 50, 0.08), transparent 36%),
    var(--coal);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.lane-board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.lane-board-mark {
  color: var(--magma);
  font: 9px var(--mono);
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.rule-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rule-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 82px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  background: rgba(9, 6, 4, 0.55);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.rule-badge b {
  color: var(--gold);
  font: 16px var(--display);
  font-weight: 400;
  line-height: 1;
}

.rule-badge span {
  color: #c7b89f;
  font-size: 14px;
  line-height: 1.18;
}

.rule-badge--wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.rule-badge--wide b {
  color: var(--magma);
}

.lane-gauges {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--void);
}

.lane-gauge-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lane-gauge-title span {
  color: var(--ink);
  font-size: 17px;
}

.lane-gauge-title b {
  color: var(--gold-bright);
  font: 11px var(--mono);
  font-weight: 400;
}

.lane-gauge-title i {
  font-style: normal;
}

.gauge-track {
  height: 8px;
  margin-top: 5px;
  border: 1px solid var(--line);
  background: var(--coal);
  overflow: hidden;
}

.gauge-track i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--magma) 0 7px, var(--gold) 7px 12px);
  transition: width 0.35s;
}

.gauge-track--x i {
  background: repeating-linear-gradient(90deg, var(--red) 0 7px, var(--gold) 7px 12px);
}

.lane-gauge small {
  display: block;
  margin-top: 5px;
  min-height: 15px;
  color: var(--muted);
  font: 10px / 1.3 var(--mono);
}

.egg-vault {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--void);
}

.egg-vault img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08);
}

.egg-vault figcaption {
  padding: 10px;
  border-top: 1px solid var(--line);
  color: #c7b89f;
  font-size: 15px;
  line-height: 1.2;
}

.odds-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 11px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.odds-line {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.odds-line i {
  width: 6px;
  height: 6px;
  background: var(--tier, var(--gold));
  box-shadow: 2px 2px 0 rgba(184, 33, 50, 0.7);
}

.odds-line span {
  min-width: 0;
  overflow: hidden;
  color: #c7b89f;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-line b {
  color: var(--gold-bright);
  font: 10px var(--mono);
  font-weight: 400;
}

/* Hoard ledger */
.hoard-ledger,
.exchange-hall,
.vault-shelf,
.badge-archive,
.oracle-log {
  padding: 80px 0 88px;
  border-bottom: 1px solid rgba(239, 189, 79, 0.1);
  scroll-margin-top: 98px;
}

.hoard-ledger {
  background: radial-gradient(720px 400px at 80% 15%, rgba(239, 189, 79, 0.07), transparent 68%);
}

.ledger-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 18px;
}

.ramp-scroll,
.supply-prism,
.seller-sheet {
  border: 1px solid var(--line);
  background: var(--coal);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.25);
}

.ramp-scroll,
.supply-prism {
  padding: 21px;
}

.ledger-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.ramp-columns {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 199px;
  margin: 22px 0 12px;
  padding: 0 3px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(239, 189, 79, 0.07) 40px);
}

.ramp-columns span {
  position: relative;
  display: block;
  flex: 1;
  height: var(--h);
  min-height: 10px;
  background: repeating-linear-gradient(0deg, var(--red) 0 8px, var(--magma) 8px 12px);
  border-top: 2px solid var(--gold);
}

.ramp-columns span i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(239, 189, 79, 0.18));
}

.ramp-columns span b {
  position: absolute;
  bottom: -20px;
  left: 50%;
  color: var(--muted);
  font: 9px var(--mono);
  font-weight: 400;
  transform: translateX(-50%);
}

.ramp-columns .is-peak {
  background: repeating-linear-gradient(0deg, var(--magma) 0 8px, var(--gold) 8px 12px);
}

.next-mint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.next-mint-row strong {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.prism-layout {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
}

.prism-ring {
  position: relative;
  display: grid;
  width: 170px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 58.322%, var(--red) 58.322% 59.433%, var(--coal-2) 59.433% 100%);
  box-shadow: 0 0 0 6px rgba(239, 189, 79, 0.05), 0 0 35px rgba(255, 106, 26, 0.12);
}

.prism-ring::before {
  content: "";
  position: absolute;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coal);
}

.prism-ring span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font: 22px / 0.95 var(--display);
  text-align: center;
}

.prism-ring small {
  color: var(--muted);
  font: 9px var(--mono);
}

.prism-legend {
  display: grid;
  gap: 13px;
}

.prism-legend div {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
}

.prism-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  background: var(--gold);
  box-shadow: 2px 2px 0 rgba(184, 33, 50, 0.65);
}

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

.prism-dot--dim {
  background: var(--coal-2);
}

.prism-legend span {
  color: var(--muted);
  font-size: 15px;
}

.prism-legend strong {
  grid-column: 2;
  color: var(--ink);
  font: 11px var(--mono);
  font-weight: 400;
}

.supply-total {
  margin: 0;
  color: var(--gold);
  font: 11px var(--mono);
}

/* Exchange */
.exchange-hall {
  background:
    linear-gradient(90deg, rgba(239, 189, 79, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 12, 7, 0.73), rgba(9, 6, 4, 0.56));
  background-size: 43px 100%, 100% 100%;
}

.chapter-heading--market {
  align-items: flex-end;
}

.fee-plate {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--line-red);
  color: #ffc08e;
  background: rgba(184, 33, 50, 0.12);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-readout {
  margin: -13px 0 20px;
  color: var(--muted);
  font: 11px var(--mono);
}

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

.lot-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--coal);
  animation: map-arrive 0.35s ease both;
}

.lot-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 50%, var(--magma) 50% 64%, transparent 64%);
}

.lot-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--void);
  filter: hue-rotate(var(--hue, 0deg)) saturate(0.9);
}

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

.lot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.lot-copy strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.lot-price strong {
  color: var(--gold-bright);
  font: 18px var(--display);
  font-weight: 400;
}

.lot-price span {
  max-width: 52%;
  overflow: hidden;
  color: var(--muted);
  font: 9px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-copy .action {
  width: 100%;
}

.seller-desk {
  margin-top: 19px;
}

.seller-sheet {
  padding: 20px;
}

.seller-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.seller-heading .receipt-label {
  margin: 7px 0 0;
}

.seller-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  margin-top: 16px;
}

.seller-layout .receipt-label {
  margin-bottom: 7px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(77px, 1fr));
  gap: 7px;
  max-height: 313px;
  overflow: auto;
  padding-right: 3px;
}

.picker-grid button {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--ink);
}

.picker-grid button.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--red);
}

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

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

.seller-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.seller-form > legend.receipt-label {
  margin-bottom: 1px;
  padding: 0;
}

.seller-form input {
  padding: 10px;
  font: 13px var(--mono);
}

.seller-form .docket-note {
  margin: 1px 0 5px;
}

.seller-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-buttons .action {
  flex: 1;
  min-width: 145px;
}

/* Player vault */
.vault-shelf {
  background: radial-gradient(650px 390px at 15% 14%, rgba(184, 33, 50, 0.12), transparent 68%);
}

.vault-console {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 17px;
  margin-bottom: 17px;
}

.hoard-counter,
.invite-slip {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--coal);
}

.hoard-counter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 184px;
  background:
    radial-gradient(circle at 84% 16%, rgba(239, 189, 79, 0.16), transparent 34%),
    linear-gradient(140deg, rgba(184, 33, 50, 0.11), var(--coal));
}

.hoard-counter > strong {
  display: block;
  margin: 6px 0 13px;
  color: var(--gold-bright);
  font: clamp(43px, 5.3vw, 66px) / 1 var(--display);
  letter-spacing: 0.01em;
}

.hoard-counter .action {
  align-self: flex-start;
}

.invite-slip > .ledger-copy {
  margin-top: 2px;
  font-size: 16px;
}

.copy-row {
  display: flex;
  margin: 3px 0 12px;
}

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

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

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

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

.invite-stats span {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.invite-stats strong {
  color: var(--gold-bright);
  font: 19px var(--display);
  font-weight: 400;
}

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

.vault-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.held-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 13px;
}

.held-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--coal);
  animation: map-arrive 0.35s ease both;
}

.held-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--void);
  filter: hue-rotate(var(--hue, 0deg));
}

.held-card.is-sealed img {
  box-sizing: border-box;
  padding: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(239, 189, 79, 0.19));
}

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

.held-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.held-copy strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.held-copy .action {
  width: 100%;
  margin-top: 8px;
}

.sealed-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 5px;
  border: 1px solid rgba(239, 189, 79, 0.5);
  background: rgba(9, 6, 4, 0.8);
  color: var(--gold);
  font: 8px var(--mono);
  letter-spacing: 0.07em;
}

.tier-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier, var(--gold));
  box-shadow: 0 0 6px var(--tier, var(--gold));
}

.empty-card {
  grid-column: 1 / -1;
  display: grid;
  min-height: 138px;
  place-items: center;
  padding: 23px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font: 11px var(--mono);
  text-align: center;
}

/* Rank badges and the index are one continuous archive. */
.badge-archive {
  background:
    linear-gradient(90deg, rgba(239, 189, 79, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 13, 8, 0.64), rgba(9, 6, 4, 0.4));
  background-size: 48px 100%, 100% 100%;
}

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

.rank-badge {
  position: relative;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--coal);
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: transform 0.22s, border-color 0.22s;
}

.rank-badge:hover {
  transform: translateY(-4px);
  border-color: var(--tier, var(--gold));
}

.rank-badge > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.64);
  transition: transform 0.4s, filter 0.22s;
}

.rank-badge:hover > img {
  transform: scale(1.055);
  filter: saturate(1) brightness(0.77);
}

.rank-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(9, 6, 4, 0.98) 4%, rgba(9, 6, 4, 0.66) 48%, transparent 81%);
}

.rank-top {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tier, var(--gold));
  font: 9px var(--mono);
}

.rank-top b {
  color: var(--ink);
  font: 13px var(--display);
  font-weight: 400;
}

.rank-copy {
  padding: 13px 11px;
  border-top: 2px solid var(--tier, var(--gold));
}

.rank-copy h3 {
  margin: 0;
  color: var(--ink);
  font: 18px / 1 var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

.rank-copy p {
  margin: 6px 0;
  color: #c7b89f;
  font: 9px / 1.35 var(--mono);
  text-transform: uppercase;
}

.rank-copy strong {
  display: block;
  color: var(--tier, var(--gold));
  font: 11px var(--mono);
  font-weight: 400;
}

.rank-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.archive-book {
  margin-top: 38px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.archive-heading h3 {
  margin: 5px 0 6px;
  color: var(--ink);
  font: 28px var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

.archive-heading p:last-child {
  margin: 0;
  max-width: 690px;
  color: var(--muted);
  font-size: 15px;
}

.archive-stacks {
  display: grid;
  gap: 20px;
}

.archive-stack {
  display: grid;
  gap: 8px;
}

.archive-stack-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-stack-head i {
  width: 7px;
  height: 7px;
  background: var(--tier, var(--gold));
  box-shadow: 2px 2px 0 rgba(184, 33, 50, 0.7);
}

.archive-stack-head h4 {
  margin: 0;
  color: var(--ink);
  font: 16px var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

.archive-stack-head span {
  margin-left: auto;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}

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

.model-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--void);
  transition: transform 0.18s, border-color 0.18s;
}

.model-tile:hover {
  transform: translateY(-3px);
  border-color: var(--tier, var(--gold));
}

.model-tile-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.model-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(var(--hue)) saturate(0.9);
}

.model-tile-image > span {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 4px;
  border: 1px solid rgba(239, 189, 79, 0.35);
  background: rgba(9, 6, 4, 0.78);
  color: var(--gold);
  font: 8px var(--mono);
}

.model-tile-copy {
  padding: 7px 8px 8px;
  border-top: 1px solid var(--line);
}

.model-tile-copy small {
  display: block;
  color: var(--tier, var(--gold));
  font: 8px var(--mono);
  text-transform: uppercase;
}

.model-tile-copy strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-tile-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 8px var(--mono);
  text-transform: uppercase;
}

/* Story path */
.story-trail {
  padding: 82px 0 91px;
  background:
    linear-gradient(90deg, rgba(239, 189, 79, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(239, 189, 79, 0.026) 1px, transparent 1px),
    rgba(18, 10, 6, 0.62);
  background-size: 49px 49px;
  border-bottom: 1px solid rgba(239, 189, 79, 0.1);
  scroll-margin-top: 98px;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 65px;
  align-items: start;
}

.story-intro .chapter-note {
  margin-top: 13px;
}

.trail-glyphs {
  display: flex;
  align-items: center;
  max-width: 420px;
  margin: 40px 0 27px;
}

.trail-glyph {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--gold);
  background: var(--void);
  color: var(--gold);
  font: 10px var(--mono);
}

.trail-glyph::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--line-red);
}

.trail-glyph--dragon {
  border-color: var(--red);
  color: var(--gold-bright);
}

.trail-glyph--hoard {
  border-color: var(--magma);
  color: var(--magma);
}

.trail-glyphs i {
  position: relative;
  height: 2px;
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--red) 0 9px, transparent 9px 14px);
}

.trail-glyphs i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.trail-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.trail-steps li {
  display: grid;
  grid-template-columns: 57px 1fr;
  gap: 17px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.trail-steps span {
  color: var(--magma);
  font: 18px var(--display);
}

.trail-steps p {
  margin: 0;
  color: #d0c1a6;
  font-size: 20px;
  line-height: 1.24;
}

/* FAQ */
.oracle-log {
  padding-bottom: 105px;
  background: linear-gradient(180deg, rgba(9, 6, 4, 0.5), rgba(9, 6, 4, 0.9));
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 65px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 111px;
}

.faq-sigil {
  margin-top: 43px;
  color: var(--muted);
  font: 11px / 1.7 var(--mono);
  letter-spacing: 0.1em;
}

.faq-sigil span {
  color: var(--gold);
}

.oracle-list {
  border-top: 1px solid var(--line);
}

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

.oracle-entry summary {
  position: relative;
  padding: 18px 42px 18px 0;
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
  list-style: none;
}

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

.oracle-entry summary::after {
  content: "+";
  position: absolute;
  top: 13px;
  right: 3px;
  color: var(--magma);
  font: 22px var(--mono);
}

.oracle-entry[open] summary::after {
  content: "−";
  color: var(--gold);
}

.oracle-entry p {
  margin: 0 40px 18px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.28;
}

/* Footer and utility surfaces */
.trail-footer {
  padding: 39px 0 57px;
  border-top: 1px solid var(--line);
  background: #070403;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 45px;
}

.footer-brand p {
  margin: 11px 0 4px;
  font: 10px var(--mono);
  letter-spacing: 0.04em;
}

.footer-brand > span {
  color: rgba(239, 189, 79, 0.62);
  font: 10px var(--mono);
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 19px;
  font-style: normal;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links span {
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  text-align: left;
  font: 10px var(--mono);
}

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

.modal.show {
  display: grid;
}

.modal-box {
  width: min(390px, 100%);
  padding: 19px;
  border: 1px solid var(--gold);
  background: var(--coal);
  box-shadow: 9px 9px 0 rgba(184, 33, 50, 0.28);
}

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

.icon-button {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 19px;
}

.wallet-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 110;
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 9px 14px;
  border: 1px solid var(--gold);
  background: var(--coal-2);
  box-shadow: 6px 6px 0 rgba(184, 33, 50, 0.5);
  color: var(--gold-bright);
  font: 11px var(--mono);
  overflow-wrap: anywhere;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.22s, transform 0.22s;
}

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

.art-missing {
  position: relative;
  background:
    radial-gradient(circle at 50% 38%, rgba(239, 189, 79, 0.15), transparent 34%),
    linear-gradient(145deg, #211109, var(--void) 68%);
}

.art-missing::after {
  content: "FIREWYRM";
  position: absolute;
  inset: auto 9px 18%;
  color: rgba(239, 189, 79, 0.17);
  font: 14px var(--display);
  letter-spacing: 0.1em;
  text-align: center;
}

@media (max-width: 1080px) {
  .atlas-hero > .atlas-wrap {
    gap: 27px;
  }

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

  .rank-badge {
    min-height: 330px;
  }

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

  .ticket-stage {
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.82fr);
  }
}

@media (max-width: 900px) {
  .trail-coordinate {
    display: none;
  }

  .atlas-hero > .atlas-wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 62px;
    padding-bottom: 65px;
  }

  .atlas-map-wrap {
    width: min(100%, 470px);
    justify-self: start;
  }

  .atlas-intro h1 {
    max-width: 670px;
  }

  .ticket-stage,
  .ledger-layout,
  .vault-console,
  .story-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .lane-board {
    max-width: 680px;
  }

  .story-layout,
  .faq-layout {
    gap: 34px;
  }

  .faq-intro {
    position: static;
  }

  .faq-sigil {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .atlas-wrap {
    width: min(100% - 28px, 1180px);
  }

  .trail-header {
    height: 58px;
    gap: 8px;
    padding-inline: 14px;
  }

  .brand-word {
    font-size: 18px;
  }

  .sigil-eye {
    width: 25px;
    height: 20px;
  }

  .sigil-eye::before {
    left: 8px;
    top: 4px;
    width: 9px;
    height: 12px;
  }

  .sigil-eye::after {
    left: 11px;
    top: 8px;
    width: 3px;
    height: 5px;
  }

  .trail-actions {
    gap: 6px;
  }

  .language-gate select {
    max-width: 88px;
    height: 32px;
    padding-left: 6px;
    font-size: 10px;
  }

  .trail-actions .action-compact {
    padding-inline: 9px;
    font-size: 10px;
  }

  .map-ribbon {
    top: 58px;
  }

  .atlas-hero > .atlas-wrap {
    padding-top: 49px;
    padding-bottom: 54px;
  }

  .atlas-intro h1 {
    font-size: clamp(37px, 11vw, 58px);
  }

  .atlas-lede {
    font-size: 19px;
  }

  .atlas-actions .action {
    flex: 1;
    min-width: 145px;
  }

  .hero-coordinates {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .map-pin {
    font-size: 9px;
  }

  .map-pin b {
    width: 17px;
    height: 17px;
    font-size: 9px;
  }

  .mint-station,
  .hoard-ledger,
  .exchange-hall,
  .vault-shelf,
  .badge-archive,
  .story-trail,
  .oracle-log {
    padding-top: 59px;
    padding-bottom: 64px;
  }

  .chapter-heading,
  .station-heading,
  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .chapter-heading h2,
  .station-heading h2,
  .story-intro h2,
  .faq-intro h2 {
    font-size: 36px;
  }

  .chapter-heading > .chapter-note {
    max-width: none;
    text-align: left;
  }

  .station-stamp,
  .fee-plate {
    display: none;
  }

  .mint-receipt,
  .lane-board {
    padding: 20px 17px;
  }

  .receipt-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .receipt-timer {
    text-align: left;
  }

  .meter-grid {
    gap: 2px;
    height: 13px;
  }

  .countdown-dials strong {
    font-size: 24px;
  }

  .quantity-row {
    flex-wrap: wrap;
  }

  .quantity-row > .receipt-label {
    width: 100%;
  }

  .receipt-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .receipt-line b {
    text-align: left;
  }

  .docket-actions--main {
    flex-direction: column;
  }

  .docket-actions--main .action {
    width: 100%;
  }

  .rule-badges {
    grid-template-columns: 1fr;
  }

  .rule-badge--wide {
    grid-column: auto;
  }

  .prism-layout {
    grid-template-columns: 1fr;
  }

  .prism-ring {
    width: 151px;
    justify-self: center;
  }

  .prism-ring::before {
    width: 97px;
  }

  .seller-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-badge {
    min-height: 280px;
  }

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

  .trail-steps li {
    grid-template-columns: 37px 1fr;
    gap: 10px;
  }

  .trail-steps p {
    font-size: 18px;
  }

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

  .seller-buttons .action {
    min-width: 100%;
  }
}

@media (max-width: 390px) {
  .atlas-intro h1 {
    font-size: 37px;
  }

  .map-pin span {
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .supply-readout strong {
    font-size: 40px;
  }

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

  .rank-badge {
    min-height: 245px;
  }
}

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