:root {
  --pink: #ff5fc8;
  --hot: #ff2d95;
  --lilac: #b98cff;
  --sky: #6fe3ff;
  --mint: #7dffc4;
  --gold: #ffd76a;
  --night: #1a0633;
  --deep: #2a0a4a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- background ---------- */
.aurora {
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(50% 40% at 25% 25%, rgba(255, 95, 200, .16), transparent 70%),
    radial-gradient(50% 45% at 75% 75%, rgba(185, 140, 255, .16), transparent 70%),
    linear-gradient(170deg, #22093d, #170630 55%, #1f0835);
  filter: blur(30px);
  animation: drift 30s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  0%   { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(6deg) scale(1.05); }
}

#sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vh, 22px);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.gem-row {
  display: flex;
  gap: 14px;
  font-size: 22px;
}
.gem-row span {
  display: inline-block;
  animation: bob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .7));
}
.gem-row span:nth-child(2) { animation-delay: .2s; }
.gem-row span:nth-child(3) { animation-delay: .4s; }
.gem-row span:nth-child(4) { animation-delay: .6s; }
.gem-row span:nth-child(5) { animation-delay: .8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-8px) rotate(6deg); }
}

/* ---------- headline ---------- */
.yo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .9;
  font-weight: 900;
  letter-spacing: .02em;
}
.word { display: flex; gap: .02em; }
.yo-word  { font-size: clamp(56px, 17vw, 120px); }
.luke-word { font-size: clamp(76px, 25vw, 180px); }

.yo .word span {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--mint), var(--sky), var(--lilac), var(--pink));
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, .8))
    drop-shadow(0 0 18px rgba(255, 95, 200, .8))
    drop-shadow(0 4px 0 #7a1a8a);
  animation:
    shimmer 4s linear infinite,
    wave 1.8s ease-in-out infinite;
  animation-delay: 0s, calc(var(--i) * .12s);
}
@keyframes shimmer {
  to { background-position: 400% 0; }
}
@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(-3deg); }
}

/* ---------- unicorn ---------- */
.unicorn-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
}
.halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--gold), var(--mint), var(--sky), var(--lilac), var(--pink));
  animation: spin 5s linear infinite;
  filter: blur(2px);
  mask: radial-gradient(circle, transparent 58%, #000 60%, #000 68%, transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 68%, transparent 70%);
}
.halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  filter: blur(18px);
  opacity: .8;
}
@keyframes spin { to { transform: rotate(360deg); } }

.unicorn {
  position: relative;
  font-size: 104px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .6)) drop-shadow(0 10px 20px rgba(255, 45, 149, .5));
  animation: prance 2.2s ease-in-out infinite;
  transition: transform .15s;
}
.unicorn:active { transform: scale(.9); }
.unicorn.boop { animation: boop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes prance {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}
@keyframes boop {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.35) rotate(-14deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ---------- text bits ---------- */
.tagline {
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}
#compliment {
  display: inline-block;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 215, 106, .8);
  transition: opacity .25s, transform .25s;
}
#compliment.swap { opacity: 0; transform: translateY(6px) scale(.9); }

.counter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.counter::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--mint), var(--sky), var(--lilac), var(--pink));
  background-size: 300% 100%;
  animation: shimmer 3s linear infinite;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}
.counter-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .75);
}
.counter-num {
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 10px var(--pink);
}
.counter-num.pop { animation: pop .3s ease-out; }
@keyframes pop {
  50% { transform: scale(1.4); color: var(--gold); }
}

.hint {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}

/* ---------- floaters ---------- */
.floater {
  position: absolute;
  bottom: -60px;
  font-size: 30px;
  will-change: transform, opacity;
  animation: rise linear forwards;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6));
}
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(var(--dx), -115vh) rotate(var(--rot)); opacity: 0; }
}

.burst {
  position: absolute;
  font-size: 22px;
  pointer-events: none;
  animation: burst .9s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1.1) rotate(var(--rot)); opacity: 0; }
}

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