/* Candy Crush Saga — 粉红糖果画风 */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f7fbfe;
}

/* ---------- Loading ---------- */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe6f0;
}

.loading[hidden] {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 77, 141, 0.25);
  border-top-color: #ff4d8d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Landing ---------- */
.page {
  --primary: #ff4d8d;
  --secondary: #6b1e4a;
  position: relative;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  font-family: Poppins, sans-serif;
  color: var(--secondary);
  overflow: hidden;
  background:
    radial-gradient(120% 55% at 50% -8%, rgba(255, 77, 141, 0.3), transparent 55%),
    radial-gradient(60% 35% at 90% 40%, rgba(255, 200, 80, 0.18), transparent 50%),
    linear-gradient(180deg, #ffe6f0 0%, #ffffff 42%, #fff0f6 100%);
  cursor: pointer;
  user-select: none;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.7) 0 2%, transparent 3%),
    radial-gradient(circle at 78% 16%, rgba(255, 200, 80, 0.35) 0 2.5%, transparent 3.5%),
    radial-gradient(circle at 60% 58%, rgba(255, 77, 141, 0.2) 0 3%, transparent 4%);
  animation: sparkle 7s ease-in-out infinite alternate;
}

@keyframes sparkle {
  from {
    opacity: 0.7;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(8px);
  }
}

.page[hidden] {
  display: none;
}

.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(107, 30, 74, 0.15);
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 40px 24px 28px;
  text-align: left;
  animation: rise 0.65s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--secondary);
}

.lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 22em;
}

.cta {
  border: none;
  padding: 14px 36px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35);
  pointer-events: none;
  animation: candy-pulse 2.4s ease-in-out infinite;
}

@keyframes candy-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 32px rgba(255, 77, 141, 0.55);
    transform: scale(1.03);
  }
}

.about {
  position: relative;
  z-index: 1;
  padding: 4px 24px 28px;
  font-size: 14px;
  line-height: 1.65;
}

.shots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding: 0 24px 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 120px;
  height: 212px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(160deg, var(--primary), #ffb3d0);
  box-shadow: 0 8px 20px rgba(107, 30, 74, 0.12);
}

.foot {
  position: relative;
  z-index: 1;
  padding: 16px 24px 40px;
  text-align: center;
  font-size: 12px;
  opacity: 0.65;
}
