:root {
  --gold: #ffcf33;
  --hot: #ff3d8b;
  --mint: #37e7b0;
  --ink: #160d21;
  --cream: #fff6db;
  --blue: #2b74ff;
  --shadow: 0 24px 80px rgba(22, 13, 33, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 61, 139, 0.28), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(55, 231, 176, 0.26), transparent 24rem),
    linear-gradient(135deg, #fff6db 0%, #ffe66d 42%, #ff91c8 100%);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(22, 13, 33, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(22, 13, 33, 0.12) 25%, transparent 25%);
  background-size: 18px 18px;
}

.emoji-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.falling {
  position: absolute;
  top: -3rem;
  font-size: clamp(1.4rem, 3vw, 3.4rem);
  animation: fall linear forwards;
  filter: drop-shadow(0 8px 8px rgba(22, 13, 33, 0.24));
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(var(--tilt, -1deg));
}

.nav a:nth-child(2) {
  --tilt: 1deg;
}

.nav a:nth-child(3) {
  --tilt: -2deg;
}

.hero {
  min-height: 100vh;
  padding: 0 clamp(1rem, 4vw, 4rem) 3rem;
}

.hero-grid {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.kicker,
.eyebrow,
.finale p {
  margin: 0 0 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  font-family: Bangers, Impact, sans-serif;
  font-weight: 400;
  line-height: 0.92;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4.4rem, 13vw, 11rem);
  text-shadow: 7px 7px 0 var(--hot), 14px 14px 0 var(--mint);
}

h2 {
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  text-shadow: 4px 4px 0 rgba(255, 61, 139, 0.55);
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

.subtitle {
  max-width: 43rem;
  margin: 2rem 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 800;
}

.actions,
.button-grid {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.button-grid button {
  min-height: 50px;
  padding: 0.9rem 1.1rem;
  border: 4px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.secondary-button,
.button-grid button {
  background: var(--mint);
}

.primary-button:hover,
.secondary-button:hover,
.button-grid button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.button-grid button:focus-visible {
  transform: translate(4px, 4px) rotate(-1deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.sticker-stage {
  position: relative;
  min-height: min(70vw, 38rem);
  display: grid;
  place-items: center;
}

.sunburst {
  position: absolute;
  width: min(88vw, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, #ffcf33 0 8deg, #fff6db 8deg 16deg);
  border: 6px solid var(--ink);
  box-shadow: var(--shadow);
  animation: spin 18s linear infinite;
}

.pet {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(9rem, 19vw, 16rem);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 22% 44% 28% 38%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 10px 10px 0 var(--ink);
  animation: wobble 2.7s ease-in-out infinite;
}

.pet .face {
  font-size: clamp(4.4rem, 11vw, 9rem);
  line-height: 1;
}

.pet .label {
  position: absolute;
  bottom: -1rem;
  padding: 0.35rem 0.55rem;
  border: 3px solid var(--ink);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}

.pet.golden {
  transform: rotate(-7deg);
}

.pet.black {
  right: 0;
  bottom: 8%;
  width: clamp(7rem, 14vw, 11rem);
  background: #d7f9ff;
  animation-delay: -0.7s;
}

.pet.orange {
  left: 0;
  top: 10%;
  width: clamp(7rem, 14vw, 11rem);
  background: #fff0c2;
  animation-delay: -1.2s;
}

.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4.5rem;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: white;
  font-size: 2rem;
  box-shadow: 5px 5px 0 var(--ink);
}

.orbit-one {
  top: 2rem;
  right: 17%;
}

.orbit-two {
  bottom: 1.5rem;
  left: 20%;
}

.orbit-three {
  top: 45%;
  left: 4%;
}

.marquee {
  overflow: hidden;
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.marquee div {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee span {
  padding: 1rem 1.25rem;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(1.7rem, 5vw, 4rem);
  white-space: nowrap;
}

.panel {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 7vw, 6rem) auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.reasons {
  display: grid;
  gap: 1rem;
}

.reasons article,
.pet-cards article,
.note {
  border: 5px solid var(--ink);
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: 8px 8px 0 var(--ink);
}

.reasons span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  margin-bottom: 0.6rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-weight: 900;
}

.reasons p,
.pet-cards p,
.note p {
  margin: 0.8rem 0 0;
  line-height: 1.55;
  font-weight: 700;
}

.chaos-lab {
  border: 5px solid var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(55, 231, 176, 0.36));
  box-shadow: var(--shadow);
}

.lab-copy {
  margin-bottom: 1.4rem;
}

.arena {
  position: relative;
  min-height: 18rem;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 5px dashed var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.64)),
    repeating-linear-gradient(45deg, var(--gold) 0 1.2rem, var(--hot) 1.2rem 2.4rem);
}

.arena p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2rem, 7vw, 5rem);
  opacity: 0.22;
}

.spawned {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--size, 4rem);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
  font-size: calc(var(--size, 4rem) * 0.58);
  box-shadow: 5px 5px 0 var(--ink);
  animation: pop 700ms ease both, bob 2s ease-in-out infinite;
}

.pet-council {
  display: grid;
  gap: 2rem;
}

.pet-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pet-cards article {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
}

.pet-cards article:nth-child(1) {
  background: #fff0b8;
  transform: rotate(-1deg);
}

.pet-cards article:nth-child(2) {
  background: #e8fff4;
  transform: rotate(1deg);
}

.pet-cards article:nth-child(3) {
  background: #e8edff;
  transform: rotate(-0.5deg);
}

.portrait {
  display: grid;
  place-items: center;
  width: 5rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: white;
  font-size: 2.8rem;
  box-shadow: 5px 5px 0 var(--ink);
}

.love-note {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.note {
  max-width: 760px;
  transform: rotate(-1deg);
  background: #fff;
}

.signature {
  display: inline-block;
  margin-top: 1.4rem !important;
  padding: 0.45rem 0.75rem;
  border-bottom: 4px solid var(--ink);
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--hot);
  text-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-2deg);
}

.sappy-dispatch {
  max-width: 900px;
  border: 5px solid var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(0.7deg);
}

.sappy-dispatch p:last-child {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  font-weight: 800;
}

.finale {
  min-height: 78vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  padding: 3rem 1rem;
  text-align: center;
  background:
    linear-gradient(rgba(255, 207, 51, 0.76), rgba(255, 207, 51, 0.76)),
    repeating-radial-gradient(circle, var(--ink) 0 0.25rem, transparent 0.25rem 1.4rem);
  border-top: 5px solid var(--ink);
}

.finale h2 {
  max-width: 900px;
}

body.maximum-chaos {
  animation: hue 3s linear infinite;
}

body.maximum-chaos .pet,
body.maximum-chaos .primary-button {
  animation-duration: 550ms;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes wobble {
  0%,
  100% {
    rotate: -4deg;
  }

  50% {
    rotate: 5deg;
  }
}

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

@keyframes fall {
  to {
    transform: translateY(calc(100vh + 4rem)) rotate(1turn);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0) rotate(-24deg);
  }
}

@keyframes bob {
  50% {
    translate: 0 -0.6rem;
  }
}

@keyframes hue {
  to {
    filter: hue-rotate(1turn);
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .split,
  .pet-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .sticker-stage {
    min-height: 28rem;
  }

  h1 {
    max-width: 8ch;
  }
}

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