:root {
  --pink-25: #fffbff;
  --pink-50: #fff4fb;
  --pink-100: #fee8f5;
  --pink-200: #ffd9ed;
  --pink-300: #fbbfdf;
  --pink-400: #f29bc7;
  --pink-500: #df76b0;
  --ink: #4f3140;
  --ink-soft: #7e5a6e;
  --card-bg: rgba(255, 255, 255, 0.58);
  --card-bg-strong: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 42px rgba(171, 102, 140, 0.2);
  --body-grad-a: #fff9ff;
  --body-grad-b: #ffeaf6;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, #ffe6f6 0, transparent 34%),
    radial-gradient(circle at 90% 22%, #ffd3eb 0, transparent 28%),
    radial-gradient(circle at 48% 108%, #ffd8ef 0, transparent 30%),
    linear-gradient(130deg, var(--body-grad-a), var(--body-grad-b));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 90%);
  z-index: -2;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  opacity: 0.45;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 310px;
  height: 310px;
  top: -90px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #ffd2ea, #ffc1e3 70%);
}

.orb-2 {
  width: 250px;
  height: 250px;
  right: -70px;
  top: 28%;
  background: radial-gradient(circle at 30% 30%, #ffd9ef, #ffcce8 70%);
  animation-delay: 1.6s;
}

.orb-3 {
  width: 210px;
  height: 210px;
  left: 45%;
  bottom: -70px;
  background: radial-gradient(circle at 30% 30%, #ffe4f3, #ffdbef 75%);
  animation-delay: 3s;
}

.screen {
  min-height: 100svh;
  width: min(1160px, 92%);
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.screen.active {
  display: flex;
}

#birthday-app {
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.glass-card {
  border: 1px solid var(--card-border);
  background: linear-gradient(150deg, var(--card-bg-strong), var(--card-bg));
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 700;
  color: #9e6685;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0.38rem 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4.1vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
}

.subtitle {
  margin: 0.2rem 0 0.75rem;
  font-weight: 600;
  color: #9f6584;
}

.description,
.card-text {
  margin: 0.72rem 0 1.15rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.welcome-card {
  text-align: center;
  max-width: 760px;
  padding: 2.4rem 2rem;
  animation: rise 0.85s ease;
}

.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}

.welcome-chips span {
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(229, 165, 199, 0.75);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  color: #875771;
}

.cta-btn,
.soft-btn,
.moment-pill,
.memory-photo,
.mood-dot {
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.cta-btn,
.soft-btn {
  border-radius: 999px;
  font-family: inherit;
  border: none;
}

.cta-btn {
  background: linear-gradient(135deg, #df74ad, #f19bc9);
  color: #fff;
  padding: 0.86rem 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(206, 97, 159, 0.33);
}

.cta-btn.small {
  padding: 0.72rem 1.14rem;
}

.soft-btn {
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(230, 172, 204, 0.8);
  color: #844f6b;
  padding: 0.66rem 1.04rem;
  font-weight: 600;
}

.cta-btn:hover,
.soft-btn:hover,
.moment-pill:hover,
.memory-photo:hover,
.interactive:hover {
  transform: translateY(-2px);
}

.hero {
  width: 100%;
  padding: 1.45rem;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-items: center;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.54rem 0.94rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 169, 201, 0.75);
  color: #88566f;
  font-weight: 600;
}

.hero-art {
  position: relative;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.56), rgba(255, 235, 248, 0.7));
}

.portrait-orb {
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 20%, #ffd8eb 0, transparent 37%),
    radial-gradient(circle at 80% 82%, #ffcade 0, transparent 37%),
    linear-gradient(140deg, #fff3fa, #ffd9ed);
  animation: pulseGlow 5.8s ease-in-out infinite;
}

.countdown-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 15px;
  padding: 0.72rem 0.8rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(227, 171, 201, 0.75);
  box-shadow: 0 10px 18px rgba(184, 106, 147, 0.14);
}

.count-label {
  display: block;
  font-size: 0.72rem;
  color: #96627f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown-chip strong {
  font-size: 0.98rem;
  color: #6b4156;
}

.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.interactive {
  padding: 1.3rem;
  min-height: 240px;
  transform-style: preserve-3d;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.interactive:focus-within,
.gift:focus-visible {
  outline: 2px solid rgba(228, 133, 187, 0.55);
  outline-offset: 2px;
}

.gift {
  position: relative;
  outline: none;
}

.gift-box {
  width: 90px;
  margin: 0.8rem auto 1rem;
  position: relative;
}

.lid,
.box {
  border-radius: 8px;
  margin-inline: auto;
  background: linear-gradient(135deg, #f9bfdc, #efa5ce);
  border: 2px solid #e08ebd;
}

.lid {
  width: 92px;
  height: 18px;
  transition: transform 0.35s ease;
}

.box {
  width: 78px;
  height: 54px;
  margin-top: 3px;
}

.gift.open .lid {
  transform: translateY(-10px) rotate(-9deg);
}

.memory-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.memory-photo {
  border: 1px solid rgba(221, 160, 194, 0.8);
  background: rgba(255, 255, 255, 0.82);
  color: #8c5370;
  border-radius: 12px;
  padding: 0.5rem 0.72rem;
  font-size: 0.8rem;
  font-family: inherit;
}

.memory-photo.active {
  background: linear-gradient(140deg, #f5b1d6, #fbc9e2);
  color: #5d3248;
}

.mood-palette {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.mood-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 12px rgba(184, 112, 148, 0.22);
}

.mood-dot.active {
  transform: scale(1.08);
  outline: 2px solid rgba(202, 107, 159, 0.54);
  outline-offset: 1px;
}

.mood-dawn {
  background: linear-gradient(135deg, #ffd9ee, #ffd0e9);
}

.mood-blush {
  background: linear-gradient(135deg, #ffc8e1, #f7aed3);
}

.mood-pearl {
  background: linear-gradient(135deg, #ffeff9, #ffe6f6);
}

.moments,
.celebrate {
  width: 100%;
  padding: 1.3rem;
}

.moments-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.moment-pill {
  border-radius: 999px;
  border: 1px solid rgba(224, 166, 197, 0.85);
  background: rgba(255, 255, 255, 0.84);
  color: #85516d;
  padding: 0.56rem 0.86rem;
  white-space: nowrap;
  font-family: inherit;
}

.moment-pill.active {
  background: linear-gradient(130deg, #f5b7d9, #fbd2e8);
  color: #63374c;
}

.celebrate {
  text-align: center;
}

.celebrate-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.score {
  margin: 0;
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 161, 193, 0.78);
  color: #7f4f69;
  font-weight: 600;
}

.balloon-field {
  margin-top: 1rem;
  min-height: 155px;
  border-radius: 16px;
  border: 1px dashed rgba(229, 171, 203, 0.78);
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.balloon {
  position: absolute;
  width: 36px;
  height: 45px;
  border-radius: 50% 50% 48% 52%;
  border: 1px solid rgba(205, 121, 168, 0.55);
  background: linear-gradient(155deg, #ffd4ea, #f8b2d5);
  animation: floatUp linear forwards;
}

.balloon::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 20px;
  background: rgba(203, 127, 169, 0.6);
  left: 50%;
  bottom: -20px;
}

.balloon.pop {
  transform: scale(0.75);
  opacity: 0;
  transition: all 0.14s ease;
}

.heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.1rem;
  animation: pop 1.5s ease forwards;
  z-index: 20;
}

.hidden {
  display: none;
}

.reveal,
.reveal-delay-1,
.reveal-delay-2 {
  opacity: 0;
  transform: translateY(12px);
}

.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-delay-1.visible {
  transition-delay: 0.14s;
}

.reveal-delay-2.visible {
  transition-delay: 0.26s;
}

@keyframes drift {
  from {
    transform: translateY(-10px) translateX(0);
  }
  to {
    transform: translateY(18px) translateX(18px);
  }
}

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

@keyframes pulseGlow {
  0% {
    transform: scale(0.99);
    filter: saturate(0.96);
  }
  50% {
    transform: scale(1.02);
    filter: saturate(1.06);
  }
  100% {
    transform: scale(0.99);
    filter: saturate(0.96);
  }
}

@keyframes pop {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-90px) translateX(var(--drift, 0px)) scale(1.25);
    opacity: 0;
  }
}

@keyframes floatUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-220px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .screen {
    width: min(740px, 94%);
    padding-top: 1.2rem;
  }

  .welcome-card,
  .hero,
  .interactive,
  .moments,
  .celebrate {
    border-radius: 20px;
  }

  .welcome-card {
    padding: 1.8rem 1.1rem;
  }

  .hero,
  .interactive,
  .moments,
  .celebrate {
    padding: 1.05rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .interactive {
    min-height: 0;
  }

  .balloon-field {
    min-height: 135px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
