:root {
  --bg: #050505;
  --text: #f5f5f5;
  --accent: #ffd739;
  --accent-2: #ff7a00;
  --accent-3: #14e2d1;
  --accent-4: #ff3d81;
  --muted: #bdbdbd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 122, 0, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 57, 0.15), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Urbanist", sans-serif;
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.site-wrap {
  width: min(980px, 100%);
  min-height: 100svh;
  padding: clamp(1.2rem, 4vw, 3.4rem);
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.35;
  z-index: -2;
  pointer-events: none;
}

.stripe {
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 38px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--accent) 0 26px,
      #0f0f0f 26px 52px
    );
  border-block: 2px solid rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.stripe-top {
  top: 0;
}

.stripe-bottom {
  bottom: 0;
}

.hero {
  min-height: calc(100svh - 2 * clamp(1.2rem, 4vw, 3.4rem));
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 1rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 2.4vw, 0.95rem);
  font-weight: 800;
}

.logo-shell {
  width: clamp(170px, 33vw, 290px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, var(--accent), var(--accent-2), var(--accent), var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.45),
    0 0 0 7px rgba(255, 255, 255, 0.04);
  animation: spin 28s linear infinite;
}

.logo {
  width: 100%;
  border-radius: 50%;
  background: #050505;
  padding: 12px;
}

h1 {
  margin: 0.15rem 0 0;
  font-family: "Bungee", sans-serif;
  font-size: clamp(1.7rem, 6vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
}

.chips {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  animation: chip-beat 2.2s ease-in-out infinite;
}

.chip:nth-child(2) {
  animation-delay: 0.25s;
}

.chip:nth-child(3) {
  animation-delay: 0.5s;
}

.fun-box {
  margin-top: 0.5rem;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.noise-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.45rem;
  font-family: "Bungee", sans-serif;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  color: #111;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.35);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.noise-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 28px rgba(255, 122, 0, 0.42);
}

.noise-btn:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 2px;
}

.noise-btn.pressed {
  transform: scale(0.95);
}

.fun-text {
  margin: 0;
  min-height: 1.3rem;
  color: #e8e8e8;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
}

.noise-counter {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin-top: 0.05rem;
}

.counter-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbcbcb;
  font-weight: 700;
}

.counter-value {
  font-family: "Bungee", sans-serif;
  font-size: clamp(1.2rem, 4.5vw, 2rem);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 215, 57, 0.35);
}

.counter-status {
  min-height: 1rem;
  font-size: 0.8rem;
  color: #9fd8ca;
}

.counter-status.error {
  color: #ff9eb8;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  text-decoration: none;
  color: #082214;
  background: linear-gradient(120deg, #31d366, #25d366);
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wa-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 30px rgba(37, 211, 102, 0.37);
}

.wa-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.ticker {
  margin: 0.3rem 0 0;
  width: min(700px, 95%);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  padding: 0.35rem 0.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.ticker span {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  color: var(--accent-3);
  font-weight: 700;
  letter-spacing: 0.09em;
  animation: ticker-move 10s linear infinite;
}

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.65;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
  animation: floaty 7s ease-in-out infinite;
}

.shape-a,
.shape-b,
.shape-c {
  border-radius: 50%;
}

.shape-a {
  width: 12px;
  height: 12px;
  top: 14%;
  left: 8%;
  background: var(--accent-3);
}

.shape-b {
  width: 8px;
  height: 8px;
  top: 30%;
  right: 10%;
  background: var(--accent);
  animation-delay: 0.6s;
}

.shape-c {
  width: 13px;
  height: 13px;
  bottom: 19%;
  left: 12%;
  background: var(--accent-4);
  animation-delay: 1.1s;
}

.shape-d {
  width: 0;
  height: 0;
  top: 22%;
  right: 21%;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 14px solid var(--accent-2);
  animation-delay: 0.8s;
}

.shape-e {
  width: 0;
  height: 0;
  bottom: 28%;
  right: 9%;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid var(--accent-3);
  animation-delay: 1.4s;
}

.shape-f {
  width: 12px;
  height: 12px;
  top: 8%;
  left: 42%;
  background: var(--accent);
  transform: rotate(45deg);
  animation-delay: 1.8s;
}

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

.confetti-piece {
  position: absolute;
  top: -12vh;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(0) rotate(0deg);
  animation: confetti-pop var(--duration, 1200ms) ease-out var(--delay, 0ms) forwards;
}

.party .logo-shell {
  animation: spin 1.4s linear infinite, logo-bounce 420ms ease-in-out 2;
}

.party .stripe {
  filter: saturate(1.35) brightness(1.08);
}

.party .noise {
  opacity: 0.5;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 0px), var(--fall, 120vh)) rotate(var(--spin, 500deg));
  }
}

@keyframes logo-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.98);
  }
}

@keyframes chip-beat {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.25);
  }
  50% {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 57, 0.6);
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 0.8rem;
  }

  .lead {
    font-size: 0.97rem;
  }

  .stripe {
    height: 30px;
  }

  .ticker {
    width: 100%;
  }
}

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