:root {
  color-scheme: light;
  --acid: #d5ff00;
  --panic: #ff2fb3;
  --bruise: #201047;
  --warning: #ff7a00;
  --sea: #00d8c8;
  --paper: #fffef1;
  --ink: #140b12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 360px;
  color: var(--ink);
  font-family: "Comic Sans MS", "Papyrus", fantasy;
  background:
    repeating-linear-gradient(35deg, rgba(255, 47, 179, 0.2) 0 14px, transparent 14px 29px),
    radial-gradient(circle at 12% 18%, #00d8c8 0 8%, transparent 9%),
    radial-gradient(circle at 82% 24%, #d5ff00 0 9%, transparent 10%),
    linear-gradient(91deg, #fffef1, #ffcfec 34%, #b8fff8 67%, #fff0a7);
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 43px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(14px, 3vw, 32px);
  color: #000;
  background: rgba(255, 254, 241, 0.9);
  border-bottom: 5px solid #000;
  box-shadow: 0 7px 0 var(--panic);
}

.site-header a {
  color: #000;
  text-decoration: none;
}

.brand-link {
  font-weight: 900;
  text-transform: uppercase;
}

.site-header nav a {
  display: inline-block;
  padding: 8px 10px;
  background: var(--acid);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 var(--sea);
  transform: rotate(-2deg);
}

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

button,
a {
  cursor: help;
}

.marquee {
  position: fixed;
  z-index: 15;
  left: 0;
  width: 100%;
  padding: 8px 0;
  color: #fff;
  background: #000;
  border-block: 5px dashed var(--acid);
  overflow: hidden;
}

.top-scroll {
  top: 0;
}

.marquee span {
  display: block;
  width: max-content;
  padding-left: 100%;
  animation: crawl 18s linear infinite;
  white-space: nowrap;
}

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

.sticky-ransom {
  position: fixed;
  z-index: 50;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 8vw, 110px);
  color: #050005;
  text-align: center;
  background:
    repeating-conic-gradient(from 0deg, rgba(0, 0, 0, 0.22) 0 8deg, transparent 8deg 16deg),
    repeating-linear-gradient(-12deg, var(--acid) 0 24px, var(--panic) 24px 48px, var(--sea) 48px 72px);
  border: 22px ridge #000;
  box-shadow: inset 0 0 0 18px #fff, inset 0 0 0 36px #000;
  overflow: hidden;
}

.sticky-ransom.is-hidden {
  display: none;
}

.popup-static {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 0.8;
  text-transform: uppercase;
  transform: rotate(-14deg);
  animation: staticScream 1.4s steps(2, end) infinite;
}

@keyframes staticScream {
  50% {
    transform: rotate(14deg) scale(1.08);
    opacity: 0.42;
  }
}

.popup-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 88vw);
  padding: clamp(22px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(213, 255, 0, 0.92)),
    #fff;
  border: 12px double #000;
  box-shadow: 18px 18px 0 var(--panic), -18px -18px 0 var(--sea);
  animation: popupPulse 2.2s ease-in-out infinite alternate;
}

@keyframes popupPulse {
  to {
    transform: scale(1.025) rotate(-0.7deg);
  }
}

.popup-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #fff;
  background: #000;
  border: 4px solid var(--panic);
  text-transform: uppercase;
  transform: rotate(3deg);
}

.sticky-ransom strong {
  display: block;
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(2.3rem, 8vw, 7.6rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 #fff, 10px 10px 0 var(--panic);
  transform: rotate(-2deg);
}

.sticky-ransom p {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.15;
}

.popup-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin: 22px auto 12px;
  max-width: 820px;
}

.sticky-ransom input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 8px dotted #000;
  background: #fff;
}

.sticky-ransom button:not(.tiny-close) {
  width: auto;
  padding: 18px;
  background: var(--panic);
  color: #fff;
  border: 7px solid #000;
  box-shadow: 9px 9px 0 #fff;
}

.tiny-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 5px solid #000;
  background: #fff;
  box-shadow: 6px 6px 0 var(--panic);
  transition: top 90ms linear, left 90ms linear, right 90ms linear, transform 90ms linear;
}

.tiny-close.is-fleeing {
  transform: rotate(720deg) scale(0.82);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 180px clamp(18px, 6vw, 78px) 80px;
  color: #fff;
  background:
    linear-gradient(rgba(32, 16, 71, 0.76), rgba(32, 16, 71, 0.3)),
    conic-gradient(from 130deg, var(--bruise), #ff2fb3, #ff7a00, #00d8c8, var(--bruise));
  clip-path: polygon(0 0, 100% 0, 97% 89%, 53% 100%, 0 91%);
  isolation: isolate;
}

.popup-page {
  min-height: 100vh;
}

.popup-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 160px 24px 48px;
  text-align: center;
}

.popup-stage p {
  max-width: 620px;
  padding: 22px;
  background: #fff;
  border: 6px dashed #000;
  box-shadow: 10px 10px 0 var(--warning);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-noise span {
  position: absolute;
  display: block;
  width: 130px;
  aspect-ratio: 1;
  border: 11px dashed rgba(255, 255, 255, 0.45);
  animation: wobble 4s ease-in-out infinite alternate;
}

.hero-noise span:nth-child(1) { left: 6%; top: 18%; }
.hero-noise span:nth-child(2) { left: 78%; top: 13%; animation-delay: -1s; }
.hero-noise span:nth-child(3) { left: 51%; top: 58%; animation-delay: -2s; }
.hero-noise span:nth-child(4) { left: 18%; top: 72%; animation-delay: -3s; }
.hero-noise span:nth-child(5) { left: 86%; top: 67%; animation-delay: -1.5s; }

@keyframes wobble {
  to {
    transform: translate(30px, -18px) rotate(75deg) scale(1.25);
  }
}

.eyebrow {
  display: inline-block;
  padding: 9px 14px;
  color: #000;
  background: var(--acid);
  border: 4px solid #fff;
  transform: rotate(-4deg);
}

h1 {
  max-width: 950px;
  margin: 18px 0;
  font-size: clamp(3rem, 10vw, 8.8rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 #000, 12px 12px 0 var(--panic);
}

.hero-copy {
  max-width: 560px;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  line-height: 1.2;
}

.fake-cta {
  display: inline-block;
  margin: 12px 14px 0 0;
  padding: 15px 20px;
  color: #000;
  background: var(--acid);
  border: 5px ridge #fff;
  box-shadow: 8px 8px 0 #000;
  text-decoration: none;
  transform: skew(-9deg);
}

.fake-cta.secondary {
  background: var(--sea);
}

.credibility-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 22px;
  background: #000;
  color: var(--acid);
  text-transform: uppercase;
}

.credibility-band div {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 3px dotted currentColor;
  text-align: center;
}

.obstacle-course {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(340px, 1fr);
  gap: clamp(18px, 4vw, 54px);
  padding: clamp(24px, 5vw, 72px);
}

.copy-pit {
  position: sticky;
  top: 75px;
  align-self: start;
  padding: 26px;
  background: #fff;
  border: 8px groove var(--warning);
  transform: rotate(-1.5deg);
}

.copy-pit h2,
.fine-print h2 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.9;
}

#secretPhrase {
  padding: 2px 5px;
  color: #fff;
  background: #000;
}

.hell-form {
  position: relative;
  padding: 22px;
  width: min(1180px, 100%);
  color: #1f0020;
  background:
    repeating-radial-gradient(circle at center, #fff 0 8px, #ffe238 9px 14px),
    #fff;
  border: 10px outset var(--panic);
  box-shadow: -18px 16px 0 var(--sea), 18px -14px 0 var(--acid);
  animation: formBreath 8s ease-in-out infinite;
}

@keyframes formBreath {
  50% {
    transform: translateX(-14px) rotate(0.6deg);
  }
}

.progress-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  margin-bottom: 16px;
  background: #000;
  color: #fff;
}

.progress-track {
  height: 20px;
  overflow: hidden;
  border: 2px solid #fff;
  background: #333;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--panic), var(--acid), var(--sea));
  transition: width 220ms ease;
}

fieldset {
  margin: 0 0 18px;
  padding: 18px;
  border: 5px dashed #000;
  background: rgba(255, 255, 255, 0.78);
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px 11px;
  align-items: end;
}

.ultra-grid {
  grid-template-columns: repeat(4, minmax(126px, 1fr));
}

.diagonal-fieldset {
  transform: skewY(-1deg);
}

legend {
  padding: 5px 10px;
  background: var(--panic);
  color: #fff;
  border: 3px solid #000;
  transform: rotate(2deg);
}

label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.08;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 4px solid #000;
  border-radius: 0;
  background: #fffef1;
}

input:focus,
textarea:focus,
select:focus {
  outline: 7px dotted var(--panic);
  outline-offset: 3px;
  transform: rotate(-1deg) scale(1.01);
}

.spin-zone {
  animation: spinThreat 11s linear infinite;
}

@keyframes spinThreat {
  0%, 90%, 100% { transform: rotate(0deg); }
  94% { transform: rotate(1.7deg); }
  97% { transform: rotate(-1.1deg); }
}

.range-label input {
  accent-color: var(--panic);
}

.range-label output {
  padding: 6px;
  background: #000;
  color: var(--acid);
}

.checkbox-maze label {
  grid-template-columns: 32px 1fr;
  align-items: start;
}

.checkbox-maze input {
  width: 24px;
  height: 24px;
}

.submit-gauntlet {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #1d1028;
  border: 6px dotted var(--acid);
}

.submit-gauntlet button {
  min-height: 52px;
  max-width: 280px;
  padding: 12px 18px;
  border: 5px solid #000;
  color: #000;
  background: var(--acid);
  box-shadow: 6px 6px 0 var(--panic);
}

#realSubmit {
  position: absolute;
  left: 42%;
  top: 48px;
  background: var(--sea);
  transition: transform 120ms ease, left 150ms ease, top 150ms ease;
}

#decoySubmit {
  background: #fff;
}

#panicButton {
  background: var(--warning);
}

.error-box {
  min-height: 84px;
  padding: 16px;
  background: #000;
  color: var(--acid);
  border: 5px solid var(--panic);
  font-size: 1.05rem;
}

.fine-print {
  padding: clamp(24px, 6vw, 80px);
  background: #10060d;
  color: #fff;
}

.fine-print p {
  max-width: 900px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--acid);
  border-top: 9px double #000;
  text-align: center;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
  padding: 12px 16px;
  color: #000;
  background: #fff;
  border: 5px dashed var(--panic);
  box-shadow: 8px 8px 0 var(--sea);
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(1deg);
}

.site-footer img {
  width: 110px;
  max-width: 34vw;
  height: auto;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 18px;
  max-width: min(640px, calc(100vw - 28px));
  padding: 14px 18px;
  color: #fff;
  background: #000;
  border: 4px solid var(--acid);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.form-success {
  animation: victoryPunishment 900ms linear infinite;
}

@keyframes victoryPunishment {
  25% { filter: hue-rotate(90deg); }
  50% { filter: invert(1); }
  75% { filter: saturate(4); }
}

@media (max-width: 880px) {
  .credibility-band,
  .obstacle-course {
    grid-template-columns: 1fr;
  }

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

  .copy-pit {
    position: static;
  }

  .sticky-ransom {
    padding: 84px 18px 36px;
  }

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

  h1 {
    font-size: clamp(2.6rem, 16vw, 5.2rem);
  }

  .hero {
    min-height: 96vh;
    padding-top: 180px;
  }

  .site-footer a {
    flex-direction: column;
  }

  #realSubmit {
    left: 18px;
    top: 82px;
  }
}

@media (max-width: 560px) {
  .micro-grid,
  .ultra-grid {
    grid-template-columns: 1fr;
  }
}
