:root {
  --pink: #ff3d7a;
  --pink-deep: #e0185a;
  --pink-soft: #ff7aa8;
  --pink-mist: #ffe0eb;
  --yellow: #f0c93a;
  --yellow-soft: #ffe9a0;
  --ink: #1a1014;
  --ink-soft: rgba(26, 16, 20, 0.62);
  --white: #fffafb;
  --glass: rgba(255, 250, 251, 0.72);
  --shadow: 0 24px 60px rgba(224, 24, 90, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #ff8fb5 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, #ffd66e 0%, transparent 45%),
    linear-gradient(165deg, #ff4f86 0%, #ff3d7a 42%, #ff6b4a 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 14s var(--ease) infinite alternate;
}

.blob-a {
  width: 42vw;
  height: 42vw;
  min-width: 220px;
  min-height: 220px;
  top: -8%;
  left: -10%;
  background: var(--yellow-soft);
  animation-duration: 16s;
}

.blob-b {
  width: 36vw;
  height: 36vw;
  min-width: 180px;
  min-height: 180px;
  right: -8%;
  top: 28%;
  background: #ff9ec2;
  animation-duration: 12s;
  animation-delay: -3s;
}

.blob-c {
  width: 50vw;
  height: 50vw;
  min-width: 260px;
  min-height: 260px;
  bottom: -18%;
  left: 20%;
  background: rgba(255, 230, 150, 0.7);
  animation-duration: 18s;
  animation-delay: -6s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 5.5rem;
  text-align: center;
}

.hero-visual {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: rise 1s var(--ease) both;
}

.logo-ring {
  position: absolute;
  inset: -6%;
  border-radius: 32% 42% 38% 44% / 42% 34% 48% 36%;
  background:
    conic-gradient(from 120deg, var(--yellow), transparent 35%, var(--pink-mist), transparent 70%, var(--yellow-soft));
  opacity: 0.85;
  filter: blur(2px);
  animation: morph 10s ease-in-out infinite;
}

.logo {
  position: relative;
  width: 86%;
  height: auto;
  border-radius: 28%;
  box-shadow: var(--shadow);
  animation: float 5.5s ease-in-out infinite;
}

.hero-copy {
  max-width: 34rem;
  animation: rise 1s var(--ease) 0.12s both;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(3rem, 12vw, 5.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 8px 28px rgba(160, 10, 60, 0.35);
}

.tagline {
  margin: 0.85rem 0 0;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 500;
  color: rgba(255, 250, 251, 0.92);
  letter-spacing: 0.06em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 10.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

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

.btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.btn-android {
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow-soft), var(--yellow));
  box-shadow: 0 14px 32px rgba(200, 140, 20, 0.35);
}

.btn-android:hover {
  box-shadow: 0 18px 40px rgba(200, 140, 20, 0.45);
}

.btn-ios {
  color: var(--pink-deep);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(120, 20, 60, 0.18);
  outline: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ios:hover {
  background: #fff;
  box-shadow: 0 18px 40px rgba(120, 20, 60, 0.25);
}

.hint {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(26, 16, 20, 0.18);
  color: rgba(255, 250, 251, 0.92);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rise 0.7s var(--ease) both;
}

.hint[hidden] {
  display: none !important;
}

.hint strong {
  font-weight: 700;
  color: var(--yellow-soft);
  letter-spacing: 0.12em;
}

.copy-btn {
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem 1.5rem;
  margin-top: -3.5rem;
  color: rgba(255, 250, 251, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

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

@keyframes morph {
  0%,
  100% {
    border-radius: 32% 42% 38% 44% / 42% 34% 48% 36%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 44% 32% 46% 36% / 36% 48% 34% 42%;
    transform: rotate(8deg) scale(1.04);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
}

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

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    justify-content: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    text-align: left;
    padding-bottom: 4rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    justify-content: flex-start;
  }

  .hint {
    justify-content: flex-start;
  }

  .foot {
    margin-top: -2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .logo,
  .logo-ring,
  .hero-visual,
  .hero-copy,
  .hint {
    animation: none !important;
  }

  .btn {
    transition: none;
  }
}

/* ===== Notice modal ===== */
.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 6, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: noticeFade 0.35s var(--ease) both;
}

.notice-overlay[hidden] {
  display: none !important;
}

.notice-overlay.is-closing {
  animation: noticeFadeOut 0.28s ease forwards;
}

.notice-card {
  position: relative;
  width: min(100%, 22.5rem);
  padding: 1.6rem 1.35rem 1.35rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 233, 160, 0.55) 0%, transparent 50%),
    radial-gradient(100% 70% at 100% 0%, rgba(255, 125, 170, 0.35) 0%, transparent 45%),
    linear-gradient(165deg, #fff8fb 0%, #ffe8f0 100%);
  box-shadow:
    0 28px 64px rgba(160, 10, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--ink);
  text-align: left;
  animation: noticePop 0.45s var(--ease) both;
}

.notice-overlay.is-closing .notice-card {
  animation: noticeShrink 0.28s ease forwards;
}

.notice-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(26, 16, 20, 0.06);
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.notice-close:hover {
  background: rgba(26, 16, 20, 0.12);
  color: var(--ink);
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 18px rgba(224, 24, 90, 0.3);
}

.notice-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--pink-deep);
  line-height: 1.2;
}

.notice-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.notice-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.notice-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  outline: 1px solid rgba(255, 61, 122, 0.1);
}

.notice-icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--yellow-soft), #ffe0eb);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink-deep);
  box-shadow: 0 4px 12px rgba(240, 201, 58, 0.25);
}

.notice-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.notice-list p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.notice-list em {
  font-style: normal;
  font-weight: 700;
  color: var(--pink-deep);
}

.notice-ok {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow-soft), var(--yellow));
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(200, 140, 20, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.notice-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(200, 140, 20, 0.4);
}

.notice-ok:active {
  transform: translateY(0) scale(0.98);
}

@keyframes noticeFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes noticeFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes noticePop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes noticeShrink {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
}
