:root {
  --bg: #fbfafc;
  --card: rgba(255, 255, 255, 0.96);
  --text: #171717;
  --muted: #666666;
  --pink: #cc4a91;
  --pink-soft: rgba(204, 74, 145, 0.14);
  --blue: #1597b3;
  --gold: #b4930f;
  --purple: #4e2ca8;
  --line: #ece8f1;
  --shadow: 0 18px 45px rgba(21, 15, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, #ffffff 0%, #fbfafc 55%, #f8f6fa 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.floating-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-confetti span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  opacity: 0.25;
  animation: drift linear infinite;
}

.floating-confetti span:nth-child(1),
.floating-confetti span:nth-child(7) {
  background: #ffc7de;
  left: 8%;
  top: -3%;
  animation-duration: 22s;
}

.floating-confetti span:nth-child(2),
.floating-confetti span:nth-child(8) {
  background: #dff6ff;
  left: 18%;
  top: -8%;
  width: 14px;
  height: 14px;
  animation-duration: 26s;
}

.floating-confetti span:nth-child(3),
.floating-confetti span:nth-child(9) {
  background: #fff1bf;
  left: 34%;
  top: -6%;
  animation-duration: 18s;
}

.floating-confetti span:nth-child(4),
.floating-confetti span:nth-child(10) {
  background: #f7d8e7;
  left: 52%;
  top: -10%;
  width: 10px;
  height: 18px;
  border-radius: 5px;
  transform: rotate(32deg);
  animation-duration: 24s;
}

.floating-confetti span:nth-child(5),
.floating-confetti span:nth-child(11) {
  background: #d8f2ef;
  left: 72%;
  top: -4%;
  animation-duration: 20s;
}

.floating-confetti span:nth-child(6),
.floating-confetti span:nth-child(12) {
  background: #fce2ef;
  left: 88%;
  top: -9%;
  width: 16px;
  height: 10px;
  border-radius: 12px;
  animation-duration: 28s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-40px, 115vh, 0) rotate(300deg);
  }
}

.intro-page {
  display: grid;
  place-items: center;
}

.intro-main {
  width: min(100%, 520px);
  padding: 40px 24px 72px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tiny-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: #df5f92;
}

.intro-main h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.02;
  font-weight: 900;
}

.gift-button {
  margin: 30px auto 14px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
}

.gift-emoji {
  display: inline-block;
  font-size: 4.8rem;
  filter: drop-shadow(0 14px 24px rgba(186, 98, 72, 0.18));
  animation: giftFloat 2.2s ease-in-out infinite;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gift-button:hover .gift-emoji {
  transform: scale(1.08);
  filter: drop-shadow(0 18px 28px rgba(186, 98, 72, 0.22));
}

.intro-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

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

.opening-gift .gift-emoji {
  animation: popGift 0.66s ease forwards;
}

@keyframes popGift {
  0% { transform: scale(1); opacity: 1; }
  55% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.album-page {
  padding: 20px 18px 72px;
}

.album-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.music-pill {
  width: min(100%, 330px);
  margin: 8px auto 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
}

.disc-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fafafa 0 7px, #1c1c1c 8px 10px, #6da1ad 11px 100%);
  box-shadow: inset 0 0 0 8px #5f7f88;
  display: grid;
  place-items: center;
  animation: spinDisc 6s linear infinite;
}

.disc-label {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f7f7f7;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-copy strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
}

.music-copy span {
  display: block;
  margin-top: 3px;
  color: #e8619b;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.music-bar {
  height: 8px;
  background: #f2f0f4;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.music-bar i {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #202020, #6d6d6d);
}

.music-time {
  align-self: start;
  padding-top: 4px;
  color: #808080;
  font-size: 0.78rem;
  white-space: nowrap;
}

.hero-card {
  text-align: center;
}

.polaroid-stage {
  position: relative;
  width: min(100%, 360px);
  height: 420px;
  margin: 0 auto 18px;
}

.polaroid-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 250px;
  height: 330px;
  padding: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(22, 16, 40, 0.12);
  transition: transform 0.7s ease, opacity 0.6s ease, filter 0.6s ease;
}

.polaroid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.polaroid-card.active {
  transform: translateX(0) rotate(0deg) scale(1);
  z-index: 5;
  opacity: 1;
}

.polaroid-card.second {
  transform: translateX(56px) rotate(2deg) scale(0.97);
  z-index: 4;
  opacity: 1;
}

.polaroid-card.third {
  transform: translateX(96px) rotate(5deg) scale(0.94);
  z-index: 3;
  opacity: 1;
}

.polaroid-card.fourth {
  transform: translateX(124px) rotate(8deg) scale(0.91);
  z-index: 2;
  opacity: 0.95;
}

.polaroid-card.fifth {
  transform: translateX(-18px) rotate(-7deg) scale(0.92);
  z-index: 1;
  opacity: 0;
}

.hero-card h1 {
  width: min(100%, 680px);
  margin: 0 auto;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-subcopy {
  width: min(100%, 560px);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.story-copy {
  width: min(100%, 720px);
  margin: 34px auto 0;
  text-align: center;
}

.story-copy p {
  margin: 0 0 24px;
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.8;
  color: #555;
}

.story-copy .italic-block {
  font-style: italic;
}

.story-copy .pink {
  color: var(--pink);
  font-weight: 700;
}

.story-copy .gold {
  color: var(--gold);
  font-weight: 700;
}

.story-copy .blue {
  color: var(--blue);
  font-weight: 700;
}

.closing-line {
  font-weight: 800;
  color: #4a4a4a;
}

.counter-section {
  margin-top: 22px;
}

.counter-panel {
  width: min(100%, 420px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  border: 1px solid rgba(239, 235, 243, 0.9);
  border-radius: 24px;
  padding: 26px 20px 18px;
  text-align: center;
}

.counter-big {
  font-size: clamp(4.2rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--purple);
}

.counter-label {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: #9b90c2;
  font-weight: 800;
}

.counter-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mini-box {
  background: #fff;
  border-radius: 16px;
  padding: 12px 8px;
  border: 1px solid var(--line);
}

.mini-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1c1c1c;
}

.mini-box span {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: #8e8e8e;
  font-weight: 800;
}

.bottom-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(239, 235, 243, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.info-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.info-card p {
  margin: 0;
  color: #616161;
  line-height: 1.7;
}

.soft-button {
  margin-top: 16px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #171717, #333333);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-button {
  background: linear-gradient(180deg, #5a3eb2, #41248e);
}

@media (max-width: 760px) {
  .album-page {
    padding-inline: 14px;
  }

  .music-pill {
    grid-template-columns: 56px 1fr;
  }

  .music-time {
    grid-column: 2;
    padding-top: 0;
  }

  .polaroid-stage {
    height: 360px;
    width: min(100%, 310px);
  }

  .polaroid-card {
    width: 220px;
    height: 290px;
  }

  .polaroid-card.second { transform: translateX(44px) rotate(2deg) scale(0.97); }
  .polaroid-card.third { transform: translateX(76px) rotate(5deg) scale(0.94); }
  .polaroid-card.fourth { transform: translateX(98px) rotate(8deg) scale(0.9); }

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

  .story-copy p {
    font-size: 1rem;
  }
}

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