:root {
  color-scheme: dark;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #020203;
  overscroll-behavior: none;
}

body {
  min-height: 100svh;
  overflow: hidden;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  touch-action: manipulation;
  user-select: none;
}

#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 40, 125, 0.045), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(70, 145, 255, 0.045), transparent 42%),
    #020203;
}

#loveCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(88vw, 620px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: hero-enter 1.15s cubic-bezier(.2,.85,.2,1) .25s forwards;
  filter: drop-shadow(0 0 24px rgba(255, 112, 198, .22));
}

.hero::before {
  content: "";
  position: absolute;
  inset: -44px -22px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .47), rgba(0, 0, 0, 0) 70%);
}

.hero.is-leaving {
  animation: hero-leave 1.35s ease forwards;
}

.hero__eyebrow,
.hero__title,
.hero__name,
.hero__hint {
  margin: 0;
}

.hero__eyebrow {
  margin-bottom: .8rem;
  font-size: clamp(.76rem, 2.7vw, .95rem);
  font-weight: 800;
  letter-spacing: .34em;
  color: rgba(255,255,255,.64);
}

.hero__title {
  font-size: clamp(2.25rem, 11vw, 5.7rem);
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.055em;
  color: #ff9ada;
  text-shadow:
    0 0 7px rgba(255, 125, 203, .95),
    0 0 20px rgba(255, 61, 161, .68),
    0 0 44px rgba(255, 24, 125, .42);
}

.hero__name {
  margin-top: 1rem;
  font-size: clamp(1.18rem, 5vw, 2rem);
  font-weight: 650;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 16px rgba(190, 235, 255, .52);
}

.hero__hint {
  margin-top: 1.65rem;
  font-size: clamp(.72rem, 2.7vw, .9rem);
  color: rgba(255,255,255,.42);
  letter-spacing: .03em;
}

.sound-toggle {
  position: absolute;
  z-index: 4;
  top: calc(14px + var(--safe-top));
  right: calc(14px + var(--safe-right));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(15,15,18,.5);
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes hero-enter {
  from { opacity: 0; transform: translate(-50%, -45%) scale(.94); filter: blur(8px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes hero-leave {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translate(-50%, -57%) scale(1.045); filter: blur(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero.is-leaving {
    animation-duration: .01ms;
  }
}
