:root {
  color-scheme: dark;
  --ink: #111827;
  --paper: #fff7dc;
  --paper-2: #ffe7a3;
  --gold: #f4b82c;
  --gold-deep: #9a5b0b;
  --red: #e72f2f;
  --blue: #1b64c8;
  --pool: #21b7ff;
  --navy: #101938;
  --white: #fffdf4;
  --line: #0b1022;
  --shadow: 8px 8px 0 #080b16;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
    #101525;
  color: var(--white);
  font-family:
    "Arial Black",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 24px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 4px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 247, 220, 0.94);
  box-shadow: 5px 5px 0 #05070d;
  color: var(--ink);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--gold);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.copy-ticker,
.site-footer button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  padding: 8px 12px;
  box-shadow: 3px 3px 0 var(--line);
  text-transform: uppercase;
}

.copy-ticker {
  background: var(--red);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(620px, 78svh, 760px);
  overflow: hidden;
  align-items: center;
  justify-items: end;
  padding: 104px clamp(28px, 5vw, 96px) 54px;
  border-bottom: 6px solid var(--line);
  background: #070b17;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: left center;
  filter: saturate(1.16) contrast(1.04);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 20, 0.04) 0%, rgba(6, 9, 20, 0.18) 36%, rgba(6, 9, 20, 0.76) 58%, rgba(6, 9, 20, 0.98) 100%),
    linear-gradient(0deg, rgba(6, 9, 20, 0.2) 0%, rgba(6, 9, 20, 0.04) 34%, rgba(6, 9, 20, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 43vw);
  margin-top: 34px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  box-shadow: 4px 4px 0 var(--line);
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(82px, 14vw, 178px);
  line-height: 0.82;
  text-shadow:
    7px 7px 0 var(--line),
    -2px -2px 0 var(--line),
    2px -2px 0 var(--line),
    -2px 2px 0 var(--line);
}

.hero-line {
  width: min(640px, 100%);
  margin: 20px 0 0;
  color: var(--white);
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: clamp(22px, 4.2vw, 48px);
  line-height: 0.96;
  text-shadow: 4px 4px 0 var(--line);
}

.hero-line span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 5px 5px 0 var(--line);
  color: var(--ink);
  text-transform: uppercase;
}

.button.primary {
  background: var(--gold);
}

.button.secondary {
  background: var(--pool);
}

.ticker-strip {
  overflow: hidden;
  border-bottom: 6px solid var(--line);
  background: var(--red);
  color: var(--white);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  font-size: clamp(20px, 4vw, 42px);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--line);
  white-space: nowrap;
}

.ticker-track span::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 28px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--gold);
}

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

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 54px);
  scroll-margin-top: 116px;
}

.lore-section {
  padding-top: clamp(82px, 9vw, 124px);
}

.section-head {
  width: min(980px, 100%);
  margin: 0 auto 26px;
}

.lore-section .section-head {
  width: min(1280px, 100%);
}

.lore-section h2 {
  font-size: clamp(38px, 6.4vw, 86px);
}

h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--line);
}

.story-grid {
  display: grid;
  width: min(1480px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.story-step {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 5px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 14px;
  overflow: hidden;
}

.story-step:nth-child(2) {
  background: #d9efff;
}

.story-step:nth-child(3) {
  background: #ffe0df;
}

.story-step.born {
  background: var(--gold);
}

.step-num {
  display: inline-flex;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 5px 9px;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 18px;
}

.story-step h3 {
  margin: 14px 0 8px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 0.92;
  text-transform: uppercase;
}

.story-step p {
  margin: 0;
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.1;
}

.step-art {
  display: block;
  flex: 0 0 auto;
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  block-size: auto !important;
  height: auto !important;
  max-height: none;
  aspect-ratio: 1 / 1;
  margin-top: 12px;
  border: 5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--line);
  object-fit: cover;
  object-position: center;
}

.step-icon {
  display: grid;
  width: 118px;
  height: 118px;
  margin-top: 28px;
  place-items: center;
  border: 5px solid var(--line);
  border-radius: 28px;
  box-shadow: 5px 5px 0 var(--line);
}

.pool-icon {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0 12%, transparent 13%),
    repeating-radial-gradient(ellipse at center, transparent 0 11px, #fff 12px 14px, transparent 15px 25px),
    var(--pool);
}

.oval-icon {
  border-radius: 50%;
  background:
    linear-gradient(#c49a54 0 18px, transparent 19px),
    radial-gradient(ellipse at center, #5f3519 0 30%, transparent 31%),
    #fff5cc;
}

.hat-icon {
  position: relative;
  background: var(--red);
}

.hat-icon::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 42px;
  border: 5px solid var(--line);
  border-bottom: 0;
  border-radius: 44px 44px 8px 8px;
  background: var(--red);
}

.hat-icon::after {
  content: "";
  position: absolute;
  bottom: 27px;
  width: 102px;
  height: 18px;
  border: 5px solid var(--line);
  border-radius: 999px;
  background: var(--red);
}

.coin-icon {
  border-radius: 50%;
  background: var(--gold);
  font-size: 42px;
  text-shadow: 2px 2px 0 var(--white);
}

.airdrop-section {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  border-top: 6px solid var(--line);
  border-bottom: 6px solid var(--line);
  background:
    linear-gradient(135deg, rgba(244, 184, 44, 0.28) 0 25%, transparent 26%),
    var(--blue);
}

.airdrop-copy p:not(.eyebrow) {
  width: min(540px, 100%);
  margin: 16px 0 28px;
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.02;
  text-shadow: 3px 3px 0 var(--line);
}

.airdrop-button {
  min-height: 70px;
  border: 5px solid var(--line);
  border-radius: 18px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  padding: 12px 22px;
  box-shadow: 7px 7px 0 var(--line);
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

.airdrop-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 6px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.airdrop-stage::before,
.airdrop-stage::after {
  display: none;
}

.airdrop-stage::before {
  left: 0;
}

.airdrop-stage::after {
  right: 0;
}

.desk {
  display: none;
}

.airdrop-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.receipt {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 5;
  width: min(260px, 48%);
  border: 5px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  box-shadow: 6px 6px 0 var(--line);
}

.receipt span {
  display: block;
  font-size: 15px;
  text-transform: uppercase;
}

.receipt strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 0.95;
  text-transform: uppercase;
}

.falling {
  position: absolute;
  z-index: 8;
  top: -42px;
  left: var(--x);
  display: grid;
  width: var(--s);
  height: var(--s);
  place-items: center;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
  font-size: calc(var(--s) * 0.28);
  animation: fall 950ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.falling.hat {
  border-radius: 16px 16px 40px 40px;
  background: var(--red);
  color: var(--white);
}

@keyframes fall {
  0% {
    transform: translateY(-30px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(510px) rotate(380deg);
    opacity: 0;
  }
}

.punch-section {
  display: grid;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}

.punch-image {
  overflow: hidden;
  border: 6px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.punch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.punch-copy {
  border: 6px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.punch-copy h2 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 70px);
  text-shadow: none;
}

.punch-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.08;
}

.kit-section {
  padding-top: clamp(86px, 9vw, 126px);
  scroll-margin-top: 128px;
  border-top: 6px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.kit-section .section-head {
  width: min(1260px, 100%);
}

.kit-section h2 {
  color: var(--ink);
  font-size: clamp(40px, 6.6vw, 86px);
  text-shadow: none;
}

.kit-layout {
  display: grid;
  width: min(1260px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(220px, 300px) minmax(420px, 1fr) minmax(280px, 360px);
  gap: clamp(16px, 2vw, 22px);
  align-items: start;
}

.kit-asset {
  align-self: start;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--line);
}

.kit-asset img {
  display: block;
  inline-size: 100%;
  width: 100%;
  block-size: auto !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.kit-asset.wide img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.kit-asset figcaption {
  border-top: 4px solid var(--line);
  padding: 10px 12px;
  font-size: 24px;
  text-transform: uppercase;
}

.copy-board {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 10px;
  grid-auto-rows: minmax(70px, auto);
}

.copy-board button {
  display: flex;
  min-height: 70px;
  align-items: center;
  border: 4px solid var(--line);
  border-radius: 16px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  padding: 12px 14px;
  box-shadow: 5px 5px 0 var(--line);
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: clamp(16px, 2.3vw, 24px);
  line-height: 1;
  text-align: left;
}

.copy-board button:nth-child(even) {
  background: var(--pool);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px);
  border-top: 6px solid var(--line);
  background: var(--navy);
  color: var(--white);
  font-family: "Arial Black", system-ui, sans-serif;
  text-transform: uppercase;
}

.site-footer span:first-child {
  color: var(--gold);
  font-size: 30px;
  text-shadow: 3px 3px 0 var(--line);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border: 4px solid var(--line);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  box-shadow: 5px 5px 0 var(--line);
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--pool);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    border-width: 3px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
    align-items: end;
    justify-items: start;
    padding: 96px 18px 42px;
  }

  .hero-bg {
    top: 0;
    right: auto;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.72;
    transform: translateX(-50%);
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 11, 22, 0.72) 0%, rgba(8, 11, 22, 0.48) 100%),
      linear-gradient(0deg, rgba(8, 11, 22, 0.94) 0%, rgba(8, 11, 22, 0.18) 62%);
  }

  .hero-content {
    width: min(720px, 100%);
    margin-top: 0;
  }

  .airdrop-section,
  .punch-section,
  .kit-layout {
    grid-template-columns: 1fr;
  }

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

  .story-step {
    min-height: 0;
  }

  .airdrop-section {
    min-height: auto;
  }

  .airdrop-stage {
    min-height: 420px;
  }

  .punch-section {
    width: min(100% - 32px, 720px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    justify-content: flex-start;
  }

  .copy-ticker {
    display: none;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 72px);
  }

  .hero-line {
    font-size: clamp(20px, 8vw, 35px);
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .receipt {
    right: 14px;
    width: 54%;
  }
}

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