/* ==========================================================================
   Coquette Pink Watercolor Birthday Gift Website (02/12)
   ========================================================================== */

:root {
  --bg-blush: #fce9ee;
  --bg-blush-deep: #f9dde4;
  --rose-primary: #c86d85;
  --rose-bright: #d66d88;
  --rose-coral: #d9536f;
  --taupe-text: #5c474c;
  --taupe-muted: #7c6268;
  --border-rose: #c9aeb3;
  --cream: #faf5ed;
  --cream-light: #fdf9f2;
  --cream-hover: #f2e8da;
  --pastel-blue: #c3def2;
  --pastel-pink: #f6c5d0;
  --shadow-soft: 0 12px 32px rgba(176, 108, 127, 0.14);
  --shadow-card: 0 16px 40px rgba(140, 86, 102, 0.14);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-display: "Quicksand", "Nunito", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--taupe-text);
  background-color: var(--bg-blush);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Painterly Blush Watercolor Background
   ========================================================================== */

.watercolor-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 70% at 15% 20%, rgba(255, 250, 246, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 75% 65% at 88% 15%, rgba(247, 205, 218, 0.7) 0%, transparent 62%),
    radial-gradient(ellipse 80% 70% at 78% 88%, rgba(255, 245, 240, 0.8) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 12% 85%, rgba(244, 194, 209, 0.65) 0%, transparent 60%),
    linear-gradient(135deg, #fdeef2 0%, #f9dce4 50%, #fce8ee 100%);
}

.wc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  animation: wcDrift 18s ease-in-out infinite alternate;
}

.wc-blob-1 {
  width: 440px;
  height: 360px;
  background: #f6c2d1;
  top: -80px;
  left: -90px;
}

.wc-blob-2 {
  width: 520px;
  height: 400px;
  background: #fff6f2;
  top: 10%;
  right: -120px;
  animation-delay: -5s;
}

.wc-blob-3 {
  width: 480px;
  height: 380px;
  background: #f4bccd;
  bottom: -110px;
  left: 25%;
  animation-delay: -10s;
}

.wc-blob-4 {
  width: 340px;
  height: 340px;
  background: #fae2d8;
  bottom: 12%;
  right: 12%;
  animation-delay: -7s;
}

@keyframes wcDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(26px, -22px) scale(1.07);
  }
}

.floating-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 11px;
  height: 7px;
  border-radius: 60% 40% 70% 30%;
  background: rgba(244, 179, 198, 0.55);
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  88% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(105vh) translateX(60px) rotate(320deg);
    opacity: 0;
  }
}

/* Subtle birthday ribbon */
.birthday-ribbon {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 20;
  background: rgba(253, 249, 242, 0.86);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201, 174, 179, 0.6);
  color: var(--rose-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(180, 110, 130, 0.1);
}

.birthday-ribbon span {
  opacity: 0.75;
}

/* ==========================================================================
   Stage & Scene Transitions
   ========================================================================== */

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.scene {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 64px 36px 48px;
  position: relative;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
}

.scene.scene--active {
  display: flex;
  animation: sceneFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sceneFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.96);
}

/* Shared Typography & Pill Button */
.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  color: var(--rose-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.pill-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-light);
  color: var(--taupe-text);
  border: 1.8px solid var(--border-rose);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(176, 108, 127, 0.14);
  transition: transform 0.22s ease, background-color 0.2s ease, box-shadow 0.22s ease, opacity 0.35s ease;
}

.pill-next-btn:hover {
  background: #fffdf9;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(176, 108, 127, 0.2);
}

.pill-next-btn:active {
  transform: translateY(0) scale(0.97);
}

.pill-next-btn--top-right {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 30;
}

.pill-next-btn--bottom-right {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 30;
}

/* ==========================================================================
   SCENE 1: SECRET PIN LOCK SCREEN
   ========================================================================== */

.pin-layout {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

/* Overlapping Heart-shaped Scalloped Lace Photo Frames */
.photo-collage {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-frame {
  position: absolute;
  width: 268px;
  height: 258px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.heart-frame--partner {
  top: 14px;
  left: 28px;
  transform: rotate(-7deg);
  z-index: 2;
}

.heart-frame--partner:hover {
  transform: rotate(-4deg) scale(1.03);
}

.heart-frame--me {
  bottom: 12px;
  right: 24px;
  transform: rotate(7deg);
  z-index: 3;
}

.heart-frame--me:hover {
  transform: rotate(4deg) scale(1.03);
}

.heart-lace-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(173, 106, 126, 0.18));
}

.lace-outer {
  fill: #fffdf9;
  stroke: #f5d6df;
  stroke-width: 9;
  stroke-dasharray: 2 11;
  stroke-linecap: round;
}

.lace-stitch {
  fill: none;
  stroke: #d9a4b3;
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}

.heart-photo-slot {
  position: absolute;
  inset: 22px 24px 20px 24px;
  clip-path: url(#heartClipPartner);
  background: linear-gradient(160deg, #fdf7f2 0%, #f9e6ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.heart-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(154, 106, 120, 0.72);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(200, 109, 133, 0.35);
  user-select: none;
}

.frame-bow {
  position: absolute;
  width: 68px;
  height: 46px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(173, 106, 126, 0.16));
}

.frame-bow--top-left {
  top: 8px;
  left: 16px;
  transform: rotate(-18deg);
}

.frame-bow--bottom-right {
  bottom: 18px;
  right: 8px;
  transform: rotate(16deg);
}

.tiny-heart-doodle {
  position: absolute;
  color: var(--rose-bright);
  font-size: 1.05rem;
  pointer-events: none;
  opacity: 0.8;
}

.doodle-1 {
  top: -8px;
  right: 36px;
  transform: rotate(14deg);
}

.doodle-2 {
  bottom: 24px;
  left: 8px;
  font-size: 0.85rem;
  color: #e48fa6;
}

.doodle-3 {
  top: 12px;
  right: 8px;
  transform: rotate(-10deg);
}

/* Right Column: PIN Keypad Panel */
.pin-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pin-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  color: var(--rose-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.glow-heart {
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(217, 83, 111, 0.45));
  animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.pin-hint {
  font-size: 0.86rem;
  color: var(--taupe-muted);
  margin-bottom: 18px;
}

.pin-boxes {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.pin-boxes.is-shake {
  animation: pinShake 0.42s ease;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.pin-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--cream-light);
  border: 1.8px solid var(--border-rose);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(176, 108, 127, 0.1);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.pin-box.is-filled {
  border-color: var(--rose-bright);
  background: #fffaf6;
  transform: scale(1.04);
}

.pin-heart {
  font-size: 1.35rem;
  color: #e9bcc8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pin-box.is-filled .pin-heart {
  color: var(--rose-coral);
  transform: scale(1.1);
}

.pin-status {
  min-height: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rose-coral);
  margin-bottom: 14px;
}

.pin-status.is-error {
  color: #c24b60;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 11px;
  margin-bottom: 18px;
}

.key-btn {
  height: 48px;
  border-radius: 999px;
  background: var(--cream-light);
  border: 1.6px solid var(--border-rose);
  color: var(--taupe-text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(176, 108, 127, 0.1);
  transition: background-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.key-btn:hover {
  background: var(--cream-hover);
}

.key-btn:active,
.key-btn.is-pressed {
  background: #ebd8cc;
  transform: scale(0.94);
}

.key-btn--action {
  font-size: 1.05rem;
  color: var(--taupe-muted);
}

.key-btn--submit {
  background: var(--rose-coral);
  border-color: #c4415d;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(217, 83, 111, 0.32);
}

.key-btn--submit:hover {
  background: #cc4461;
}

.pin-next-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SCENE 2: GIFT SELECTION HUB
   ========================================================================== */

.hub-container {
  width: 100%;
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hub-subtitle {
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--taupe-muted);
  font-weight: 600;
}

.gifts-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
  margin-top: 8px;
}

.gift-card {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, filter 0.35s ease;
}

.gift-card:hover {
  transform: translateY(-10px) scale(1.07);
}

.gift-card:active {
  transform: translateY(-4px) scale(1.02);
}

.gift-card.is-opened {
  opacity: 0.56;
  filter: saturate(0.78);
}

.gift-card.is-opened:hover {
  opacity: 0.88;
  filter: saturate(1);
}

.gift-box-art {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
}

.iso-gift-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(155, 108, 126, 0.14));
}

.gift-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--taupe-text);
  background: rgba(253, 249, 242, 0.85);
  border: 1.4px solid var(--border-rose);
  padding: 5px 16px;
  border-radius: 999px;
}

.gift-opened-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-primary);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gift-card.is-opened .gift-opened-badge {
  opacity: 1;
  transform: translateY(0);
}

.hub-celebration {
  background: rgba(253, 249, 242, 0.92);
  border: 1.6px solid var(--border-rose);
  color: var(--rose-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==========================================================================
   SCENE 3: GIFT #1 — TULIP BOUQUET & FLOATING QUOTES
   ========================================================================== */

.lace-corner {
  position: fixed;
  width: 170px;
  height: 170px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  background-image: radial-gradient(circle, #ffffff 36%, transparent 38%),
    radial-gradient(circle, rgba(246, 197, 208, 0.65) 18%, transparent 20%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.lace-corner--tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.lace-corner--br {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.tulips-layout {
  width: 100%;
  max-width: 1060px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tulips-header {
  text-align: center;
}

.tulips-stage {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: stretch;
  gap: 32px;
}

.bouquet-card {
  width: 310px;
  padding: 16px;
  background: var(--cream-light);
  border-radius: 32px;
  border: 3px dashed #e6b8c5;
  box-shadow:
    0 0 0 8px rgba(253, 249, 242, 0.92),
    0 18px 42px rgba(176, 108, 127, 0.18);
  position: relative;
  align-self: center;
}

.bouquet-card::before,
.bouquet-card::after {
  content: "♡";
  position: absolute;
  color: var(--rose-bright);
  font-size: 1.2rem;
}

.bouquet-card::before {
  top: -18px;
  left: -14px;
  transform: rotate(-15deg);
}

.bouquet-card::after {
  bottom: -18px;
  right: -12px;
  transform: rotate(15deg);
}

.bouquet-card-inner {
  background: radial-gradient(circle at 50% 42%, #fffdf9 0%, #faf1ea 100%);
  border-radius: 22px;
  padding: 14px 10px 8px;
  display: grid;
  place-items: center;
}

.bouquet-svg {
  width: 245px;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(168, 118, 128, 0.14));
}

.quotes-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.quotes-col--left {
  align-items: flex-end;
}

.quotes-col--right {
  align-items: flex-start;
}

.quote-bubble {
  position: relative;
  width: 100%;
  max-width: 260px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream-light);
  border: 1.6px solid var(--border-rose);
  border-radius: 22px;
  padding: 14px 20px;
  font-family: var(--font-script);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--taupe-text);
  line-height: 1.32;
  box-shadow: 0 8px 20px rgba(176, 108, 127, 0.12);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.quotes-col--left .quote-bubble:nth-child(2) {
  margin-right: 16px;
}

.quotes-col--right .quote-bubble:nth-child(2) {
  margin-left: 16px;
}

.quotes-col--left .quote-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--cream-light);
  border-right: 1.6px solid var(--border-rose);
  border-top: 1.6px solid var(--border-rose);
}

.quotes-col--right .quote-bubble::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--cream-light);
  border-left: 1.6px solid var(--border-rose);
  border-bottom: 1.6px solid var(--border-rose);
}

/* ==========================================================================
   SCENE 4: GIFT #2 — MUSIC / VINYL PLAYER
   ========================================================================== */

.music-doodle {
  position: fixed;
  width: 210px;
  pointer-events: none;
  opacity: 0.72;
  z-index: 1;
}

.music-doodle--tr {
  top: 26px;
  right: 32px;
}

.music-doodle--bl {
  bottom: 24px;
  left: 26px;
}

.music-container {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.music-header {
  text-align: center;
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--rose-primary);
}

.cursive-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--taupe-muted);
  margin-top: 4px;
}

.music-stage {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

/* Dark Spotify-style Embedded Player Card */
.spotify-card {
  background: linear-gradient(145deg, #272024 0%, #1a1518 100%);
  color: #fdf8fa;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 46px rgba(84, 42, 56, 0.28);
  border: 1px solid rgba(246, 197, 208, 0.16);
}

.spotify-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.album-art {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8c6d5 0%, #e59bb1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-art-placeholder {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b4350;
  line-height: 1.25;
}

.track-meta {
  flex: 1;
  min-width: 0;
}

.track-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f6c5d0;
  background: rgba(246, 197, 208, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.86rem;
  color: #cbb9bf;
  margin-top: 2px;
}

.like-btn {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: #8f7e84;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn.is-liked {
  color: #1db954;
}

.like-btn:hover {
  transform: scale(1.18);
}

.scrubber-wrap {
  margin-bottom: 14px;
}

.scrubber {
  width: 100%;
  accent-color: #f4a8bc;
  cursor: pointer;
  height: 5px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #b7a5ab;
  margin-top: 4px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #cbb9bf;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.ctrl-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.ctrl-btn.is-active {
  color: #f4a8bc;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fdf9f2;
  color: #211a1d;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.play-btn:hover {
  transform: scale(1.07);
  background: #f6c5d0;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 12px;
  color: #dfd2d6;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.track-item:hover {
  background: rgba(246, 197, 208, 0.12);
}

.track-item.is-current {
  background: rgba(246, 197, 208, 0.18);
  border-color: rgba(246, 197, 208, 0.4);
  color: #ffffff;
  font-weight: 700;
}

/* Glossy Black Vinyl Record */
.vinyl-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.vinyl-disc {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111 0%, #1c1a1c 35%, #0e0d0e 65%, #232022 100%);
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 20px 44px rgba(74, 40, 52, 0.34),
    inset 0 0 0 3px rgba(255, 255, 255, 0.08);
  animation: vinylSpin 7.5s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.is-spinning {
  animation-play-state: running;
}

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

.vinyl-grooves {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 2px,
    transparent 5px
  );
  pointer-events: none;
}

.vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 30deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.14) 24deg,
    transparent 54deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.12) 206deg,
    transparent 240deg
  );
  pointer-events: none;
}

.vinyl-label {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde0e8 0%, #f5b9c9 65%, #e69eb2 100%);
  border: 3px solid #fdf9f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.vinyl-label-top {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6b4350;
}

.vinyl-label-date {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: #9e4760;
}

.vinyl-label-heart {
  font-size: 0.8rem;
  color: #c86d85;
}

.vinyl-hole {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1b1719;
  border: 2px solid #fdf9f2;
}

/* Tonearm */
.vinyl-arm {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 84px;
  height: 160px;
  transform-origin: 64px 20px;
  transform: rotate(-18deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.vinyl-arm.is-playing {
  transform: rotate(10deg);
}

.arm-pivot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5e6ea, #b6949e);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.arm-rod {
  position: absolute;
  top: 22px;
  right: 18px;
  width: 4px;
  height: 112px;
  background: linear-gradient(to bottom, #d9c5cb, #8e747c);
  border-radius: 4px;
  transform: rotate(14deg);
  transform-origin: top center;
}

.arm-head {
  position: absolute;
  bottom: 18px;
  left: 26px;
  width: 16px;
  height: 24px;
  border-radius: 4px;
  background: #5c474c;
  transform: rotate(22deg);
}

/* ==========================================================================
   SCENE 5: GIFT #3 — LOVE LETTER
   ========================================================================== */

.letter-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.letter-header {
  text-align: left;
  padding-left: 8px;
}

.letter-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

/* Torn-edge cream ruled notebook paper */
.notebook-sheet {
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: 410px;
  background-color: #fdf9f0;
  background-image:
    linear-gradient(90deg, transparent 54px, rgba(226, 152, 171, 0.45) 54px, rgba(226, 152, 171, 0.45) 55.5px, transparent 55.5px),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 33px,
      rgba(201, 174, 179, 0.36) 33px,
      rgba(201, 174, 179, 0.36) 34px
    );
  padding: 36px 46px 42px 74px;
  border-radius: 6px 14px 14px 6px;
  box-shadow:
    0 18px 42px rgba(154, 96, 112, 0.16),
    inset 6px 0 12px rgba(214, 177, 186, 0.18);
  border: 1px solid rgba(201, 174, 179, 0.45);
  z-index: 2;
}

/* Decorative notebook spiral / torn edge on the left */
.notebook-sheet::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 14px;
  width: 14px;
  background-image: radial-gradient(circle, #f7dce3 42%, rgba(190, 146, 158, 0.4) 48%, transparent 52%);
  background-size: 14px 34px;
  background-repeat: repeat-y;
}

.notebook-date {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rose-primary);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.notebook-body {
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 34px;
  color: var(--taupe-text);
}

.letter-para {
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.letter-para.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.notebook-signature {
  margin-top: 20px;
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--rose-bright);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.notebook-signature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chibi Calico Cat overlapping bottom-left */
.chibi-cat {
  position: absolute;
  bottom: -6px;
  left: 16px;
  width: 150px;
  height: 150px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(145, 96, 108, 0.18));
  animation: catBob 3.4s ease-in-out infinite;
}

@keyframes catBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

/* Cherry Blossom Branch along right margin */
.blossom-branch {
  position: absolute;
  top: -36px;
  right: -12px;
  width: 128px;
  height: 390px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(168, 104, 122, 0.14));
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 900px) {
  .scene {
    padding: 68px 20px 84px;
    align-items: flex-start;
  }

  .pin-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .photo-collage {
    height: 270px;
    max-width: 420px;
    transform: scale(0.76);
    margin: -24px auto -28px;
  }

  .gifts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  #scene-hub {
    align-items: center;
  }

  .gift-card {
    padding: 8px 4px;
    width: 100%;
  }

  .gift-box-art {
    width: clamp(96px, 26vw, 170px);
    height: clamp(96px, 26vw, 170px);
  }

  .gift-label {
    font-size: clamp(0.78rem, 2.4vw, 0.96rem);
    padding: 4px 12px;
    white-space: nowrap;
  }

  .tulips-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "bouquet bouquet"
      "left right";
    gap: 22px 14px;
    align-items: stretch;
  }

  .bouquet-card {
    grid-area: bouquet;
    justify-self: center;
    width: 268px;
    padding: 12px;
  }

  .bouquet-svg {
    width: 205px;
  }

  .quotes-col {
    padding: 0;
    gap: 12px;
    justify-content: flex-start;
  }

  .quotes-col--left {
    grid-area: left;
    align-items: stretch;
  }

  .quotes-col--right {
    grid-area: right;
    align-items: stretch;
  }

  .quote-bubble {
    max-width: none;
    flex: 1;
    min-height: 76px;
    font-size: 1.2rem;
    padding: 12px 14px;
  }

  .quotes-col--left .quote-bubble:nth-child(2),
  .quotes-col--right .quote-bubble:nth-child(2) {
    margin: 0;
  }

  .quotes-col--left .quote-bubble::after,
  .quotes-col--right .quote-bubble::after {
    display: none;
  }

  .music-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vinyl-disc {
    width: 248px;
    height: 248px;
  }

  .notebook-sheet {
    padding: 28px 24px 56px 52px;
  }

  .chibi-cat {
    width: 112px;
    height: 112px;
    left: 2px;
    bottom: -14px;
  }

  .blossom-branch {
    width: 84px;
    right: -14px;
    opacity: 0.72;
  }
}

@media (max-width: 520px) {
  .birthday-ribbon {
    top: 12px;
    left: 12px;
    font-size: 0.76rem;
    padding: 5px 11px;
  }

  .pill-next-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  .pill-next-btn--top-right {
    top: 12px;
    right: 12px;
  }

  .pill-next-btn--bottom-right {
    bottom: 14px;
    right: 14px;
  }

  .scene {
    padding: 66px 14px 96px;
  }

  /* Scene 1: Mobile PIN + Heart Collage */
  .photo-collage {
    width: 340px;
    height: 220px;
    transform: scale(0.68);
    transform-origin: top center;
    margin: 0 auto -62px;
  }

  .heart-frame--partner {
    top: 4px;
    left: -18px;
  }

  .heart-frame--me {
    bottom: -36px;
    right: -18px;
  }

  .pin-title {
    font-size: 1.42rem;
  }

  .pin-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .keypad {
    grid-template-columns: repeat(3, minmax(72px, 84px));
    gap: 9px;
  }

  .key-btn {
    height: 44px;
    font-size: 1.06rem;
  }

  /* Scene 2: Mobile Gift Hub (3 gifts horizontal) */
  .gifts-grid {
    gap: 8px;
  }

  .gift-box-art {
    width: clamp(86px, 27vw, 120px);
    height: clamp(86px, 27vw, 120px);
  }

  .gift-label {
    font-size: 0.74rem;
    padding: 4px 9px;
  }

  .gift-opened-badge {
    font-size: 0.72rem;
  }

  .hub-celebration {
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 18px;
  }

  /* Scene 3: Mobile Tulips (Bouquet on top + 2x3 symmetrical grid) */
  .tulips-stage {
    gap: 18px 10px;
  }

  .bouquet-card {
    width: min(240px, 100%);
    padding: 10px;
  }

  .bouquet-svg {
    width: 180px;
  }

  .quote-bubble {
    min-height: 72px;
    font-size: 1.08rem;
    padding: 10px 10px;
    border-radius: 18px;
  }

  /* Scene 4: Mobile Music Player & Vinyl */
  .music-doodle {
    width: 130px;
    opacity: 0.45;
  }

  .spotify-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .album-art {
    width: 58px;
    height: 58px;
  }

  .track-title {
    font-size: 1rem;
  }

  .player-controls {
    gap: 14px;
  }

  .vinyl-disc {
    width: 215px;
    height: 215px;
  }

  .vinyl-label {
    width: 84px;
    height: 84px;
  }

  .vinyl-label-top {
    font-size: 0.4rem;
  }

  .vinyl-label-date {
    font-size: 0.76rem;
  }

  .vinyl-arm {
    transform-origin: 64px 20px;
    right: 6px;
    top: 4px;
    scale: 0.78;
  }

  /* Scene 5: Mobile Love Letter */
  .letter-header {
    text-align: center;
    padding-left: 0;
  }

  .notebook-sheet {
    padding: 24px 18px 66px 46px;
    background-image:
      linear-gradient(90deg, transparent 36px, rgba(226, 152, 171, 0.45) 36px, rgba(226, 152, 171, 0.45) 37.5px, transparent 37.5px),
      repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 31px,
        rgba(201, 174, 179, 0.36) 31px,
        rgba(201, 174, 179, 0.36) 32px
      );
  }

  .notebook-sheet::before {
    left: 10px;
    background-size: 12px 32px;
  }

  .notebook-body {
    font-size: 0.94rem;
    line-height: 32px;
  }

  .chibi-cat {
    width: 92px;
    height: 92px;
    left: 0;
    bottom: -12px;
  }

  .blossom-branch {
    width: 60px;
    right: -12px;
    opacity: 0.55;
  }
}
