* {
  box-sizing: border-box;
}

:root {
  --acid: #63ff00;
  --acid-dark: #2cae00;
  --paper: #eee7d7;
  --paper-2: #fff9e9;
  --ink: #0b0b0b;
  --copper: #b86625;
  --copper-dark: #6e3518;
  --oxide: #4e9a6c;
  --yellow: #ffe900;
  --red: #ff3d00;
  --border: 3px solid var(--ink);
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--acid);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.screen-grain {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, .13) 0,
      rgba(0, 0, 0, .13) 1px,
      transparent 1px,
      transparent 4px
    );
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 8px 12px;
  border-bottom: var(--border);
  background: rgba(99, 255, 0, .92);
  backdrop-filter: blur(10px);
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.dot {
  width: 11px;
  height: 11px;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--copper);
}

.top-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tiny-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 2px solid #000;
  background: var(--paper);
  box-shadow: 3px 3px 0 #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease;
}

.tiny-btn--buy {
  background: #000;
  color: var(--acid);
}

.tiny-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.disabled {
  opacity: .34 !important;
  filter: grayscale(1);
  pointer-events: none !important;
}

.hero {
  min-height: calc(100svh - 58px);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px),
    var(--acid);
  background-size: 23px 23px;
}

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

.terminal {
  margin: 0 0 18px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.hero h1,
.lab-title h2,
.oxidation-copy h2,
.button-wall-copy h2,
.finale-box h2 {
  margin: 0;
  font-size: clamp(72px, 10vw, 165px);
  line-height: .72;
  letter-spacing: -.07em;
  font-weight: 900;
  font-variant-ligatures: none;
}

.hero h1 {
  transform: rotate(-1.4deg);
}

.ticker-strip {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 9px 11px;
  border: var(--border);
  background: var(--paper);
  box-shadow: 6px 6px 0 #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  transform: rotate(.7deg);
}

.hero-text {
  margin: 28px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
}

.big-btn {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: var(--border);
  background: var(--paper);
  box-shadow: 6px 6px 0 #000;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
}

.big-btn--buy {
  background: #000;
  color: var(--acid);
}

.big-btn small {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 700;
}

.ca-card {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 13px;
  border: var(--border);
  background: #fff;
  box-shadow: 5px 5px 0 #000;
  cursor: pointer;
}

.ca-card:disabled {
  opacity: .35;
  cursor: default;
}

.ca-card span,
.ca-card small,
.ca-card b {
  font-family: "Courier New", Courier, monospace;
}

.ca-card span,
.ca-card small {
  font-size: 9px;
  font-weight: 700;
}

.ca-card b {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-art {
  position: relative;
  min-width: 0;
}

.character-window {
  border: var(--border);
  background: var(--paper);
  box-shadow: 14px 14px 0 #000;
  transform: rotate(1.8deg);
}

.window-bar {
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  border-bottom: var(--border);
  background: var(--copper);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 700;
}

.window-bar div {
  display: flex;
  gap: 4px;
}

.window-bar i {
  width: 10px;
  height: 10px;
  border: 2px solid #000;
  background: #fff;
}

.character {
  width: 100%;
  display: block;
}

.warning-tag {
  position: absolute;
  z-index: 4;
  padding: 8px 10px;
  border: 3px solid #000;
  background: var(--yellow);
  box-shadow: 4px 4px 0 #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
}

.warning-tag small {
  font-size: 8px;
}

.warning-tag--a {
  left: -10px;
  top: 7%;
  transform: rotate(-9deg);
}

.warning-tag--b {
  right: -8px;
  bottom: 9%;
  transform: rotate(7deg);
}

.marquee {
  overflow: hidden;
  border-top: var(--border);
  border-bottom: var(--border);
  background: #000;
  color: var(--acid);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 48px;
  padding: 11px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  animation: crawl 18s linear infinite;
}

.marquee-track span::before {
  content: "Cu ";
}

@keyframes crawl {
  to {
    transform: translateX(-50%);
  }
}

.lab {
  padding: clamp(70px, 9vw, 130px) max(18px, 6vw);
  background:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.lab-title > span {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
}

.lab-title h2,
.oxidation-copy h2,
.button-wall-copy h2 {
  margin-top: 10px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.lab-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: var(--border);
  background: #fff;
  box-shadow: 7px 7px 0 #000;
}

.rotate-a {
  transform: rotate(-1.2deg);
}

.rotate-b {
  transform: rotate(1.5deg);
}

.rotate-c {
  transform: rotate(-.6deg);
}

.lab-card small {
  margin-bottom: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
}

.lab-card b {
  font-size: clamp(42px, 5vw, 70px);
  line-height: .9;
  letter-spacing: -.05em;
}

.lab-card p {
  margin: 12px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1.45;
}

.oxidation {
  min-height: 82vh;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: clamp(70px, 9vw, 130px) max(18px, 6vw);
  background: #0b0b0b;
  color: #fff;
}

.oxidation-copy h2 {
  color: var(--acid);
}

.rust-message {
  width: max-content;
  max-width: 100%;
  padding: 9px 11px;
  border: 2px solid #fff;
  background: #000;
  box-shadow: 4px 4px 0 var(--copper);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.rust-meter {
  width: max-content;
  margin-top: 26px;
  padding: 12px 14px;
  border: 3px solid var(--acid);
  font-family: "Courier New", Courier, monospace;
}

.rust-meter span {
  display: block;
  color: #9d9d9d;
  font-size: 8px;
}

.rust-meter b {
  display: block;
  margin-top: 4px;
  color: var(--acid);
  font-size: 34px;
}

.rust-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rust-button img {
  width: min(650px, 100%);
  border: 4px solid var(--acid);
  box-shadow: 12px 12px 0 var(--copper);
  transition: transform .1s ease;
}

.rust-button:active img {
  transform: scale(.96) rotate(1.5deg);
}

.rust-button.shake img {
  animation: shake .22s steps(2, end);
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-8px) rotate(-1.5deg); }
  50% { transform: translateX(7px) rotate(1.5deg); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.rust-button span {
  position: absolute;
  bottom: 5%;
  padding: 8px 11px;
  border: 2px solid #000;
  background: var(--acid);
  color: #000;
  box-shadow: 4px 4px 0 #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
}

.receipt {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 70px 18px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.05) 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(225deg, rgba(0,0,0,.05) 25%, transparent 25%) -20px 0 / 40px 40px,
    var(--acid);
}

.receipt-paper {
  width: min(590px, 100%);
  padding: 28px;
  border: 3px dashed #000;
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--copper);
  transform: rotate(-1deg);
  font-family: "Courier New", Courier, monospace;
}

.receipt-head,
.receipt-row,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.receipt-head {
  font-size: 8px;
}

.receipt-paper h2 {
  margin: 28px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 8vw, 90px);
  line-height: .82;
  letter-spacing: -.06em;
}

.receipt-row {
  padding: 11px 0;
  border-bottom: 1px dashed #000;
  font-size: 10px;
}

.receipt-total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 3px solid #000;
  font-size: 12px;
  font-weight: 700;
}

.receipt-paper > p {
  margin: 28px 0 0;
  font-size: 8px;
  text-align: center;
}

.button-wall {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  padding: clamp(70px, 9vw, 130px) max(18px, 6vw);
  background: var(--yellow);
  border-top: var(--border);
}

.links-grid {
  display: grid;
  gap: 10px;
}

.link-card {
  min-height: 115px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px 16px;
  padding: 18px;
  border: var(--border);
  background: #fff;
  box-shadow: 6px 6px 0 #000;
}

.link-card--buy {
  background: #000;
  color: var(--acid);
}

.link-card span {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
}

.link-card b {
  align-self: end;
  font-size: clamp(26px, 4vw, 48px);
  letter-spacing: -.04em;
}

.link-card i {
  grid-column: 2;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.finale {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 18px;
  background: var(--copper);
}

.finale-bg {
  position: absolute;
  inset: -10%;
  display: grid;
  align-content: center;
  color: #000;
  opacity: .12;
  font-size: clamp(100px, 18vw, 300px);
  font-weight: 900;
  line-height: .62;
  letter-spacing: -.08em;
  transform: rotate(-8deg);
}

.finale-box {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.finale-box > span {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
}

.finale-box h2 {
  margin-top: 18px;
  color: var(--paper);
  text-shadow: 4px 4px 0 #000;
}

.final-btn {
  display: inline-flex;
  margin-top: 32px;
  padding: 16px 20px;
  border: var(--border);
  background: var(--acid);
  box-shadow: 6px 6px 0 #000;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px;
  border-top: var(--border);
  background: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: 22px;
  padding: 10px 14px;
  border: 2px solid #fff;
  background: #000;
  color: var(--acid);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) rotate(-2deg);
  transition: .15s ease;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
}

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

@media (max-width: 920px) {
  .hero,
  .oxidation,
  .button-wall {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .ticker-strip,
  .hero-actions {
    margin-inline: auto;
  }

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

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

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
  }

  .top-brand {
    font-size: 9px;
  }

  .tiny-btn {
    min-height: 31px;
    padding: 0 7px;
    font-size: 8px;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero h1,
  .lab-title h2,
  .oxidation-copy h2,
  .button-wall-copy h2,
  .finale-box h2 {
    font-size: 16vw;
  }

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

  .ca-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ca-card small {
    grid-column: 1 / -1;
  }

  .warning-tag {
    font-size: 8px;
  }
}

@media (max-width: 440px) {
  .topbar {
    gap: 8px;
    padding-inline: 8px;
  }

  .top-brand strong {
    display: none;
  }

  .receipt-paper {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
