@font-face {
  font-family: "Hiragino Kaku W9";
  src: url("fonts/hiragino-kaku-w9.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  background: #8200ec;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #8200ec;
  overflow: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: auto;
  z-index: 0;
  width: min(54vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  pointer-events: none;
  content: "";
  opacity: 0;
  filter: blur(2px);
  animation: glow-in 1200ms ease-out forwards, float-glow 8s ease-in-out 1200ms infinite;
}

body::before {
  top: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 66%);
}

body::after {
  right: -14%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(255, 212, 244, 0.2), rgba(255, 255, 255, 0) 68%);
  animation-delay: 250ms, 1450ms;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 7vw, 56px) 20px;
  text-align: center;
}

.sticker {
  width: clamp(170px, 34vw, 250px);
  aspect-ratio: 1;
  margin-bottom: clamp(16px, 3vw, 24px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.68) rotate(-8deg);
  animation: sticker-pop 1400ms cubic-bezier(0.16, 1.18, 0.34, 1) 120ms forwards,
    sticker-float 5.4s ease-in-out 1700ms infinite;
  will-change: transform, opacity;
}

.sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

h1 {
  margin: 0;
  font-family: "Hiragino Kaku W9", "Arial Black", "Avenir Next", sans-serif;
  font-size: clamp(64px, 12vw, 132px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.title {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  perspective: 900px;
}

.title-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(44px) rotateX(70deg) scale(0.84);
  transform-origin: 50% 80%;
  animation: letter-rise 1100ms cubic-bezier(0.18, 1.18, 0.32, 1) forwards,
    letter-pulse 4.6s ease-in-out infinite;
  animation-delay: calc(740ms + var(--letter-index) * 130ms);
  will-change: transform, opacity;
}

p {
  max-width: 760px;
  margin: clamp(18px, 3vw, 24px) 0 clamp(34px, 5vw, 46px);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
/*  font-style: italic;*/
/*  font-weight: 700;*/
  letter-spacing: 0;
}

.tagline {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-slide-up 980ms ease-out 1700ms forwards;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: #ffffff;
  color: #8200ec;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  animation: button-arrive 1050ms cubic-bezier(0.16, 1.18, 0.34, 1) 2200ms forwards;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::after {
  position: absolute;
  top: -35%;
  left: -45%;
  width: 36%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(130, 0, 236, 0.22), transparent);
  content: "";
  transform: rotate(24deg) translateX(-150%);
  animation: button-shine 3.7s ease-in-out 3600ms infinite;
}

.button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(36, 0, 68, 0.22);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 5px;
}

@keyframes glow-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -12px, 0) scale(1.08);
  }
}

@keyframes sticker-pop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.68) rotate(-8deg);
  }

  62% {
    opacity: 1;
    transform: translateY(-10px) scale(1.08) rotate(3deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes sticker-float {
  0%,
  100% {
    transform: translateY(0) rotate(0) scale(1);
  }

  50% {
    transform: translateY(-10px) rotate(1.5deg) scale(1.02);
  }
}

@keyframes letter-rise {
  0% {
    opacity: 0;
    transform: translateY(44px) rotateX(70deg) scale(0.84);
  }

  70% {
    opacity: 1;
    transform: translateY(-8px) rotateX(-8deg) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes letter-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  48%,
  54% {
    text-shadow: 0 8px 32px rgba(255, 255, 255, 0.28);
  }
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-arrive {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes button-shine {
  0%,
  42%,
  100% {
    transform: rotate(24deg) translateX(-170%);
  }

  62% {
    transform: rotate(24deg) translateX(430%);
  }
}

@media (max-width: 420px) {
  .page {
    justify-content: center;
    padding: 30px 24px 36px;
  }

  .sticker {
    width: min(74vw, 292px);
    margin-bottom: 20px;
    animation-duration: 1600ms, 5.8s;
    animation-delay: 120ms, 1900ms;
  }

  h1 {
    font-size: clamp(56px, 15.8vw, 76px);
  }

  .title-letter {
    animation-duration: 1250ms, 4.8s;
    animation-delay: calc(900ms + var(--letter-index) * 150ms);
  }

  p {
    max-width: 330px;
    margin: 18px 0 36px;
    font-size: clamp(21px, 5.6vw, 25px);
    line-height: 1.22;
  }

  .button {
    width: min(100%, 300px);
    min-height: 62px;
    padding-inline: 24px;
    font-size: 19px;
    animation-delay: 2500ms;
  }

  .tagline {
    animation-delay: 1950ms;
  }
}

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

@media (max-width: 360px) {
  .sticker {
    width: min(72vw, 250px);
  }

  h1 {
    font-size: clamp(52px, 15vw, 64px);
  }

  p {
    font-size: 20px;
  }
}
