:root {
  --ink: #043b34;
  --panel: #0a6c5f;
  --panel-2: #0c7f70;
  --paper: #f0f3f3;
  --paper-dim: rgba(240, 243, 243, 0.72);
  --lime: #f0f3f3;
  --lime-hot: #ffffff;
  --green: #0c7f70;
  --orange: #f0f3f3;
  --red: #0c7f70;
  --violet: #f0f3f3;
  --line: rgba(240, 243, 243, 0.3);
  --shadow: 0 24px 70px rgba(4, 59, 52, 0.48);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 18%, rgba(82, 255, 128, 0.11), transparent 26rem),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(200, 255, 39, 0.04) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(200, 255, 39, 0.035) 80px),
    var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.3;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 32%);
  mix-blend-mode: soft-light;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-160%);
}

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

.topbar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 10, 0.84);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 20px;
  font-style: normal;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark i {
  color: var(--lime);
  font-style: normal;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--lime);
  background: rgba(200, 255, 39, 0.05);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}

main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.mint-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(540px, 1.22fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(50px, 7vw, 105px) 0;
}

.intro-panel {
  position: relative;
  z-index: 1;
}

.intro-panel::before {
  content: "";
  position: absolute;
  top: 84px;
  right: 98%;
  width: 30vw;
  height: 12px;
  background: var(--lime);
  box-shadow: 0 20px 0 rgba(200, 255, 39, 0.22);
}

.kicker,
.micro-label,
.callout-tag,
.serial-prefix,
.serial-state,
.build-notes span,
footer {
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kicker {
  margin: 0 0 22px;
  color: var(--lime);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 25px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(49px, 6.4vw, 98px);
  line-height: 0.88;
  letter-spacing: -0.072em;
  text-transform: uppercase;
}

h1 em {
  color: var(--lime);
  font-style: normal;
  text-shadow: 7px 7px 0 rgba(200, 255, 39, 0.12);
}

.lead {
  max-width: 530px;
  margin-bottom: 34px;
  color: var(--paper-dim);
  font-size: clamp(17px, 1.5vw, 22px);
}

.reveal-sequence {
  display: grid;
  gap: 0;
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid rgba(240, 238, 228, 0.16);
  list-style: none;
}

.reveal-sequence li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid rgba(240, 238, 228, 0.16);
}

.reveal-sequence span {
  color: var(--lime);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.reveal-sequence strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.special-callout {
  position: relative;
  max-width: 530px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(200, 255, 39, 0.11), transparent 48%),
    var(--panel);
}

.special-callout::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 28px;
  height: 28px;
  border-right: 4px solid var(--lime);
  border-bottom: 4px solid var(--lime);
}

.callout-tag {
  color: var(--paper-dim);
  font-size: 10px;
}

.serial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 11px 0 10px;
}

.serial-list b {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--lime);
  font-family: Consolas, monospace;
  font-size: 13px;
}

.special-callout p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 13px;
}

.mint-console {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(200, 255, 39, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 5px var(--ink);
}

.mint-console::before,
.mint-console::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 6px;
  background: var(--lime);
}

.mint-console::before {
  top: -3px;
  left: 20px;
}

.mint-console::after {
  right: 20px;
  bottom: -3px;
}

.console-head,
.action-row,
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-heading {
  align-items: flex-start;
}

.console-head {
  margin-bottom: 14px;
}

.micro-label {
  display: block;
  margin-bottom: 3px;
  color: var(--paper-dim);
  font-size: 9px;
}

.console-head h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.03em;
}

.console-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-family: Consolas, monospace;
  font-size: 10px;
  text-align: right;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.machine-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  overflow: visible;
  border: 1px solid rgba(200, 255, 39, 0.38);
  background: #c8ff27;
  box-shadow: inset 0 0 70px rgba(9, 13, 10, 0.18);
}

#machineCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.scanlines,
.target-corners,
.reveal-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scanlines {
  z-index: 2;
  opacity: 0.22;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.07) 0,
    rgba(0, 0, 0, 0.07) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: multiply;
}

.target-corners {
  z-index: 3;
  margin: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 36px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 2px 36px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 36px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 2px 36px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 36px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 2px 36px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 36px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 2px 36px no-repeat;
  opacity: 0.55;
}

.reveal-flash {
  z-index: 4;
  opacity: 0;
  background: white;
}

.machine-stage.is-spinning #machineCanvas {
  animation: machine-rattle 110ms steps(2, end) infinite;
}

.machine-stage.is-spinning .scanlines {
  animation: scan 0.42s linear infinite;
}

.machine-stage.is-revealing .reveal-flash {
  animation: reveal-flash 480ms ease-out;
}

.machine-stage.event-777 {
  box-shadow: inset 0 0 70px rgba(255, 140, 26, 0.4), 0 0 34px rgba(255, 140, 26, 0.45);
}

.machine-stage.event-666 {
  filter: saturate(1.18);
  box-shadow: inset 0 0 70px rgba(255, 61, 50, 0.48), 0 0 34px rgba(255, 61, 50, 0.36);
}

.machine-stage.event-000 {
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.4);
}

.machine-stage.event-251 {
  box-shadow: inset 0 0 80px rgba(139, 92, 255, 0.45), 0 0 30px rgba(139, 92, 255, 0.4);
}

.machine-stage.event--1- #machineCanvas {
  animation: glitch-hit 600ms steps(2, end) 2;
}

.serial-console {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 238, 228, 0.13);
  background: #080b08;
}

.serial-prefix,
.serial-state {
  color: var(--paper-dim);
  font-size: 9px;
}

.serial-state {
  color: var(--lime);
  text-align: right;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(40px, 1fr));
  gap: 8px;
}

.reel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--lime);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 30% 70%, rgba(0, 0, 0, 0.8)),
    #131a14;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 14px rgba(200, 255, 39, 0.48);
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 1px;
  background: rgba(200, 255, 39, 0.35);
}

.reel::before {
  top: 9px;
}

.reel::after {
  bottom: 9px;
}

.reel.is-spinning span {
  animation: reel-jump 90ms steps(2, end) infinite;
}

.action-row {
  margin-top: 12px;
}

.mint-button {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 17px 0 21px;
  border: 0;
  color: var(--ink);
  background: var(--lime);
  box-shadow: inset 0 -6px 0 rgba(9, 13, 10, 0.22);
  font-family: "Arial Black", Impact, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mint-button::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(9, 13, 10, 0.22);
  pointer-events: none;
}

.mint-button:hover:not(:disabled),
.mint-button:focus-visible:not(:disabled) {
  transform: translateY(-3px);
  background: #dcff70;
  box-shadow: inset 0 -6px 0 rgba(9, 13, 10, 0.22), 0 10px 30px rgba(200, 255, 39, 0.2);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.mint-button:active:not(:disabled) {
  transform: translateY(2px);
}

.mint-button:disabled {
  color: rgba(240, 238, 228, 0.42);
  background: #2a322b;
  cursor: wait;
}

.button-main {
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: -0.02em;
}

.button-key {
  position: relative;
  z-index: 1;
  padding: 6px 8px;
  border: 1px solid currentColor;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.action-row p {
  flex: 0 1 175px;
  margin: 0;
  color: var(--paper-dim);
  font-family: Consolas, monospace;
  font-size: 9px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.result-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 238, 228, 0.13);
  background: rgba(255, 255, 255, 0.018);
}

.result-heading h3 {
  min-width: 0;
  max-width: 72%;
  margin: 0;
  color: var(--lime);
  font-family: Consolas, monospace;
  font-size: clamp(11px, 1.1vw, 15px);
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: right;
  text-transform: uppercase;
}

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

.trait-readout div {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(240, 238, 228, 0.12);
}

.trait-readout dt {
  overflow: hidden;
  color: var(--paper-dim);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trait-readout dd {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.particle {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  pointer-events: none;
  background: var(--particle-color, var(--lime));
  animation: burst 900ms var(--ease) forwards;
}

.build-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-bottom: clamp(70px, 9vw, 130px);
}

.build-notes article {
  min-height: 225px;
  padding: clamp(22px, 3vw, 38px);
  background: var(--panel);
}

.build-notes article + article {
  border-left: 1px solid var(--line);
}

.build-notes span {
  color: var(--lime);
  font-size: 10px;
}

.build-notes h2 {
  margin: 35px 0 13px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  text-transform: uppercase;
}

.build-notes p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--paper-dim);
  font-size: 9px;
}

@keyframes pulse {
  50% { opacity: 0.42; transform: scale(0.78); }
}

@keyframes machine-rattle {
  0% { transform: translate(0); }
  33% { transform: translate(3px, -2px); }
  66% { transform: translate(-3px, 2px); }
}

@keyframes scan {
  to { transform: translateY(4px); }
}

@keyframes reel-jump {
  50% { transform: translateY(7px); opacity: 0.45; }
}

@keyframes reveal-flash {
  0% { opacity: 0; }
  12% { opacity: 0.95; }
  100% { opacity: 0; }
}

@keyframes glitch-hit {
  0%, 100% { transform: translate(0); filter: none; }
  25% { transform: translate(-8px, 2px); filter: hue-rotate(80deg); }
  50% { transform: translate(7px, -3px); filter: invert(0.2); }
  75% { transform: translate(-3px, 5px); filter: hue-rotate(-70deg); }
}

@keyframes burst {
  from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  to { transform: translate(var(--burst-x), var(--burst-y)) rotate(360deg); opacity: 0; }
}

@media (max-width: 1000px) {
  .mint-layout {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    max-width: 760px;
  }

  .mint-console {
    width: min(760px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1440px);
  }

  .topbar,
  footer {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .network-pill {
    max-width: 170px;
    font-size: 8px;
  }

  .mint-layout {
    padding-top: 42px;
  }

  .intro-panel::before {
    display: none;
  }

  h1 {
    font-size: clamp(43px, 15vw, 70px);
  }

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

  .serial-prefix,
  .serial-state {
    text-align: center;
  }

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

  .action-row p {
    text-align: center;
  }

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

  .build-notes {
    grid-template-columns: 1fr;
  }

  .build-notes article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    flex-direction: column;
  }
}

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

/* Pixel factory theme */
:root {
  --ink: #261b50;
  --panel: #425963;
  --panel-2: #344a54;
  --paper: #d9ded8;
  --paper-dim: #aebdc0;
  --lime: #63ddb8;
  --lime-hot: #7ff0c9;
  --green: #4bd59a;
  --orange: #e8a84e;
  --red: #ef6752;
  --violet: #775c8d;
  --line: #261b50;
  --steel: #70868d;
  --steel-light: #96a5a4;
  --factory-bg: #3e5962;
  --pixel-shadow: 7px 7px 0 #261b50;
  --shadow: 10px 10px 0 #261b50;
  --ease: steps(4, end);
}

html {
  color-scheme: dark;
}

body {
  position: relative;
  color: var(--paper);
  background:
    linear-gradient(90deg, transparent 0 92%, rgba(38, 27, 80, 0.16) 92% 100%) 0 0 / 128px 128px,
    linear-gradient(0deg, transparent 0 92%, rgba(38, 27, 80, 0.12) 92% 100%) 0 0 / 128px 128px,
    var(--factory-bg);
  font-family: "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}

.grain {
  z-index: 40;
  opacity: 0.24;
  background:
    repeating-linear-gradient(0deg, rgba(18, 26, 49, 0.15) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(224, 235, 224, 0.05) 0 2px, transparent 2px 6px);
  mix-blend-mode: normal;
}

.topbar,
footer,
main {
  position: relative;
  z-index: 2;
}

.topbar,
footer {
  border: 0;
  border-bottom: 5px solid var(--ink);
  background: #314751;
  backdrop-filter: none;
  box-shadow: inset 0 -5px 0 #243744;
}

.topbar {
  min-height: 76px;
}

.wordmark {
  gap: 9px;
  color: #f0d98a;
  font-family: "Courier New", monospace;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 3px 3px 0 var(--ink);
}

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

.network-pill {
  padding: 9px 12px;
  border: 4px solid var(--ink);
  color: var(--paper);
  background: #526a72;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 9px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--lime);
  box-shadow: none;
  animation: pixel-blink 1s steps(2, end) infinite;
}

main {
  width: min(1360px, calc(100% - 48px));
}

.mint-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(530px, 1.18fr);
  gap: clamp(34px, 5vw, 76px);
  min-height: calc(100vh - 76px);
  padding: clamp(52px, 7vw, 92px) 0;
}

.intro-panel {
  padding: clamp(18px, 2.5vw, 28px);
  border: 5px solid var(--ink);
  background: rgba(52, 74, 84, 0.94);
  box-shadow: var(--pixel-shadow), inset 0 0 0 4px #587079;
}

.intro-panel::before {
  top: 20px;
  right: auto;
  left: -18px;
  width: 18px;
  height: 34%;
  border-block: 5px solid var(--ink);
  background: var(--red);
  box-shadow: none;
}

.kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
}

h1 {
  margin-bottom: 24px;
  color: #e0dfcd;
  font-family: "Courier New", monospace;
  font-size: clamp(45px, 5.5vw, 84px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.1em;
  text-shadow: 5px 0 0 var(--ink), 0 5px 0 var(--ink), 5px 5px 0 var(--ink);
}

h1 em {
  color: var(--red);
  text-shadow: 5px 0 0 var(--ink), 0 5px 0 var(--ink), 5px 5px 0 var(--ink);
}

.lead {
  margin-bottom: 28px;
  color: #d5ddd8;
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.75;
}

.reveal-sequence {
  gap: 6px;
  margin-bottom: 28px;
  border: 0;
}

.reveal-sequence li {
  grid-template-columns: 48px 1fr;
  min-height: 50px;
  border: 4px solid var(--ink);
  background: #526a72;
  box-shadow: inset 0 -5px 0 #405861;
}

.reveal-sequence span {
  display: grid;
  align-self: stretch;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  font-size: 10px;
  font-weight: 900;
}

.reveal-sequence strong {
  padding-inline: 13px;
  font-size: 11px;
}

.special-callout {
  padding: 17px;
  border: 5px solid var(--ink);
  background: #955a57;
  box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 4px #b96b5c;
}

.special-callout::after {
  right: 8px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  border: 0;
  background: var(--orange);
  box-shadow: -18px 0 0 #77535a, 0 -18px 0 #77535a;
}

.callout-tag {
  color: #f1ddc4;
  font-size: 9px;
}

.serial-list b {
  padding: 6px 8px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--orange);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px;
}

.special-callout p {
  color: #f0d6cb;
  font-size: 11px;
}

.mint-console {
  padding: clamp(16px, 2vw, 24px);
  border: 6px solid var(--ink);
  background: #344954;
  box-shadow:
    9px 0 0 #263946,
    9px 9px 0 var(--ink),
    inset 0 0 0 5px #5c737a;
}

.mint-console::before,
.mint-console::after {
  width: 11px;
  height: 11px;
  border: 3px solid var(--ink);
  background: var(--orange);
}

.mint-console::before {
  top: 10px;
  left: 10px;
}

.mint-console::after {
  right: 10px;
  bottom: 10px;
}

.console-head {
  margin: 2px 4px 15px;
  padding: 0 8px 13px;
  border-bottom: 4px solid var(--ink);
}

.micro-label {
  color: #aabfc1;
  font-size: 8px;
}

.console-head h2 {
  color: #f0dd9a;
  font-family: "Courier New", monospace;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.07em;
  text-shadow: 3px 3px 0 var(--ink);
}

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

.sound-toggle {
  min-height: 32px;
  padding: 5px 8px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--orange);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Lucida Console", Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  background: #f4c267;
  outline: 3px solid #f0d98a;
  outline-offset: 2px;
}

.sound-toggle:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.sound-toggle[aria-pressed="false"] {
  color: #9ca8a6;
  background: #44545b;
}

.console-status {
  max-width: 190px;
  color: var(--lime);
  font-size: 8px;
}

.status-led {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--lime);
  box-shadow: none;
}

.machine-stage {
  overflow: hidden;
  border: 6px solid var(--ink);
  background: #168879;
  box-shadow:
    inset 0 0 0 5px #789195,
    inset 0 -10px 0 #536a72,
    6px 6px 0 #203541;
}

.scanlines {
  opacity: 0.14;
  background: repeating-linear-gradient(0deg, rgba(38, 27, 80, 0.15) 0 2px, transparent 2px 6px);
  mix-blend-mode: multiply;
}

.target-corners {
  margin: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 30px 5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 5px 30px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 30px 5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 5px 30px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 30px 5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 5px 30px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 30px 5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 5px 30px no-repeat;
  opacity: 0.74;
}

.machine-stage.is-spinning #machineCanvas {
  animation: pixel-rattle 100ms steps(2, end) infinite;
}

.machine-stage.event-777,
.machine-stage.event-666,
.machine-stage.event-000,
.machine-stage.event-251 {
  box-shadow: inset 0 0 0 8px var(--orange), 7px 7px 0 var(--ink);
}

.serial-console {
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  margin-top: 14px;
  padding: 11px;
  border: 5px solid var(--ink);
  background: #9a5e5a;
  box-shadow: inset 0 0 0 4px #bd7161, 5px 5px 0 #203541;
}

.serial-prefix,
.serial-state {
  color: #f3d9c7;
  font-size: 8px;
  font-weight: 900;
}

.serial-state {
  color: #f4d367;
}

.reels {
  gap: 6px;
}

.reel {
  min-height: 62px;
  border: 4px solid var(--ink);
  color: var(--ink);
  background:
    linear-gradient(#7f918f 0 9px, #d6d7c9 9px calc(100% - 9px), #82918e calc(100% - 9px));
  box-shadow: inset 0 0 0 3px #f0ead3;
  font-family: "Courier New", monospace;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  text-shadow: 3px 3px 0 #a4b1a8;
}

.reel::before,
.reel::after {
  height: 3px;
  background: rgba(38, 27, 80, 0.3);
}

.reel.is-spinning span {
  animation: pixel-reel 90ms steps(2, end) infinite;
}

.action-row {
  align-items: stretch;
  margin-top: 14px;
}

.mint-button {
  min-height: 70px;
  padding: 0 16px 5px 19px;
  border: 5px solid var(--ink);
  color: var(--ink);
  background: var(--red);
  box-shadow: inset 0 -8px 0 #b94e4a, 6px 6px 0 var(--ink);
  font-family: "Courier New", monospace;
  font-weight: 900;
  transition: transform 100ms steps(2, end), box-shadow 100ms steps(2, end), background 100ms steps(2, end);
}

.mint-button::before {
  inset: 6px;
  border: 3px solid rgba(38, 27, 80, 0.42);
}

.mint-button:hover:not(:disabled),
.mint-button:focus-visible:not(:disabled) {
  transform: translate(-2px, -2px);
  background: #ff7b5f;
  box-shadow: inset 0 -8px 0 #b94e4a, 8px 8px 0 var(--ink);
  outline: 4px solid #f0d98a;
  outline-offset: 3px;
}

.mint-button:active:not(:disabled) {
  transform: translate(5px, 5px);
  box-shadow: inset 0 -3px 0 #b94e4a, 1px 1px 0 var(--ink);
}

.mint-button:disabled {
  color: #727d80;
  background: #44545b;
  box-shadow: inset 0 -8px 0 #34434c, 5px 5px 0 var(--ink);
}

.button-main {
  font-size: clamp(14px, 1.7vw, 19px);
}

.button-key {
  border: 3px solid currentColor;
  background: rgba(231, 223, 198, 0.25);
  font-size: 8px;
}

.action-row p {
  flex-basis: 168px;
  align-self: center;
  color: #c1cecb;
  font-size: 8px;
}

.result-panel {
  margin-top: 14px;
  padding: 15px;
  border: 5px solid var(--ink);
  background: #526a72;
  box-shadow: inset 0 0 0 4px #667c81;
}

.result-heading h3 {
  color: #f0d98a;
  font-size: clamp(10px, 1vw, 13px);
  text-shadow: 2px 2px 0 var(--ink);
}

.trait-readout div {
  padding: 9px 7px 0;
  border-top: 4px solid var(--ink);
}

.trait-readout dt {
  color: #b6c7c6;
  font-size: 7px;
}

.trait-readout dt[data-tier="uncommon"] {
  color: #63ddb8;
}

.trait-readout dt[data-tier="rare"] {
  color: #6cb6ff;
}

.trait-readout dt[data-tier="epic"] {
  color: #c58cff;
}

.trait-readout dt[data-tier="legendary"] {
  color: #ffd35f;
  text-shadow: 1px 1px 0 var(--ink);
}

.trait-readout dt[data-tier="special"] {
  color: #ff9d4d;
  text-shadow: 1px 1px 0 var(--ink);
}

.trait-readout dd {
  color: #f0eee0;
  font-size: 10px;
}

.particle {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  animation: pixel-burst 760ms steps(6, end) forwards;
}

.build-notes {
  border: 5px solid var(--ink);
  box-shadow: var(--pixel-shadow);
}

.build-notes article {
  min-height: 210px;
  background: #405762;
  box-shadow: inset 0 0 0 4px #587079;
}

.build-notes article + article {
  border-left: 5px solid var(--ink);
}

.build-notes span {
  display: inline-block;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--orange);
  font-size: 8px;
  font-weight: 900;
}

.build-notes h2 {
  color: #f0dfaa;
  font-family: "Courier New", monospace;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.1;
  text-shadow: 3px 3px 0 var(--ink);
}

.build-notes p {
  color: #c2d0ce;
  font-size: 12px;
  line-height: 1.7;
}

footer {
  border-top: 5px solid var(--ink);
  border-bottom: 0;
  color: #b9c7c4;
  font-size: 8px;
}

.skip-link {
  border: 4px solid var(--ink);
  color: var(--ink);
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
}

@keyframes pixel-blink {
  50% { opacity: 0.3; }
}

@keyframes pixel-rattle {
  0% { transform: translate(0); }
  33% { transform: translate(4px, -2px); }
  66% { transform: translate(-4px, 2px); }
}

@keyframes pixel-reel {
  0% { transform: translateY(-9px); opacity: 0.25; }
  50% { transform: translateY(9px); opacity: 1; }
  100% { transform: translateY(-9px); opacity: 0.25; }
}

@keyframes pixel-burst {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to { transform: translate(var(--burst-x), var(--burst-y)); opacity: 0; }
}

@media (max-width: 1000px) {
  .mint-layout {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    max-width: 760px;
  }

  .mint-console {
    width: min(760px, 100%);
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 26px, 1360px);
  }

  .topbar,
  footer {
    padding: 13px;
  }

  .network-pill {
    max-width: 156px;
    font-size: 7px;
  }

  .intro-panel {
    padding: 18px 15px;
  }

  .intro-panel::before {
    display: block;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .mint-console {
    padding: 15px 12px;
    box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 4px #5c737a;
  }

  .console-head {
    align-items: flex-start;
  }

  .console-tools {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .console-status {
    max-width: 125px;
  }

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

  .serial-prefix,
  .serial-state {
    text-align: center;
  }

  .action-row {
    gap: 16px;
  }

  .action-row p {
    flex-basis: auto;
  }

  .build-notes article + article {
    border-top: 5px solid var(--ink);
    border-left: 0;
  }
}

/* Expanded collection control center */
.topbar {
  position: sticky;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 42px);
  padding: 14px clamp(18px, 3vw, 48px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.7vw, 26px);
  min-width: 0;
}

.site-nav a,
.wallet-link,
footer a {
  color: #c8d2cf;
  font-family: "Lucida Console", Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 9px 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 140ms steps(3, end);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.wallet-link:hover,
.wallet-link:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: #f0dd9a;
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.wallet-link {
  min-height: 37px;
  padding: 9px 11px;
  border: 4px solid var(--ink);
  color: #f0dd9a;
  background: #955a57;
  box-shadow: 4px 4px 0 var(--ink);
}

#mint,
#how,
#rarity,
#serials,
#specials,
#miner-lab,
#my-miners,
#docs {
  scroll-margin-top: 112px;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 28px;
}

.hero-specs div {
  min-width: 0;
  padding: 10px 8px;
  border: 4px solid var(--ink);
  background: #405862;
  box-shadow: inset 0 -4px 0 #334a54;
}

.hero-specs dt,
.hero-specs dd {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-specs dt {
  color: #9fb2b3;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.hero-specs dd {
  margin-top: 5px;
  color: #f0dd9a;
  font-family: "Courier New", monospace;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 900;
}

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

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

.mint-actions .mint-button {
  min-width: 0;
  padding-inline: 13px;
}

.mint-actions .button-main {
  font-size: clamp(10px, 1.1vw, 14px);
}

.mint-actions .button-key {
  margin-left: 8px;
  padding: 5px 6px;
  font-size: 6px;
}

.mint-button--real:disabled {
  color: #9ba6a5;
  background: #3f4d53;
  cursor: not-allowed;
}

.mint-button--demo {
  background: var(--orange);
  box-shadow: inset 0 -8px 0 #ad7342, 6px 6px 0 var(--ink);
}

.mint-button--demo:hover:not(:disabled),
.mint-button--demo:focus-visible:not(:disabled) {
  background: #f4c267;
  box-shadow: inset 0 -8px 0 #ad7342, 8px 8px 0 var(--ink);
}

.site-section {
  margin: 0 0 clamp(70px, 9vw, 120px);
  padding: clamp(22px, 3.2vw, 42px);
  border: 6px solid var(--ink);
  background: #344954;
  box-shadow: 9px 9px 0 var(--ink), inset 0 0 0 5px #506972;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding-bottom: 22px;
  border-bottom: 5px solid var(--ink);
}

.section-index,
.panel-code {
  color: var(--orange);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-heading h2 {
  max-width: 780px;
  margin: 9px 0 0;
  color: #f0dfaa;
  font-family: "Courier New", monospace;
  font-size: clamp(27px, 4vw, 57px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
}

.section-heading p {
  max-width: 54ch;
  margin: 0;
  color: #c2d0ce;
  font-size: 12px;
  line-height: 1.75;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  position: relative;
  min-height: 218px;
  padding: 18px 15px;
  border: 5px solid var(--ink);
  background: #405862;
  box-shadow: inset 0 -7px 0 #334a54;
}

.process-grid li::after {
  content: "";
  position: absolute;
  top: 31px;
  right: -13px;
  z-index: 2;
  width: 18px;
  height: 10px;
  border: 4px solid var(--ink);
  background: var(--orange);
}

.process-grid li:last-child::after {
  display: none;
}

.process-grid b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
}

.process-grid span {
  display: block;
  margin-top: 35px;
  color: #f0dd9a;
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: 900;
}

.process-grid p {
  margin: 12px 0 0;
  color: #bdccca;
  font-size: 10px;
  line-height: 1.7;
}

.integrity-strip {
  margin-top: 12px;
  padding: 15px 18px;
  border: 5px solid var(--ink);
  color: #e0d7bd;
  background: #955a57;
  box-shadow: inset 0 0 0 4px #ad6960;
  font-size: 10px;
  line-height: 1.7;
}

.integrity-strip strong {
  color: #f4d367;
}

.supply-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.supply-card {
  min-height: 190px;
  padding: 20px;
  border: 5px solid var(--ink);
  background: #405862;
  box-shadow: inset 0 -8px 0 #334a54;
}

.supply-card--special {
  background: #955a57;
  box-shadow: inset 0 -8px 0 #7e4d52;
}

.supply-card--total {
  color: var(--ink);
  background: var(--orange);
  box-shadow: inset 0 -8px 0 #b77b43;
}

.supply-card span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.supply-card strong {
  display: block;
  margin: 17px 0 10px;
  font-family: "Courier New", monospace;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-shadow: 4px 4px 0 var(--ink);
}

.supply-card--total strong {
  text-shadow: 3px 3px 0 rgba(240, 221, 154, 0.5);
}

.supply-card p {
  margin: 0;
  color: #c5d2d0;
  font-size: 9px;
  line-height: 1.6;
}

.supply-card--total p {
  color: #49384d;
}

.supply-operator {
  display: grid;
  place-items: center;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 35px;
  font-weight: 900;
  text-shadow: 3px 3px 0 var(--ink);
}

.rarity-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.serial-checker,
.serial-ladder,
.trait-preview-panel,
.trait-browser-panel,
.wallet-bay {
  padding: clamp(18px, 2.4vw, 28px);
  border: 5px solid var(--ink);
  background: #405862;
  box-shadow: inset 0 0 0 4px #536c74;
}

.serial-checker h3,
.serial-ladder h3,
.trait-preview-panel h3,
.docs-grid h3 {
  margin: 10px 0 12px;
  color: #f0dd9a;
  font-family: "Courier New", monospace;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 3px 3px 0 var(--ink);
}

.serial-checker > p {
  color: #bac9c7;
  font-size: 10px;
  line-height: 1.65;
}

.serial-checker-form label {
  display: block;
  margin-bottom: 7px;
  color: #aebfc0;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.serial-checker-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.serial-checker-form input,
.serial-checker-form button {
  min-height: 58px;
  border: 5px solid var(--ink);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.serial-checker-form input {
  width: 100%;
  min-width: 0;
  padding: 5px 16px;
  color: var(--ink);
  background: #d6d7c9;
  box-shadow: inset 0 0 0 4px #f0ead3;
  font-size: 29px;
}

.serial-checker-form button {
  padding-inline: 18px;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.serial-checker-form button:hover,
.serial-checker-form button:focus-visible {
  background: #f4c267;
  outline: 3px solid #f0dd9a;
  outline-offset: 2px;
}

.serial-check-result {
  display: grid;
  gap: 5px;
  margin-top: 15px;
  padding: 17px;
  border: 5px solid var(--tier-color, #ffd35f);
  background: #293e48;
  box-shadow: 5px 5px 0 var(--ink);
}

.serial-check-result span,
.serial-check-result small {
  color: #b8c7c5;
  font-size: 8px;
}

.serial-check-result strong {
  color: var(--tier-color, #ffd35f);
  font-family: "Courier New", monospace;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--ink);
}

[data-tier="common"] { --tier-color: #c6cfca; }
[data-tier="uncommon"] { --tier-color: #63ddb8; }
[data-tier="rare"] { --tier-color: #6cb6ff; }
[data-tier="epic"] { --tier-color: #c58cff; }
[data-tier="legendary"] { --tier-color: #ffd35f; }
[data-tier="special"] { --tier-color: #ff9d4d; }
[data-tier="invalid"] { --tier-color: #ef6752; }

.serial-ladder ol {
  display: grid;
  gap: 7px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.serial-ladder li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  border: 4px solid var(--ink);
  border-left: 9px solid var(--tier-color);
  background: #314852;
}

.serial-ladder b {
  color: #f0eee0;
  font-size: 12px;
}

.serial-ladder span {
  color: var(--tier-color);
  font-size: 8px;
  font-weight: 900;
}

.serial-ladder small {
  display: grid;
  min-width: 38px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  background: var(--tier-color);
  font-size: 8px;
  font-weight: 900;
}

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

.special-signal-card {
  min-height: 205px;
  padding: 18px 12px;
  border: 5px solid var(--ink);
  color: #f0eee0;
  background: #955a57;
  box-shadow: inset 0 -8px 0 #7e4d52, 5px 5px 0 var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.special-signal-card:nth-child(2) { background: #775c8d; box-shadow: inset 0 -8px 0 #604c78, 5px 5px 0 var(--ink); }
.special-signal-card:nth-child(3) { background: #a44f4d; box-shadow: inset 0 -8px 0 #7d3e45, 5px 5px 0 var(--ink); }
.special-signal-card:nth-child(4) { background: #a26d3e; box-shadow: inset 0 -8px 0 #815739, 5px 5px 0 var(--ink); }
.special-signal-card:nth-child(5) { background: #526a72; box-shadow: inset 0 -8px 0 #40545d, 5px 5px 0 var(--ink); }

.special-signal-card:hover,
.special-signal-card:focus-visible {
  transform: translate(-3px, -3px);
  outline: 4px solid var(--orange);
  outline-offset: 3px;
}

.special-signal-card b {
  display: block;
  color: #f4d367;
  font-family: "Courier New", monospace;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.1em;
  text-shadow: 4px 4px 0 var(--ink);
}

.special-signal-card span,
.special-signal-card small {
  display: block;
  margin-top: 20px;
  font-size: 8px;
  font-weight: 900;
}

.special-signal-card small {
  margin-top: 7px;
  color: #cbd4d1;
}

.trait-lab-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.trait-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--tier-color, #ffd35f);
  font-size: 8px;
  font-weight: 900;
}

.trait-preview-head [data-tier] {
  color: var(--tier-color);
}

#traitLabCanvas {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid var(--ink);
  background: #c8ff27;
  box-shadow: inset 0 0 0 5px #9fca26, 6px 6px 0 var(--ink);
  image-rendering: pixelated;
}

.trait-preview-panel h3 {
  margin-top: 20px;
}

.trait-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 4px solid var(--ink);
}

.trait-tabs button {
  min-height: 39px;
  padding: 8px 10px;
  border: 4px solid var(--ink);
  color: #c0cecb;
  background: #314852;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: inherit;
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}

.trait-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--orange);
}

.trait-tabs button:hover,
.trait-tabs button:focus-visible {
  outline: 3px solid #f0dd9a;
  outline-offset: 2px;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 590px;
  padding: 3px 8px 8px 3px;
  overflow: auto;
  scrollbar-color: var(--orange) #293e48;
}

.trait-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  min-height: 79px;
  padding: 12px;
  border: 4px solid var(--ink);
  border-left: 8px solid var(--tier-color);
  color: #edf0e6;
  background: #314852;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.trait-card:hover,
.trait-card:focus-visible,
.trait-card[aria-pressed="true"] {
  background: #4a6169;
  outline: 3px solid var(--tier-color);
  outline-offset: 1px;
}

.trait-card strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trait-card span {
  color: var(--tier-color);
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.trait-card small {
  grid-column: 1 / -1;
  color: #9fb2b3;
  font-size: 7px;
}

.wallet-bay {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 4vw, 50px);
  align-items: center;
}

.wallet-offline-state {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offline-led {
  width: 22px;
  height: 22px;
  border: 5px solid var(--ink);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}

.wallet-offline-state small,
.wallet-offline-state strong {
  display: block;
}

.wallet-offline-state small,
.wallet-metrics dt {
  color: #9fb2b3;
  font-size: 7px;
}

.wallet-offline-state strong {
  margin-top: 5px;
  color: #f0dd9a;
  font-size: 11px;
}

.wallet-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0;
}

.wallet-metrics div {
  padding: 11px;
  border: 4px solid var(--ink);
  background: #314852;
}

.wallet-metrics dd {
  margin: 7px 0 0;
  color: #f0eee0;
  font-size: 14px;
  font-weight: 900;
}

.wallet-connect-button {
  min-height: 54px;
  padding: 10px 14px;
  border: 5px solid var(--ink);
  color: #909d9d;
  background: #3f4d53;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: inherit;
  font-size: 7px;
  font-weight: 900;
  cursor: not-allowed;
}

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

.docs-grid article {
  min-height: 188px;
  padding: 17px;
  border: 5px solid var(--ink);
  background: #405862;
  box-shadow: inset 0 -7px 0 #334a54;
}

.docs-grid span {
  display: inline-block;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--orange);
  font-size: 7px;
  font-weight: 900;
}

.docs-grid h3 {
  margin-top: 28px;
  font-size: 18px;
}

.docs-grid p {
  color: #becdca;
  font-size: 9px;
  line-height: 1.7;
}

.docs-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 14px;
  padding: 10px 15px;
  border: 5px solid var(--ink);
  color: var(--ink);
  background: var(--orange);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
}

.docs-link:hover,
.docs-link:focus-visible {
  background: #f4c267;
  outline: 3px solid #f0dd9a;
  outline-offset: 3px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.faq-list details {
  border: 5px solid var(--ink);
  background: #314852;
}

.faq-list summary {
  min-height: 56px;
  padding: 16px;
  color: #f0dd9a;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.5;
  cursor: pointer;
}

.faq-list details[open] summary {
  border-bottom: 4px solid var(--ink);
  background: #405862;
}

.faq-list p {
  margin: 0;
  padding: 15px;
  color: #becdca;
  font-size: 9px;
  line-height: 1.7;
}

footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 8px;
    overflow-x: auto;
    border-top: 3px solid var(--ink);
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

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

  .process-grid li:nth-child(3)::after {
    display: none;
  }

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

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

@media (max-width: 900px) {
  .section-heading,
  .rarity-workbench,
  .trait-lab-shell,
  .wallet-bay {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .supply-map {
    grid-template-columns: 1fr;
  }

  .supply-operator {
    min-height: 22px;
  }

  .trait-preview-panel {
    max-width: 560px;
    margin-inline: auto;
  }

  .wallet-connect-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 10px;
  }

  .topbar-actions .network-pill {
    display: none;
  }

  .wallet-link {
    padding: 8px;
    font-size: 6px;
  }

  .site-nav {
    gap: 17px;
  }

  .site-nav a {
    font-size: 7px;
  }

  #mint,
  #how,
  #rarity,
  #serials,
  #specials,
  #miner-lab,
  #my-miners,
  #docs {
    scroll-margin-top: 128px;
  }

  .hero-specs,
  .mint-actions,
  .process-grid,
  .special-signal-grid,
  .docs-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

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

  .action-row {
    grid-template-columns: 1fr;
  }

  .mint-actions .mint-button {
    min-height: 64px;
  }

  .site-section {
    padding: 17px 13px;
    border-width: 5px;
    box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 3px #506972;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 10vw, 42px);
  }

  .process-grid li {
    min-height: 170px;
  }

  .process-grid li::after {
    top: auto;
    right: 25px;
    bottom: -14px;
    transform: rotate(90deg);
  }

  .process-grid li:nth-child(3)::after {
    display: block;
  }

  .process-grid li:last-child::after {
    display: none;
  }

  .serial-checker-form div {
    grid-template-columns: 1fr;
  }

  .serial-ladder li {
    grid-template-columns: 1fr auto;
  }

  .serial-ladder li span {
    grid-column: 1;
    grid-row: 2;
  }

  .serial-ladder li small {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .special-signal-card {
    min-height: 155px;
  }

  .trait-grid {
    grid-template-columns: 1fr;
    max-height: 520px;
  }

  .trait-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-metrics {
    grid-template-columns: 1fr;
  }

  footer {
    gap: 16px;
  }

  footer nav {
    order: 2;
  }
}

/* Typography and density pass — preserve the pixel-factory visual system */
main {
  width: min(1520px, calc(100% - 32px));
}

.topbar {
  min-height: 82px;
  padding-block: 13px;
}

.wordmark {
  font-size: 21px;
}

.site-nav a,
.wallet-link,
footer a {
  font-size: 10px;
}

.network-pill {
  font-size: 10px;
}

.mint-layout {
  grid-template-columns: minmax(390px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(26px, 3vw, 46px);
  align-items: start;
  min-height: 0;
  padding: clamp(32px, 4vw, 54px) 0 clamp(48px, 5vw, 72px);
}

.intro-panel {
  padding: clamp(22px, 2.4vw, 32px);
}

.kicker {
  margin-bottom: 22px;
  padding: 8px 10px;
  font-size: 11px;
}

h1 {
  font-size: clamp(50px, 5.3vw, 88px);
}

.lead {
  margin-bottom: 24px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
}

.hero-specs {
  margin-bottom: 24px;
}

.hero-specs div {
  padding: 12px 10px;
}

.hero-specs dt {
  font-size: 8px;
}

.hero-specs dd {
  font-size: clamp(13px, 1.05vw, 17px);
}

.reveal-sequence {
  margin-bottom: 24px;
}

.reveal-sequence li {
  min-height: 54px;
}

.reveal-sequence span {
  font-size: 11px;
}

.reveal-sequence strong {
  font-size: 13px;
}

.callout-tag {
  font-size: 11px;
}

.serial-list b {
  font-size: 13px;
}

.special-callout p {
  font-size: 13px;
  line-height: 1.6;
}

.mint-console {
  padding: clamp(19px, 2vw, 28px);
}

.micro-label,
.section-index,
.panel-code {
  font-size: 10px;
}

.console-head h2 {
  font-size: clamp(21px, 2vw, 29px);
}

.sound-toggle {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 9px;
}

.console-status,
.serial-prefix,
.serial-state {
  font-size: 10px;
}

.action-row {
  grid-template-columns: minmax(0, 1fr) 202px;
}

.mint-actions .button-main {
  font-size: clamp(12px, 1.2vw, 16px);
}

.mint-actions .button-key {
  font-size: 8px;
}

.action-row p {
  flex-basis: auto;
  font-size: 10px;
  line-height: 1.65;
}

.result-heading h3 {
  font-size: clamp(12px, 1.05vw, 15px);
}

.trait-readout dt {
  font-size: 9px;
}

.trait-readout dd {
  font-size: 12px;
}

.site-section {
  margin-bottom: clamp(48px, 5.5vw, 78px);
  padding: clamp(24px, 2.7vw, 36px);
}

.section-heading {
  gap: clamp(20px, 3.5vw, 50px);
  margin-bottom: clamp(21px, 2.5vw, 31px);
  padding-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(31px, 3.8vw, 59px);
}

.section-heading p {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.65;
}

.process-grid li {
  min-height: 202px;
  padding: 17px;
}

.process-grid b {
  font-size: 11px;
}

.process-grid span {
  margin-top: 28px;
  font-size: 20px;
}

.process-grid p {
  font-size: 12px;
  line-height: 1.6;
}

.integrity-strip {
  font-size: 12px;
}

.supply-card {
  min-height: 176px;
}

.supply-card span {
  font-size: 10px;
}

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

.rarity-workbench {
  margin-top: 14px;
}

.serial-checker,
.serial-ladder,
.trait-preview-panel,
.trait-browser-panel,
.wallet-bay {
  padding: clamp(19px, 2.1vw, 27px);
}

.serial-checker h3,
.serial-ladder h3,
.trait-preview-panel h3,
.docs-grid h3 {
  font-size: clamp(21px, 2vw, 29px);
}

.serial-checker > p {
  font-size: 12px;
}

.serial-checker-form label {
  font-size: 9px;
}

.serial-check-result span,
.serial-check-result small {
  font-size: 10px;
  line-height: 1.55;
}

.serial-ladder b {
  font-size: 14px;
}

.serial-ladder span,
.serial-ladder small {
  font-size: 10px;
}

.special-signal-card {
  min-height: 184px;
}

.special-signal-card span,
.special-signal-card small {
  font-size: 10px;
}

.trait-preview-head {
  font-size: 10px;
}

.trait-tabs button {
  min-height: 44px;
  font-size: 9px;
}

.trait-card {
  min-height: 86px;
}

.trait-card strong {
  font-size: 11px;
}

.trait-card span,
.trait-card small {
  font-size: 9px;
}

.wallet-offline-state small,
.wallet-metrics dt {
  font-size: 9px;
}

.wallet-offline-state strong {
  font-size: 13px;
}

.wallet-metrics dd {
  font-size: 16px;
}

.wallet-connect-button {
  font-size: 9px;
}

.docs-grid article {
  min-height: 172px;
}

.docs-grid span {
  font-size: 9px;
}

.docs-grid h3 {
  margin-top: 22px;
  font-size: 21px;
}

.docs-grid p,
.faq-list summary,
.faq-list p {
  font-size: 11px;
}

.docs-link {
  font-size: 10px;
}

footer {
  font-size: 10px;
}

@media (max-width: 1180px) {
  .mint-layout {
    grid-template-columns: minmax(340px, 0.86fr) minmax(520px, 1.14fr);
    gap: 24px;
  }

  .site-nav a,
  .wallet-link,
  footer a {
    font-size: 9px;
  }
}

@media (max-width: 1000px) {
  main {
    width: min(100% - 28px, 900px);
  }

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

  .intro-panel,
  .mint-console {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 20px, 680px);
  }

  .topbar {
    min-height: 72px;
  }

  .wordmark {
    font-size: 18px;
  }

  .site-nav a {
    font-size: 8px;
  }

  .wallet-link {
    font-size: 8px;
  }

  .mint-layout {
    padding-top: 22px;
  }

  .kicker,
  .callout-tag,
  .micro-label,
  .section-index,
  .panel-code {
    font-size: 9px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .lead,
  .section-heading p {
    font-size: 14px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .site-section {
    margin-bottom: 38px;
  }

  .process-grid li {
    min-height: 174px;
  }

  .docs-grid article {
    min-height: 0;
  }
}

/* Mine cave theme — sourced from the user-provided pixel scene */
:root {
  --ink: #17131c;
  --panel: #34372f;
  --panel-2: #272b27;
  --paper: #eee2c7;
  --paper-dim: #beb59f;
  --lime: #829a62;
  --lime-hot: #a7b974;
  --green: #70875a;
  --orange: #d88a2e;
  --red: #a54932;
  --violet: #504157;
  --line: #17131c;
  --steel: #65695e;
  --steel-light: #8b8d7d;
  --factory-bg: #17191b;
  --pixel-shadow: 7px 7px 0 #17131c;
  --shadow: 10px 10px 0 #17131c;
}

.mine-theme {
  background: #17191b;
}

.mine-theme::before,
.mine-theme::after {
  content: "";
  position: fixed;
  inset: 82px 0 0;
  pointer-events: none;
}

.mine-theme::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(16, 15, 20, 0.04), rgba(16, 15, 20, 0.14) 68%, rgba(16, 15, 20, 0.3)),
    url("assets/site/mine-cave-theme-duotone-v5.png") center top / cover no-repeat;
  image-rendering: pixelated;
  opacity: 0.96;
}

.mine-theme::after {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 43%, rgba(235, 153, 47, 0.1), transparent 24rem),
    linear-gradient(90deg, rgba(14, 15, 18, 0.12), transparent 18%, transparent 82%, rgba(14, 15, 18, 0.12));
}

.grain {
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, rgba(9, 8, 12, 0.14) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(238, 212, 158, 0.035) 0 2px, transparent 2px 7px);
}

.topbar,
footer {
  border-color: var(--ink);
  background: rgba(31, 28, 29, 0.97);
  box-shadow: inset 0 -5px 0 #3a322e;
}

.wordmark,
.console-head h2,
.section-heading h2,
.serial-checker h3,
.serial-ladder h3,
.trait-preview-panel h3,
.docs-grid h3,
.result-heading h3 {
  color: #f1daa0;
}

.wordmark i,
h1 em {
  color: #c75b38;
}

.site-nav a,
.wallet-link,
footer a {
  color: #d2c7af;
}

.network-pill {
  color: #d8d1b8;
  background: #373a33;
}

.pulse-dot {
  background: #d99a40;
}

.wallet-link {
  color: #f0d39a;
  background: #714333;
}

.intro-panel {
  background: rgba(43, 45, 40, 0.96);
  box-shadow: var(--pixel-shadow), inset 0 0 0 4px #54574c;
}

.intro-panel::before {
  background: #b85435;
}

.kicker,
.reveal-sequence span,
.serial-list b,
.process-grid b,
.docs-grid span,
.docs-link,
.serial-checker-form button,
.trait-tabs button[aria-selected="true"] {
  background: #d88a2e;
}

.lead,
.section-heading p,
.process-grid p,
.supply-card p,
.serial-checker > p,
.docs-grid p,
.faq-list p,
.special-callout p,
.action-row p {
  color: #cec5ad;
}

.hero-specs div,
.reveal-sequence li {
  background: #343932;
  box-shadow: inset 0 -5px 0 #282d2a;
}

.hero-specs dt,
.micro-label,
.console-status,
.wallet-offline-state small,
.wallet-metrics dt {
  color: #aaa991;
}

.hero-specs dd,
.reveal-sequence strong {
  color: #eedba9;
}

.special-callout,
.integrity-strip {
  background: #724536;
  box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 4px #8c5841;
}

.mint-console {
  background: rgba(37, 41, 38, 0.97);
  box-shadow:
    9px 0 0 #24251f,
    9px 9px 0 var(--ink),
    inset 0 0 0 5px #4c5148;
}

.console-head {
  border-color: #17131c;
}

.sound-toggle,
.mint-button--demo {
  background: #d88a2e;
  box-shadow: inset 0 -8px 0 #9c6129, 6px 6px 0 var(--ink);
}

.sound-toggle:hover,
.sound-toggle:focus-visible,
.mint-button--demo:hover:not(:disabled),
.mint-button--demo:focus-visible:not(:disabled),
.serial-checker-form button:hover,
.serial-checker-form button:focus-visible,
.docs-link:hover,
.docs-link:focus-visible {
  background: #f0ad43;
}

.machine-stage {
  background: #334532;
  box-shadow:
    inset 0 0 0 5px #777b67,
    inset 0 -10px 0 #4c5148,
    6px 6px 0 #1b1919;
}

.serial-console {
  background: #70463a;
  box-shadow: inset 0 0 0 4px #985c42, 5px 5px 0 #1b1919;
}

.serial-prefix {
  color: #ead4b1;
}

.serial-state {
  color: #f0b94f;
}

.mint-button--real:disabled,
.wallet-connect-button {
  color: #98988a;
  background: #353832;
}

.result-panel {
  background: #353a34;
  box-shadow: inset 0 0 0 4px #494f46;
}

.site-section {
  background: rgba(36, 39, 36, 0.97);
  box-shadow: 9px 9px 0 var(--ink), inset 0 0 0 5px #494d44;
}

.process-grid li,
.supply-card,
.serial-checker,
.serial-ladder,
.trait-preview-panel,
.trait-browser-panel,
.wallet-bay,
.docs-grid article {
  background: #313630;
  box-shadow: inset 0 -7px 0 #262b28;
}

.supply-card--special {
  background: #714536;
  box-shadow: inset 0 -8px 0 #58372f;
}

.supply-card--total {
  color: var(--ink);
  background: #cf812b;
  box-shadow: inset 0 -8px 0 #9a6027;
}

.serial-check-result,
.serial-ladder li,
.trait-tabs button,
.trait-card,
.wallet-metrics div,
.faq-list details {
  background: #242a27;
}

.serial-checker-form input {
  color: #201b1b;
  background: #d8cfb5;
  box-shadow: inset 0 0 0 4px #eee1c2;
}

.special-signal-card {
  background: #724536;
  box-shadow: inset 0 -8px 0 #56352e, 5px 5px 0 var(--ink);
}

.special-signal-card:nth-child(2) {
  background: #504157;
  box-shadow: inset 0 -8px 0 #3d3447, 5px 5px 0 var(--ink);
}

.special-signal-card:nth-child(3) {
  background: #7e3d2f;
  box-shadow: inset 0 -8px 0 #5c302c, 5px 5px 0 var(--ink);
}

.special-signal-card:nth-child(4) {
  background: #8b5d2d;
  box-shadow: inset 0 -8px 0 #684623, 5px 5px 0 var(--ink);
}

.special-signal-card:nth-child(5) {
  background: #3b413b;
  box-shadow: inset 0 -8px 0 #2c312e, 5px 5px 0 var(--ink);
}

#traitLabCanvas {
  background: #7d965c;
  box-shadow: inset 0 0 0 5px #596f45, 6px 6px 0 var(--ink);
}

.offline-led {
  background: #a54932;
}

@media (max-width: 680px) {
  .mine-theme::before,
  .mine-theme::after {
    inset: 72px 0 0;
  }

  .mine-theme::before {
    background-position: 72% top;
    background-size: auto 100%;
    opacity: 0.9;
  }
}

/* The ultrawide cave is rendered once by .mine-theme::before. */
body {
  background-color: #15131b;
  background-image: none;
}

.grain {
  opacity: 0.16;
}

.intro-panel {
  background: rgba(46, 64, 72, 0.94);
}

.mint-console,
.site-section {
  background: rgba(43, 60, 69, 0.95);
}

/* Clean scenic front — keeps the mine visible and the mint mechanic primary. */
.topbar {
  min-height: 64px;
  padding: 10px clamp(22px, 3vw, 52px);
  border-bottom: 3px solid rgba(26, 20, 24, 0.9);
  background: rgba(24, 20, 22, 0.84);
  box-shadow: none;
}

.mine-theme::before,
.mine-theme::after {
  inset: 64px 0 0;
}

main {
  width: min(1540px, calc(100% - 48px));
}

.mint-layout {
  grid-template-columns: minmax(430px, 0.92fr) minmax(480px, 1.08fr);
  gap: clamp(36px, 5vw, 92px);
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: clamp(34px, 5vh, 58px) 0;
}

.intro-panel {
  max-width: 650px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.intro-panel::before,
.intro-panel::after {
  display: none;
}

.intro-panel h1 {
  max-width: 9.5ch;
  margin-bottom: 24px;
  color: #f3ead4;
  font-size: clamp(56px, 5.25vw, 88px);
  line-height: 0.9;
  text-shadow:
    5px 5px 0 #17131c,
    0 12px 34px rgba(8, 7, 9, 0.86);
}

.intro-panel h1 em {
  color: #dc6744;
}

.intro-panel .lead {
  max-width: 43ch;
  margin-bottom: 22px;
  color: #f0e5cd;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.65;
  text-shadow: 2px 2px 0 rgba(16, 13, 16, 0.92);
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0 0 26px;
}

.hero-specs div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
  min-width: auto;
  padding: 0 18px;
  border: 0;
  border-left: 2px solid rgba(216, 138, 46, 0.78);
  background: transparent;
  box-shadow: none;
}

.hero-specs div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-specs dt,
.hero-specs dd {
  margin: 0;
  text-shadow: 2px 2px 0 rgba(15, 12, 15, 0.9);
}

.hero-specs dt {
  color: #c9bea8;
  font-size: 9px;
}

.hero-specs dd {
  color: #f2d997;
  font-size: 14px;
}

.intro-panel .action-row {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.intro-panel .mint-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  max-width: 560px;
}

.intro-panel .mint-button {
  min-height: 66px;
  border-width: 4px;
  transform: translateZ(0);
  transition: transform 140ms steps(2, end), filter 140ms steps(2, end);
}

.intro-panel .mint-button--demo:not(:disabled):hover,
.intro-panel .mint-button--demo:not(:disabled):focus-visible {
  transform: translate(-3px, -3px);
  filter: brightness(1.12);
}

.intro-panel #mintDisclaimer {
  max-width: 560px;
  margin: 11px 0 0;
  color: #d2c8b3;
  font-size: 9px;
  line-height: 1.5;
  text-shadow: 2px 2px 0 rgba(15, 12, 15, 0.9);
}

.mint-console {
  width: min(100%, 620px);
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mint-console::before,
.mint-console::after {
  display: none;
}

.console-head {
  min-height: 36px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}

.console-head > div:first-child {
  display: none;
}

.console-tools {
  width: 100%;
  justify-content: flex-end;
}

.sound-toggle {
  min-height: 34px;
  padding: 7px 12px;
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--ink), inset 0 -5px 0 #9c6129;
}

.console-status {
  color: #e6dcc5;
  text-shadow: 2px 2px 0 rgba(15, 12, 15, 0.9);
}

.machine-stage {
  width: min(100%, 510px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 0;
  background:
    radial-gradient(circle, rgba(190, 255, 30, 0.19) 0 30%, rgba(92, 116, 63, 0.12) 48%, transparent 70%);
  box-shadow: none;
  overflow: visible;
}

#machineCanvas {
  filter:
    drop-shadow(8px 12px 0 rgba(23, 19, 28, 0.82))
    drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
}

.machine-stage .scanlines {
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(circle, #000 0 52%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0 52%, transparent 72%);
}

.machine-stage .target-corners {
  display: none;
}

.serial-console {
  width: min(100%, 490px);
  margin: -4px auto 0;
  padding: 9px 11px;
  border: 3px solid var(--ink);
  background: rgba(92, 58, 49, 0.9);
  box-shadow: 5px 5px 0 rgba(23, 19, 28, 0.9), inset 0 0 0 3px rgba(154, 94, 67, 0.72);
}

.serial-console .reels {
  gap: 7px;
}

.serial-console .reel {
  min-height: 48px;
}

.result-panel {
  display: none;
  width: min(100%, 490px);
  margin: 16px auto 0;
  background: rgba(39, 45, 40, 0.94);
}

.result-panel.is-visible {
  display: block;
  animation: result-rise 220ms steps(3, end) both;
}

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

@media (max-width: 1040px) {
  .mint-layout {
    grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
    gap: 24px;
  }

  .intro-panel h1 {
    font-size: clamp(52px, 6.8vw, 76px);
  }

  .machine-stage {
    width: min(100%, 450px);
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 72px;
  }

  .mine-theme::before,
  .mine-theme::after {
    inset: 72px 0 0;
  }

  main {
    width: min(100% - 30px, 720px);
  }

  .mint-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 56px 0 64px;
  }

  .intro-panel {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }

  .intro-panel h1,
  .intro-panel .lead {
    margin-inline: auto;
  }

  .hero-specs,
  .intro-panel .mint-actions {
    justify-content: center;
    margin-inline: auto;
  }

  .intro-panel #mintDisclaimer {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .intro-panel h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-specs {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }

  .hero-specs div,
  .hero-specs div:first-child {
    justify-content: center;
    padding: 0 12px;
    border-left: 0;
  }

  .intro-panel .mint-actions {
    grid-template-columns: 1fr;
  }

  .machine-stage {
    width: min(100%, 390px);
  }

  .serial-prefix,
  .serial-state {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .result-panel.is-visible {
    animation: none;
  }
}

/* Clean hero integration — keep the cave visible around the mint terminal. */
.mint-layout {
  grid-template-columns: minmax(350px, 0.7fr) minmax(620px, 1.3fr);
  gap: clamp(46px, 5vw, 84px);
  align-items: center;
}

.intro-panel {
  padding: clamp(12px, 1.5vw, 22px) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.intro-panel::before {
  display: none;
}

.intro-panel h1 {
  max-width: 680px;
  margin-bottom: 28px;
  text-shadow:
    4px 4px 0 #17131c,
    8px 8px 0 rgba(23, 19, 28, 0.56);
}

.intro-panel .lead {
  max-width: 580px;
  margin-bottom: 26px;
  color: #f1e6ce;
  font-weight: 700;
  text-shadow:
    2px 2px 0 #17131c,
    0 0 16px rgba(23, 19, 28, 0.92);
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 0;
  border-block: 3px solid rgba(238, 226, 199, 0.54);
}

.hero-specs div {
  min-width: 108px;
  padding: 4px 18px;
  border: 0;
  border-right: 2px solid rgba(238, 226, 199, 0.34);
  background: transparent;
  box-shadow: none;
}

.hero-specs div:first-child {
  padding-left: 0;
}

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

.hero-specs dt {
  color: #d3c8b2;
  text-shadow: 2px 2px 0 #17131c;
}

.hero-specs dd {
  color: #ffe0a0;
  text-shadow: 2px 2px 0 #17131c;
}

.mint-console {
  background: rgba(34, 48, 53, 0.82);
  box-shadow:
    7px 0 0 rgba(23, 19, 28, 0.86),
    7px 7px 0 rgba(23, 19, 28, 0.9),
    inset 0 0 0 4px rgba(95, 105, 98, 0.78);
}

@media (max-width: 1180px) {
  .mint-layout {
    grid-template-columns: minmax(320px, 0.72fr) minmax(540px, 1.28fr);
    gap: 30px;
  }

  .hero-specs div {
    min-width: 96px;
    padding-inline: 12px;
  }
}

@media (max-width: 1000px) {
  .mint-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-panel {
    width: min(100%, 760px);
  }
}

@media (max-width: 680px) {
  .intro-panel {
    padding: 18px 4px;
  }

  .hero-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-specs div,
  .hero-specs div:first-child,
  .hero-specs div:last-child {
    min-width: 0;
    padding: 8px 10px;
    border-right: 0;
  }

  .hero-specs div:nth-child(odd) {
    border-right: 2px solid rgba(238, 226, 199, 0.34);
  }
}

/* Full-scene landing: one clear message first, interactive terminal below. */
.site-nav a {
  font-size: 11px;
}

.mint-layout {
  display: block;
  min-height: 0;
  padding: 0;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 64px);
  margin: 0;
  padding: clamp(104px, 15vh, 160px) 18px 120px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(15, 13, 17, 0.7) 0, rgba(15, 13, 17, 0.36) 30%, transparent 64%);
}

.intro-panel h1 {
  max-width: 15ch;
  margin: 0 0 28px;
  color: #fff4da;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(66px, 6.2vw, 106px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-shadow:
    5px 5px 0 #17131c,
    9px 9px 0 rgba(23, 19, 28, 0.56),
    0 20px 42px rgba(0, 0, 0, 0.72);
}

.intro-panel h1 em {
  display: block;
  color: #f1734d;
  font-style: normal;
}

.intro-panel .lead {
  max-width: 620px;
  margin: 0 0 32px;
  color: #fff4dc;
  font-family: "Lucida Console", Monaco, Consolas, monospace;
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 700;
  line-height: 1.65;
  text-shadow:
    2px 2px 0 #17131c,
    0 0 18px #17131c;
}

.hero-specs {
  display: none;
}

.intro-panel .action-row {
  width: min(100%, 560px);
}

.intro-panel .mint-actions {
  width: 100%;
  max-width: none;
}

.intro-panel .mint-button {
  min-height: 64px;
  font-size: 13px;
}

.intro-panel #mintDisclaimer {
  margin-top: 14px;
  color: #eee0c7;
  font-size: 10px;
}

.mint-console {
  scroll-margin-top: 84px;
  width: min(100%, 760px);
  margin: 0 auto 110px;
  padding: clamp(24px, 3vw, 42px);
  border: 5px solid #17131c;
  background: rgba(34, 48, 53, 0.94);
  box-shadow:
    10px 10px 0 #17131c,
    inset 0 0 0 4px rgba(95, 105, 98, 0.78);
}

.console-head {
  min-height: 54px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 4px solid #17131c;
}

.console-head > div:first-child {
  display: block;
}

.machine-stage {
  width: min(100%, 560px);
  overflow: hidden;
}

.serial-console {
  width: min(100%, 560px);
}

.result-panel {
  width: min(100%, 560px);
}

@media (max-width: 820px) {
  .intro-panel {
    min-height: calc(100svh - 72px);
    padding: 82px 12px 96px;
  }

  .intro-panel h1 {
    font-size: clamp(56px, 12vw, 82px);
  }

  .mint-console {
    margin-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .intro-panel {
    justify-content: center;
    padding: 62px 0 82px;
  }

  .intro-panel h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .intro-panel .lead {
    max-width: 33ch;
    font-size: 14px;
  }

  .intro-panel .mint-actions {
    grid-template-columns: 1fr;
  }

  .mint-console {
    width: 100%;
    padding: 18px;
  }
}

/* Minimal mint frame — no terminal panel or visible sound controls. */
.mint-console {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto 110px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.pixel-mint-frame {
  position: relative;
  width: min(100%, 580px);
  margin-inline: auto;
  padding: 10px;
  border: 4px solid #ead6a7;
  background: rgba(26, 22, 24, 0.42);
  box-shadow:
    0 0 0 5px #17131c,
    10px 10px 0 #17131c;
}

.pixel-mint-frame::before,
.pixel-mint-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.pixel-mint-frame::before {
  top: -8px;
  left: -8px;
  border-top: 6px solid #d88a2e;
  border-left: 6px solid #d88a2e;
}

.pixel-mint-frame::after {
  right: -8px;
  bottom: -8px;
  border-right: 6px solid #d88a2e;
  border-bottom: 6px solid #d88a2e;
}

.pixel-mint-frame .machine-stage {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pixel-mint-frame #machineCanvas {
  filter: none;
}

.pixel-mint-frame .serial-console {
  width: 100%;
  margin: 8px 0 0;
  box-shadow: inset 0 0 0 3px rgba(154, 94, 67, 0.72);
}

.pixel-mint-frame .action-row {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.pixel-mint-frame .mint-button {
  min-height: 62px;
  border-width: 4px;
}

.pixel-mint-frame #mintDisclaimer {
  margin: 10px 0 0;
  color: #e4d9c2;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 2px 2px 0 #17131c;
}

.mint-console .result-panel,
.mint-console .result-panel.is-visible {
  display: none;
}

@media (max-width: 560px) {
  .mint-console {
    width: calc(100% - 8px);
    padding: 0;
  }

  .pixel-mint-frame {
    padding: 7px;
  }

  .pixel-mint-frame .mint-actions {
    grid-template-columns: 1fr;
  }
}

/* SPL brand system — commercial-safe pixel type and logo-derived palette. */
@font-face {
  font-family: "SPL Pixel";
  src: url("assets/fonts/pixelify-sans/PixelifySans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --brand-teal: #0c7f70;
  --brand-teal-deep: #043b34;
  --brand-teal-bright: #0c7f70;
  --brand-white: #f0f3f3;
  --brand-cream: #f0f3f3;
  --brand-orange: #f0f3f3;
  --brand-ink: #043b34;
}

html,
body,
button,
input,
select,
textarea,
a {
  font-family: "SPL Pixel", "Courier New", monospace;
}

body {
  color: var(--brand-white);
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}

h1,
h2,
h3,
.wordmark,
.site-nav,
.wallet-link,
.mint-button,
.section-heading,
.serial-checker-form button,
.docs-link,
.trait-tabs button,
.special-signal-card {
  font-family: "SPL Pixel", "Courier New", monospace;
}

.topbar {
  display: grid;
  grid-template-areas: "nav logo actions";
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 86px;
  padding: 7px clamp(20px, 3vw, 54px);
  border-bottom: 4px solid var(--brand-teal);
  background: rgba(7, 25, 23, 0.94);
  box-shadow: 0 5px 0 rgba(3, 14, 13, 0.92);
}

.wordmark {
  grid-area: logo;
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 72px;
  padding: 0;
}

.wordmark img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: none;
}

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

.site-nav {
  grid-area: nav;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 24px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--brand-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--brand-ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  background: var(--brand-teal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms steps(3, end);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
}

.network-pill {
  display: none;
}

.wallet-link {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 18px 13px;
  border: 4px solid var(--brand-ink);
  color: var(--brand-white);
  background: var(--brand-teal);
  box-shadow:
    inset 0 -6px 0 var(--brand-teal-deep),
    5px 5px 0 var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--brand-teal-deep);
  transition: transform 120ms steps(2, end), filter 120ms steps(2, end);
}

.wallet-link:hover,
.wallet-link:focus-visible {
  color: #fff;
  background: var(--brand-teal-bright);
  filter: brightness(1.04);
  transform: translate(-3px, -3px);
}

.mine-theme::before,
.mine-theme::after {
  inset: 86px 0 0;
}

.intro-panel {
  min-height: calc(100svh - 86px);
  background:
    radial-gradient(ellipse at 50% 34%, rgba(5, 29, 27, 0.72) 0, rgba(5, 29, 27, 0.34) 31%, transparent 65%);
}

.intro-panel h1 {
  color: var(--brand-white);
  font-family: "SPL Pixel", "Courier New", monospace;
  font-size: clamp(62px, 6vw, 100px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    5px 5px 0 var(--brand-ink),
    9px 9px 0 var(--brand-teal-deep),
    0 22px 44px rgba(0, 0, 0, 0.72);
}

.intro-panel h1 em {
  color: var(--brand-teal-bright);
}

.intro-panel .lead {
  max-width: 660px;
  color: var(--brand-white);
  font-family: "SPL Pixel", "Courier New", monospace;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 500;
  line-height: 1.45;
  text-shadow:
    3px 3px 0 var(--brand-ink),
    0 0 18px var(--brand-ink);
}

.pixel-mint-frame {
  border-color: var(--brand-white);
  background: rgba(5, 35, 32, 0.46);
  box-shadow:
    0 0 0 5px var(--brand-ink),
    10px 10px 0 var(--brand-ink);
}

.pixel-mint-frame::before {
  border-top-color: var(--brand-teal-bright);
  border-left-color: var(--brand-teal-bright);
}

.pixel-mint-frame::after {
  border-right-color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

.pixel-mint-frame .serial-console {
  color: var(--brand-white);
  background: rgba(6, 69, 61, 0.94);
  box-shadow: inset 0 0 0 3px rgba(40, 201, 180, 0.42);
}

.mint-button,
.serial-checker-form button,
.docs-link,
.wallet-connect-button {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mint-button--demo,
.serial-checker-form button,
.docs-link,
.trait-tabs button[aria-selected="true"] {
  color: var(--brand-white);
  background: var(--brand-teal);
  box-shadow:
    inset 0 -7px 0 var(--brand-teal-deep),
    5px 5px 0 var(--brand-ink);
}

.mint-button--demo:hover:not(:disabled),
.mint-button--demo:focus-visible:not(:disabled),
.serial-checker-form button:hover,
.serial-checker-form button:focus-visible,
.docs-link:hover,
.docs-link:focus-visible {
  color: #fff;
  background: var(--brand-teal-bright);
}

.mint-button--real:disabled,
.wallet-connect-button:disabled {
  color: rgba(240, 243, 243, 0.58);
  background: rgba(6, 69, 61, 0.58);
  box-shadow:
    inset 0 -7px 0 rgba(4, 43, 38, 0.72),
    5px 5px 0 var(--brand-ink);
}

.mint-button--real[data-launch-locked="true"] {
  color: var(--brand-white);
  background: var(--brand-teal);
  box-shadow:
    inset 0 -7px 0 var(--brand-teal-deep),
    5px 5px 0 var(--brand-ink);
  cursor: not-allowed;
}

.mint-button--real[data-launch-locked="true"] .button-key {
  color: var(--brand-white);
  border-color: rgba(240, 243, 243, 0.7);
}

.site-section {
  border: 4px solid var(--brand-ink);
  border-top-color: var(--brand-teal);
  background: rgba(7, 33, 31, 0.93);
  box-shadow: 8px 8px 0 var(--brand-ink);
}

.section-heading {
  border-bottom-color: rgba(40, 201, 180, 0.42);
}

.section-heading h2,
.serial-checker h3,
.serial-ladder h3,
.trait-preview-panel h3,
.docs-grid h3,
.result-heading h3 {
  color: var(--brand-white);
  font-family: "SPL Pixel", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 var(--brand-teal-deep);
}

.section-heading h2 {
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.96;
}

.section-heading p,
.process-grid p,
.supply-card p,
.serial-checker > p,
.docs-grid p,
.faq-list p,
.special-callout p,
.action-row p {
  color: #dce8e5;
  font-size: 16px;
  line-height: 1.5;
}

.section-index,
.panel-code,
.micro-label,
.hero-specs dt,
.console-status,
.wallet-metrics dt {
  color: var(--brand-teal-bright);
}

.process-grid li,
.supply-card,
.serial-checker,
.serial-ladder,
.trait-preview-panel,
.trait-browser-panel,
.wallet-bay,
.docs-grid article {
  border: 2px solid rgba(240, 243, 243, 0.14);
  background: rgba(5, 42, 38, 0.84);
  box-shadow: 4px 4px 0 var(--brand-ink);
}

.serial-check-result,
.serial-ladder li,
.trait-tabs button,
.trait-card,
.wallet-metrics div,
.faq-list details {
  border-color: rgba(40, 201, 180, 0.22);
  background: rgba(3, 27, 25, 0.86);
}

.supply-card--special,
.special-signal-card {
  background: #74472f;
}

.supply-card--total {
  color: var(--brand-white);
  background: var(--brand-teal);
  box-shadow: inset 0 -8px 0 var(--brand-teal-deep);
}

.trait-card[data-selected="true"],
.trait-card:hover,
.special-signal-card:hover,
.special-signal-card:focus-visible {
  border-color: var(--brand-teal-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--brand-teal-bright);
  outline-offset: 4px;
}

footer {
  color: #dce8e5;
  background: rgba(5, 25, 23, 0.97);
  box-shadow: inset 0 5px 0 var(--brand-teal-deep);
}

@media (max-width: 1100px) {
  .topbar {
    padding-inline: 18px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 10px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-areas:
      "logo actions"
      "nav nav";
    grid-template-columns: 1fr 1fr;
    min-height: 120px;
    padding: 7px 16px 10px;
  }

  .wordmark {
    justify-self: start;
    width: 58px;
    height: 58px;
  }

  .wordmark img {
    width: 52px;
    height: 52px;
  }

  .wallet-link {
    min-height: 44px;
    padding: 8px 12px 11px;
    font-size: 11px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .mine-theme::before,
  .mine-theme::after {
    inset: 120px 0 0;
  }

  .intro-panel {
    min-height: calc(100svh - 120px);
  }
}

@media (max-width: 560px) {
  .site-nav a {
    font-size: 9px;
  }

  .intro-panel h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .intro-panel .lead {
    max-width: 34ch;
    font-size: 15px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 10vw, 48px);
  }
}

/* Brand-matched cave fallback and center readability. */
.mine-theme {
  background-color: #041f1c;
}

.mine-theme::after {
  background:
    radial-gradient(ellipse at 50% 34%, rgba(3, 22, 20, 0.28), transparent 31rem),
    radial-gradient(circle at 76% 43%, rgba(240, 243, 243, 0.06), transparent 24rem),
    linear-gradient(90deg, rgba(4, 59, 52, 0.14), transparent 18%, transparent 82%, rgba(4, 59, 52, 0.14));
}

/* SPL duotone accent: the logo teal and white only. */
:root {
  --brand-lime: #f0f3f3;
  --brand-lime-deep: #0c7f70;
  --brand-lime-hover: #ffffff;
}

.intro-panel h1 em {
  color: var(--brand-teal);
  background: var(--brand-white);
  box-shadow: 8px 8px 0 var(--brand-teal-deep);
}

.site-nav a::after {
  background: var(--brand-lime);
}

.wallet-link {
  color: var(--brand-ink);
  background: var(--brand-lime);
  box-shadow:
    inset 0 -6px 0 var(--brand-lime-deep),
    5px 5px 0 var(--brand-ink);
  text-shadow: none;
}

.wallet-link:hover,
.wallet-link:focus-visible {
  color: var(--brand-ink);
  background: var(--brand-lime-hover);
}

.mint-button--demo {
  color: var(--brand-ink);
  background: var(--brand-lime);
  box-shadow:
    inset 0 -7px 0 var(--brand-lime-deep),
    5px 5px 0 var(--brand-ink);
  text-shadow: none;
}

.mint-button--demo:hover:not(:disabled),
.mint-button--demo:focus-visible:not(:disabled) {
  color: var(--brand-ink);
  background: var(--brand-lime-hover);
}

.pixel-mint-frame::before {
  border-top-color: var(--brand-lime);
  border-left-color: var(--brand-lime);
}

.serial-check-result strong,
.serial-state {
  color: var(--brand-lime);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline-color: var(--brand-lime);
}

/* Unified one-of-one serial system and proposed utility section. */
.machine-stage.is-special-hit {
  outline: 6px solid var(--brand-lime);
  outline-offset: -10px;
}

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

.special-signal-card {
  min-height: 142px;
  padding: 18px 14px 22px;
  border-color: var(--brand-ink);
  background:
    linear-gradient(180deg, rgba(197, 249, 0, 0.09), transparent 52%),
    rgba(6, 69, 61, 0.97);
  box-shadow:
    inset 0 -7px 0 rgba(4, 31, 28, 0.5),
    5px 5px 0 var(--brand-ink);
}

.special-signal-card:hover,
.special-signal-card:focus-visible {
  color: var(--brand-ink);
  background: var(--brand-lime);
  box-shadow:
    inset 0 -7px 0 var(--brand-lime-deep),
    5px 5px 0 var(--brand-ink);
  transform: translate(-2px, -2px);
}

.special-signal-card b {
  color: var(--brand-lime);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.95;
}

.special-signal-card:hover b,
.special-signal-card:focus-visible b {
  color: var(--brand-ink);
}

.special-signal-card span {
  color: var(--brand-white);
  font-size: 12px;
}

.special-signal-card small {
  color: var(--brand-cream);
  font-size: 9px;
}

.special-signal-card:hover span,
.special-signal-card:hover small,
.special-signal-card:focus-visible span,
.special-signal-card:focus-visible small {
  color: var(--brand-ink);
}

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

.utility-flow article {
  position: relative;
  min-height: 190px;
  padding: 22px 20px;
  border: 4px solid var(--brand-ink);
  background: rgba(6, 69, 61, 0.96);
  box-shadow:
    inset 0 0 0 3px rgba(40, 201, 180, 0.35),
    5px 5px 0 var(--brand-ink);
}

.utility-flow b {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--brand-ink);
  background: var(--brand-lime);
  box-shadow: 4px 4px 0 var(--brand-ink);
}

.utility-flow span {
  display: block;
  color: var(--brand-white);
  font-size: 15px;
  line-height: 1.05;
}

.utility-flow p {
  margin: 12px 0 0;
  color: var(--brand-cream);
  font-size: 12px;
  line-height: 1.55;
}

.utility-guardrail {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  padding: 18px 20px;
  border: 4px solid var(--brand-ink);
  border-left: 12px solid var(--brand-lime);
  background: rgba(4, 31, 28, 0.98);
  box-shadow: 5px 5px 0 var(--brand-ink);
}

.utility-guardrail strong {
  color: var(--brand-lime);
  font-size: 14px;
  line-height: 1.25;
}

.utility-guardrail p {
  margin: 0;
  color: var(--brand-cream);
  font-size: 12px;
  line-height: 1.55;
}

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

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

@media (max-width: 680px) {
  .special-signal-grid,
  .utility-flow,
  .utility-guardrail {
    grid-template-columns: 1fr;
  }

  .special-signal-card,
  .utility-flow article {
    min-height: auto;
  }
}

/* Final visible palette lock: SPL teal + white, with teal alpha for depth. */
.topbar {
  color: var(--brand-white);
  background: rgba(4, 59, 52, 0.96);
  border-color: var(--brand-white);
  box-shadow: 0 5px 0 var(--brand-teal-deep);
}

footer {
  color: var(--brand-white);
  background: rgba(4, 59, 52, 0.98);
  border-color: rgba(240, 243, 243, 0.32);
  box-shadow: inset 0 5px 0 var(--brand-white);
}

.wordmark,
.wordmark img {
  filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.intro-panel h1 em {
  display: inline-block;
  padding: 0 0.12em 0.08em;
  color: var(--brand-teal);
  background: var(--brand-white);
  box-shadow: 8px 8px 0 var(--brand-teal-deep);
}

.site-nav a::after {
  background: var(--brand-white);
}

.pixel-mint-frame::before {
  border-top-color: var(--brand-white);
  border-left-color: var(--brand-white);
}

.pixel-mint-frame::after {
  border-right-color: var(--brand-white);
  border-bottom-color: var(--brand-white);
}

.wallet-link,
.mint-button--demo,
.serial-checker-form button,
.docs-link,
.trait-tabs button[aria-selected="true"],
.utility-flow b {
  color: var(--brand-teal);
  background: var(--brand-white);
  text-shadow: none;
  box-shadow:
    inset 0 -6px 0 rgba(12, 127, 112, 0.28),
    5px 5px 0 var(--brand-teal-deep);
}

.wallet-link:hover,
.wallet-link:focus-visible,
.mint-button--demo:hover:not(:disabled),
.mint-button--demo:focus-visible:not(:disabled),
.serial-checker-form button:hover,
.serial-checker-form button:focus-visible,
.docs-link:hover,
.docs-link:focus-visible {
  color: var(--brand-white);
  background: var(--brand-teal);
}

.section-index,
.panel-code,
.micro-label,
.hero-specs dt,
.console-status,
.wallet-metrics dt,
.serial-state,
.serial-check-result strong,
.utility-guardrail strong {
  color: var(--brand-white);
}

.pixel-mint-frame,
.site-section,
.mint-console,
.result-panel,
.process-grid li,
.supply-card,
.serial-checker,
.serial-ladder,
.trait-preview-panel,
.trait-browser-panel,
.wallet-bay,
.docs-grid article,
.serial-check-result,
.serial-ladder li,
.trait-tabs button,
.trait-card,
.wallet-metrics div,
.faq-list details,
.utility-flow article,
.utility-guardrail,
.integrity-strip,
.special-callout,
.action-row {
  border-color: rgba(240, 243, 243, 0.32);
  color: var(--brand-white);
  background-color: rgba(4, 59, 52, 0.9);
  box-shadow: 4px 4px 0 var(--brand-teal-deep);
}

.supply-card--special,
.supply-card--total {
  color: var(--brand-white);
  background: var(--brand-teal);
  box-shadow: inset 0 -8px 0 var(--brand-teal-deep);
}

.special-signal-card {
  color: var(--brand-white);
  background:
    linear-gradient(180deg, rgba(240, 243, 243, 0.08), transparent 52%),
    var(--brand-teal);
}

.special-signal-card b,
.special-signal-card span,
.special-signal-card small {
  color: var(--brand-white);
}

.special-signal-card:hover,
.special-signal-card:focus-visible {
  color: var(--brand-teal);
  background: var(--brand-white);
  box-shadow:
    inset 0 -7px 0 rgba(12, 127, 112, 0.28),
    5px 5px 0 var(--brand-teal-deep);
}

.special-signal-card:hover b,
.special-signal-card:hover span,
.special-signal-card:hover small,
.special-signal-card:focus-visible b,
.special-signal-card:focus-visible span,
.special-signal-card:focus-visible small {
  color: var(--brand-teal);
}

[data-tier="common"],
[data-tier="uncommon"],
[data-tier="rare"],
[data-tier="epic"],
[data-tier="legendary"],
[data-tier="special"] {
  --tier-color: var(--brand-white);
}

.machine-stage.event-777,
.machine-stage.event-666,
.machine-stage.event-000,
.machine-stage.event-251,
.machine-stage.is-special-hit {
  filter: none;
  outline-color: var(--brand-white);
  box-shadow:
    inset 0 0 70px rgba(240, 243, 243, 0.28),
    0 0 28px rgba(240, 243, 243, 0.22);
}

.serial-checker-form input,
.reel {
  color: var(--brand-teal-deep);
  background: var(--brand-white);
}

.utility-guardrail {
  border-left-color: var(--brand-white);
}

.mine-theme::after {
  background:
    radial-gradient(ellipse at 50% 34%, rgba(4, 59, 52, 0.32), transparent 31rem),
    linear-gradient(90deg, rgba(4, 59, 52, 0.16), transparent 18%, transparent 82%, rgba(4, 59, 52, 0.16));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline-color: var(--brand-white);
}

@media (max-width: 560px) {
  .intro-panel h1 em {
    box-shadow: 5px 5px 0 var(--brand-teal-deep);
  }
}
