:root {
  --desk: #078d8b;
  --navy: #000080;
  --win: #c0c0c0;
  --ink: #111;
  --paper: #fffef1;
  --gold: #ffd429;
  --green: #00a748;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--desk);
  font-family: "Courier New", monospace;
  color: var(--ink);
  overflow-x: hidden;
}
.boot {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: #071c30;
  color: #86ff9f;
  font-size: clamp(14px, 2.5vw, 21px);
  animation: bootHide 0.45s ease 1.65s forwards;
}
.boot-box {
  width: min(580px, 86vw);
  padding: 25px;
  background: #000;
  border: 4px ridge #ddd;
  line-height: 1.75;
  box-shadow: 8px 8px #0008;
}
.boot-box span,
.result > span:first-child {
  animation: blink 1s steps(1) infinite;
}
.desktop {
  width: min(1080px, 94vw);
  margin: 24px auto 70px;
  animation: desktopIn 0.75s steps(7) both;
}
.window {
  background: var(--win);
  border: 2px solid #fff;
  border-right-color: #333;
  border-bottom-color: #333;
  box-shadow: 4px 4px #0004;
  margin-bottom: 18px;
}
.titlebar {
  height: 34px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 7px;
  font-size: 14px;
  font-weight: bold;
}
.controls {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.ctrl {
  display: grid;
  place-items: center;
  width: 24px;
  height: 21px;
  background: var(--win);
  border: 2px outset #eee;
  color: #111;
  font: 700 15px Arial;
}
.menu {
  display: flex;
  gap: 20px;
  min-height: 30px;
  padding: 6px 10px;
  border-bottom: 1px solid #777;
  background: #d9d9d9;
  font-size: 13px;
}
.menu a {
  color: #111;
  text-decoration: none;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.pad {
  padding: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: var(--win);
  border: 3px outset #fff;
  color: #111;
  font:
    bold 14px "Courier New",
    monospace;
  text-decoration: none;
  cursor: pointer;
}
.button:active {
  border-style: inset;
}
.gold {
  background: var(--gold);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}
.hero-copy {
  background: var(--paper);
  border: 3px inset #eee;
  padding: clamp(18px, 4vw, 36px);
}
.eyebrow {
  font-size: 12px;
  color: #355;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(39px, 8vw, 80px);
  line-height: 0.79;
  letter-spacing: -4px;
  margin: 13px 0 16px;
}
.hero h1 span {
  color: var(--green);
  display: block;
  text-shadow: 2px 2px #ccebd6;
}
.hero p,
.section-head p {
  line-height: 1.55;
  font-size: 14px;
  margin: 0 0 20px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.machine {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 3px inset #eee;
  background: #112a5a;
  display: grid;
  place-items: center;
  padding: 22px;
}
.machine:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(#72a4d5 1px, transparent 1px),
    linear-gradient(90deg, #72a4d5 1px, transparent 1px);
  background-size: 22px;
}
.scanner {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 5px;
  background: #70ff9a;
  box-shadow: 0 0 14px 3px #70ff9a;
  animation: scan 2.4s ease-in-out infinite;
}
.machine-core {
  position: relative;
  width: min(310px, 100%);
  text-align: center;
}
.ticket {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  filter: drop-shadow(7px 8px 0 #0007);
  transform-style: preserve-3d;
  animation: ticketFlip 5s linear infinite;
}
.ticket img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.ticket-back {
  transform: rotateY(180deg);
}
.machine-label {
  margin-top: 18px;
  color: #9bffb7;
  font-size: 13px;
  line-height: 1.5;
}
.status,
.terminal,
.result {
  margin-top: 10px;
  background: #061226;
  border: 2px inset #ddd;
  color: #8effab;
  padding: 8px;
  font-size: 12px;
}
.contract {
  margin-top: 16px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #fff;
  border: 2px inset #eee;
  padding: 10px;
  font-size: 12px;
  overflow: hidden;
}
.contract code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.copy {
  padding: 5px 9px;
  background: var(--win);
  border: 2px outset #fff;
  font: bold 11px "Courier New";
  cursor: pointer;
}
.ticker-tape {
  margin: 18px -1vw 0;
  overflow: hidden;
  background: var(--gold);
  border-block: 3px solid #111;
  transform: rotate(-0.6deg);
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 10px 0;
  font-weight: bold;
  animation: marquee 18s linear infinite;
}
.section-head {
  max-width: 650px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  margin: 0 0 10px;
}
.reward-panel {
  background: #fff;
  border: 3px inset #eee;
  padding: 20px;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input {
  width: 100%;
  padding: 13px;
  background: #fff;
  border: 3px inset #eee;
  font: 14px "Courier New";
}
.result {
  min-height: 125px;
  padding: 14px;
  line-height: 1.65;
}
.muted {
  color: #d1d1d1;
}
.rounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.round {
  background: #fff;
  border: 2px inset #eee;
  padding: 16px;
  text-align: center;
  font-size: 12px;
}
.paid {
  color: #087b29;
}
.how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step {
  background: #fff;
  border: 2px inset #eee;
  padding: 15px;
  min-height: 180px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 14px;
  font-weight: bold;
}
.step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.step p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.footer {
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 24px;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes ticketFlip {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg) rotateZ(-5deg);
  }
  50% {
    transform: translateY(-12px) rotateY(180deg) rotateZ(4deg);
  }
}
@keyframes scan {
  0%,
  100% {
    top: 23%;
    opacity: 0.35;
  }
  50% {
    top: 72%;
    opacity: 1;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes bootHide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes desktopIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 760px) {
  .desktop {
    margin-top: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .rounds {
    grid-template-columns: 1fr;
  }
  .how {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu {
    gap: 12px;
  }
  .menu a:nth-child(2) {
    display: none;
  }
  .nav-actions {
    margin-left: 0;
  }
  .machine {
    min-height: 260px;
  }
}
@media (max-width: 430px) {
  .how {
    grid-template-columns: 1fr;
  }
  .input-row {
    flex-direction: column;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
}
