:root {
  color-scheme: light;
  --pink: #ff9fe5;
  --pink-soft: #ffd1f3;
  --purple: #c6b2ff;
  --violet: #b48cff;
  --glow: rgba(255, 159, 229, 0.65);
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.36);
  --ink: #2a0d3f;
  --white: #fff7ff;
  --radius: 20px;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-title: "filmotype-lacrosse", "Outfit", sans-serif;
  --pulse-duration: 2.4s;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: #f9f2ff;
  color: var(--ink);
  line-height: 1.4;
  overflow-x: hidden;
  text-transform: lowercase;
}

.background {
  position: fixed;
  inset: -10% -10% -10% -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 159, 229, 0.95), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(198, 178, 255, 0.9), transparent 58%),
    radial-gradient(circle at 20% 80%, rgba(255, 209, 243, 0.85), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(180, 140, 255, 0.85), transparent 60%),
    #f9f2ff;
  filter: blur(8px);
  animation: hue-shift 14s ease-in-out infinite alternate,
    float 10s ease-in-out infinite;
  z-index: -2;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
}


.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  opacity: var(--opacity);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
  animation: sparkle-twinkle 1.6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 60px 20px 48px;
  text-align: center;
  transform: translateY(-20px);
}

.title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.push-button {
  border: none;
  background: transparent;
  display: grid;
  gap: 8px;
  place-items: center;
  cursor: pointer;
  margin-top: -20px;
}

.push-button:focus-visible {
  outline: 3px solid rgba(180, 140, 255, 0.45);
  outline-offset: 6px;
  border-radius: 999px;
}

.neon-heart {
  width: 120px;
  height: 110px;
  display: grid;
  place-items: center;
  position: relative;
}

.neon-heart svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--pink);
  stroke-width: 3.6;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 22px var(--glow));
  animation: pulse var(--pulse-duration) ease-in-out infinite;
}

.push-text {
  position: absolute;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: #fff;
  animation: pulse var(--pulse-duration) ease-in-out infinite;
  transform-origin: center;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(255, 255, 255, 0.7),
    0 0 24px rgba(255, 159, 229, 0.8);
}

.roulette {
  width: min(420px, 90vw);
}

.roulette-widget {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--glass-strong), var(--glass));
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px rgba(118, 88, 168, 0.25);
  display: grid;
  gap: 8px;
  color: var(--white);
  text-align: center;
  touch-action: manipulation;
}

.roulette-result {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: lowercase;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-result.burst {
  animation: sparkle-burst 0.9s ease-out;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(255, 255, 255, 0.8),
    0 0 26px rgba(180, 140, 255, 0.7);
  margin-top: 10px;
}

.home-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 22px rgba(180, 140, 255, 0.7));
}

.footer {
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(42, 13, 63, 0.6);
}

.footer span {
  display: block;
}

@keyframes sparkle-burst {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  40% {
    transform: scale(1.06);
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.9),
      0 0 24px rgba(255, 182, 255, 0.6),
      0 0 36px rgba(180, 140, 255, 0.5);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes hue-shift {
  0% {
    filter: blur(8px) hue-rotate(0deg);
  }
  50% {
    filter: blur(8px) hue-rotate(18deg);
  }
  100% {
    filter: blur(8px) hue-rotate(-12deg);
  }
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2%, 1.5%, 0);
  }
  100% {
    transform: translate3d(2%, -1.5%, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (min-width: 720px) {
  .page {
    gap: 36px;
  }

  .roulette-result {
    font-size: 1.15rem;
  }
}


@media (max-width: 600px) {
  .roulette {
    display: flex;
    justify-content: center;
  }

  .roulette-widget {
    transform: scale(0.96);
    transform-origin: center;
    width: min(360px, 90vw);
    padding: 10px 12px;
  }
}


@keyframes sparkle-float {
  0% {
    transform: translate(0, 0) scale(0.9);
  }
  50% {
    transform: translate(12px, -14px) scale(1.15);
  }
  100% {
    transform: translate(0, 0) scale(0.9);
  }
}


@keyframes sparkle-twinkle {
  0%,
  100% {
    opacity: calc(var(--opacity) * 0.4);
    transform: scale(0.85);
  }
  50% {
    opacity: var(--opacity);
    transform: scale(1.15);
  }
}
