:root {
  --bg: #000000;
  --ice: #eef4ff;
  --blue: #4ea2ff;
  --blue-hot: #7ec8ff;
  --pink: #ff3d9a;
  --pink-hot: #ff6ad5;
  --page-w: 400px;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ice);
}

body {
  font-family: Outfit, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-align: center;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.orb-blue {
  width: 420px;
  height: 420px;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(70, 140, 255, 0.55), transparent 68%);
}

.orb-pink {
  width: 280px;
  height: 280px;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 40, 140, 0.28), transparent 70%);
}

.orb-core {
  width: 220px;
  height: 320px;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(160, 200, 255, 0.18), transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-w));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px
    max(36px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  animation: rise 0.85s ease both;
}

.portrait-block {
  position: relative;
  width: min(88vw, 328px);
  margin-inline: auto;
}

.portrait-wrap {
  width: 100%;
  -webkit-mask-image: linear-gradient(#000 68%, transparent 100%);
  mask-image: linear-gradient(#000 68%, transparent 100%);
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.12;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(170, 210, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 80, 160, 0.25),
    0 0 18px rgba(90, 170, 255, 0.55),
    0 0 48px rgba(70, 130, 255, 0.35),
    0 0 90px rgba(255, 40, 140, 0.18);
  animation: aura 3.6s ease-in-out infinite;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  transform: scale(1.05);
}

.spark {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow:
    0 0 8px #9ad0ff,
    0 0 16px rgba(255, 90, 170, 0.7);
  animation: twinkle 2.4s ease-in-out infinite;
}

.spark::before {
  content: "";
  position: absolute;
  inset: 2px -5px;
  background: inherit;
  box-shadow: inherit;
}

.spark::after {
  content: "";
  position: absolute;
  inset: -5px 2px;
  background: inherit;
  box-shadow: inherit;
}

.s1 { top: 10%; left: 4%; animation-delay: 0s; }
.s2 { top: 10%; right: 4%; width: 6px; height: 6px; animation-delay: 0.6s; }
.s3 { top: 36%; right: -2%; animation-delay: 1.1s; }
.s4 { top: 36%; left: -2%; width: 5px; height: 5px; animation-delay: 1.7s; }
.s5 { top: 22%; left: 50%; margin-left: -2px; width: 5px; height: 5px; animation-delay: 0.3s; }

.name {
  margin-top: -10px;
  width: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(50px, 14vw, 62px);
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 20%, #cfe4ff 70%, #ff9ad4 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(90, 170, 255, 0.55))
    drop-shadow(0 0 28px rgba(255, 60, 150, 0.25));
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 176px;
  margin: 12px auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 200, 255, 0.15), #9ec8ff);
}

.divider-line:last-child {
  background: linear-gradient(90deg, #ff7eb8, rgba(255, 90, 170, 0.15), transparent);
}

.divider-gem {
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow:
    0 0 8px #8ec6ff,
    0 0 16px rgba(255, 80, 160, 0.7);
  flex-shrink: 0;
}

.tagline {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: #d7e6ff;
  text-align: center;
  margin: 0 0 26px;
  text-shadow: 0 0 12px rgba(100, 170, 255, 0.35);
}

.links {
  width: min(88vw, 328px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-hop {
  width: 100%;
  animation: hop 1.65s ease-in-out infinite;
}

.btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 74px;
  padding: 12px 22px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: 18px 18px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent);
  pointer-events: none;
  z-index: 0;
}

.btn:hover {
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon,
.btn-rule,
.btn-copy {
  position: relative;
  z-index: 1;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  overflow: visible;
}

.btn-rule {
  width: 1px;
  height: 36px;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.btn-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.btn-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.95;
}

.btn-of {
  background: linear-gradient(180deg, #5de0ff 0%, #00b4f0 38%, #0077c8 100%);
  box-shadow:
    0 10px 32px rgba(0, 180, 255, 0.55),
    0 0 24px rgba(80, 220, 255, 0.4);
}

.btn-fansly {
  background: linear-gradient(90deg, #6a1cff 0%, #d12bff 46%, #ff3d9a 100%);
  box-shadow:
    0 10px 32px rgba(209, 43, 255, 0.48),
    0 0 24px rgba(255, 80, 170, 0.35);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aura {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 80, 160, 0.22),
      0 0 18px rgba(90, 170, 255, 0.5),
      0 0 48px rgba(70, 130, 255, 0.32),
      0 0 90px rgba(255, 40, 140, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 80, 160, 0.4),
      0 0 26px rgba(120, 200, 255, 0.7),
      0 0 64px rgba(80, 150, 255, 0.45),
      0 0 110px rgba(255, 50, 150, 0.28);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(45deg) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-hop,
  .page,
  .portrait,
  .spark {
    animation: none;
  }
}

@media (min-width: 480px) {
  .page {
    justify-content: center;
    padding-top: 36px;
  }
}
