
:root {
  --ink: #19142d;
  --paper: #fffaf2;
  --pink: #ff3d81;
  --orange: #ff7a00;
  --yellow: #ffd600;
  --green: #34d399;
  --blue: #18a0fb;
  --purple: #7557ff;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

button, a { font: inherit; }

.playground {
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  background:
    linear-gradient(rgba(25, 20, 45, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 20, 45, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  cursor: crosshair;
}

.playground::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92) 0 18%, transparent 52%);
}

.pointer-glow {
  position: fixed;
  z-index: -1;
  width: 330px;
  height: 330px;
  left: var(--pointer-x);
  top: var(--pointer-y);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.22), rgba(255, 61, 129, 0.08) 46%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nav {
  z-index: 2;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 42% 58%;
  background: var(--pink);
  box-shadow: 7px -4px 0 -2px var(--yellow), -5px 5px 0 -2px var(--blue);
  transform: rotate(18deg);
}

.nav-note {
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero {
  z-index: 2;
  display: flex;
  width: min(100%, 980px);
  margin: auto;
  padding: clamp(4.5rem, 9vh, 8rem) 0 clamp(5rem, 10vh, 7rem);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 0.65rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.eyebrow-star { color: var(--pink); font-size: 1.1rem; }

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.5rem, 10.5vw, 8.8rem);
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.headline-pop { display: block; margin-top: 0.17em; }

.rainbow-word {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--pink) 0 18%, var(--orange) 18% 34%, var(--yellow) 34% 48%, var(--green) 48% 63%, var(--blue) 63% 80%, var(--purple) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(3px 4px 0 rgba(25, 20, 45, 0.12));
}

.intro {
  max-width: 570px;
  margin: 2rem auto 1.7rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
}

.pop-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pop-button:hover {
  box-shadow: 3px 3px 0 var(--yellow), 7px 7px 0 var(--pink);
  transform: translate(-2px, -2px) rotate(-1deg);
}

.pop-button:active {
  box-shadow: 2px 2px 0 var(--pink);
  transform: translate(4px, 4px);
}

.pop-button:focus-visible { outline: 4px solid var(--blue); outline-offset: 5px; }

.button-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 1.1rem;
}

.click-hint {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  color: rgba(25, 20, 45, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mouse-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 12px;
}

.mouse-icon span {
  position: absolute;
  width: 2px;
  height: 5px;
  top: 4px;
  left: 6px;
  border-radius: 2px;
  background: currentColor;
  animation: mouse-scroll 1.3s ease-in-out infinite;
}

.color-orb {
  position: absolute;
  z-index: -1;
  border: 2px solid var(--ink);
  pointer-events: none;
}

.orb-pink {
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  left: -5vw;
  top: 22%;
  border-radius: 43% 57% 70% 30% / 46% 32% 68% 54%;
  background: var(--pink);
  opacity: 0.95;
  animation: drift-one 8s ease-in-out infinite alternate;
}

.orb-yellow {
  width: clamp(110px, 14vw, 210px);
  height: clamp(110px, 14vw, 210px);
  right: 2vw;
  top: 17%;
  border-radius: 50%;
  background: var(--yellow);
  animation: drift-two 7s ease-in-out infinite alternate;
}

.orb-blue {
  width: clamp(120px, 16vw, 240px);
  height: clamp(120px, 16vw, 240px);
  right: -4vw;
  bottom: 1%;
  border-radius: 32% 68% 43% 57% / 65% 32% 68% 35%;
  background: var(--blue);
  animation: drift-one 9s ease-in-out -2s infinite alternate-reverse;
}

.floater {
  position: absolute;
  z-index: 1;
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 0.55rem;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 950;
  pointer-events: none;
}

.floater-one {
  left: 12%;
  top: 24%;
  background: var(--green);
  transform: rotate(-11deg);
}

.floater-two {
  right: 16%;
  top: 60%;
  color: white;
  background: var(--purple);
  transform: rotate(10deg);
}

.floater-three {
  left: 17%;
  bottom: 15%;
  background: var(--yellow);
  transform: rotate(8deg);
}

.squiggle,
.spark {
  position: absolute;
  z-index: 1;
  font-weight: 900;
  pointer-events: none;
}

.squiggle {
  top: 15%;
  left: 25%;
  color: var(--blue);
  font-size: 2.2rem;
  letter-spacing: -0.35em;
  transform: rotate(-18deg);
}

.spark-one {
  right: 27%;
  top: 19%;
  color: var(--pink);
  font-size: 2.4rem;
  animation: twinkle 2s ease-in-out infinite;
}

.spark-two {
  left: 26%;
  bottom: 16%;
  color: var(--orange);
  font-size: 2rem;
  animation: twinkle 2.4s ease-in-out -0.7s infinite;
}

.burst-layer {
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.burst-piece {
  position: absolute;
  display: block;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--burst-color);
  box-shadow: 2px 2px 0 rgba(25, 20, 45, 0.2);
  transform: translate(-50%, -50%);
  animation: burst-out 850ms cubic-bezier(0.16, 0.75, 0.25, 1) forwards;
}

.burst-ring {
  border: 3px solid var(--burst-color);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

footer {
  z-index: 2;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes burst-out {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.25) rotate(0); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1) rotate(var(--burst-rotate)); }
}

@keyframes drift-one {
  to { transform: translate(20px, -18px) rotate(7deg); }
}

@keyframes drift-two {
  to { transform: translate(-22px, 18px) scale(1.05); }
}

@keyframes twinkle {
  50% { transform: rotate(20deg) scale(1.28); }
}

@keyframes mouse-scroll {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

@media (max-width: 700px) {
  .nav-note { display: none; }
  .playground { min-height: 100svh; }
  .hero { padding-top: 5.5rem; }
  .floater-one { left: 5%; top: 21%; }
  .floater-two { right: 5%; top: 67%; }
  .floater-three { left: 7%; bottom: 12%; }
  .squiggle { left: 73%; top: 25%; }
  .spark-one { right: 10%; top: 18%; }
  .spark-two { left: 8%; bottom: 22%; }

  footer {
    gap: 0.75rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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