/* ==========================================================================
   SCRAPBOOK SECTIONS & RICH 3D INTERACTIVE COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. STORY TIMELINE: 20 CHAPTERS FOR 20 YEARS
   -------------------------------------------------------------------------- */
.story-timeline-section {
  padding: 5rem 0;
  position: relative;
}

.timeline-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  padding: 3rem 1.5rem;
  gap: 2.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.timeline-track::-webkit-scrollbar {
  height: 8px;
}

.timeline-nav-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.timeline-card {
  flex: 0 0 300px;
  max-width: 300px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  box-shadow: var(--shadow-polaroid);
  position: relative;
  transition: var(--transition-bounce);
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
}

.timeline-card:nth-child(even) {
  --rot: -2.5deg;
}
.timeline-card:nth-child(odd) {
  --rot: 2.5deg;
}
.timeline-card:nth-child(3n) {
  --rot: 1.2deg;
}

.timeline-card:hover {
  transform: scale(1.05) translateY(-8px) rotate(0deg) !important;
  box-shadow: var(--shadow-polaroid-hover);
  z-index: 20;
}

.timeline-chapter-badge {
  position: absolute;
  top: -14px;
  right: 14px;
  background: var(--accent-rose);
  color: #fff;
  font-family: var(--font-doodle);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 8px rgba(230, 92, 123, 0.3);
  z-index: 12;
}

.timeline-date {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-rose);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.timeline-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--ink-primary);
}

.timeline-card-text {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   2. 20 REASONS WHY I LOVE YOU (3D FLIP CARDS)
   -------------------------------------------------------------------------- */
.reasons-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #ede2d2 0%, #e6d6c3 50%, #ede2d2 100%);
  background-image: 
    radial-gradient(rgba(175, 140, 110, 0.25) 1.2px, transparent 1.2px),
    linear-gradient(180deg, #ede2d2 0%, #e6d6c3 50%, #ede2d2 100%);
  background-size: 24px 24px, 100% 100%;
  border-top: 3px dashed #cfb9a0;
  border-bottom: 3px dashed #cfb9a0;
  box-shadow: inset 0 8px 20px rgba(70, 45, 30, 0.08), inset 0 -8px 20px rgba(70, 45, 30, 0.08);
  position: relative;
}

.reasons-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tracker-pill {
  background: #fff;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-primary);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--paper-border);
}

.tracker-progress-bar {
  width: 140px;
  height: 10px;
  background: #e8ded1;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.tracker-progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.reason-flip-card {
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}

.reason-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-polaroid);
}

.reason-flip-card.flipped .reason-card-inner {
  transform: rotateY(180deg);
}

.reason-card-front, .reason-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--paper-border);
}

.reason-card-front {
  background: #fffdfa;
  background-image: radial-gradient(var(--paper-grain) 1px, transparent 1px);
  background-size: 16px 16px;
}

.reason-card-front::after {
  content: 'Tap to flip';
  position: absolute;
  bottom: 12px;
  font-family: var(--font-doodle);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.reason-stamp-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent-rose);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reason-seal-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  animation: floatingBob 3s ease-in-out infinite alternate;
}

.reason-card-back {
  background: linear-gradient(135deg, #fffcf9, #fbf2ea);
  transform: rotateY(180deg);
  border-color: var(--accent-gold);
  box-shadow: inset 0 0 20px rgba(212, 163, 115, 0.15);
}

.reason-text {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--ink-primary);
  line-height: 1.35;
  margin: auto 0;
}

/* --------------------------------------------------------------------------
   3. OPEN WHEN... LETTERS
   -------------------------------------------------------------------------- */
.open-when-section {
  padding: 5rem 0;
  position: relative;
}

.envelopes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
}

.envelope-card {
  perspective: 800px;
  cursor: pointer;
}

.envelope {
  position: relative;
  width: 100%;
  height: 200px;
  background: #e9ded4;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-polaroid);
  transition: var(--transition-bounce);
  overflow: visible;
  border: 1px solid #d5c7b8;
}

.envelope:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-polaroid-hover);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 105px solid #d8cbbe;
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left: 140px solid #ecdcd0;
  border-right: 140px solid #ecdcd0;
  border-bottom: 100px solid #dfcfc2;
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 3;
  pointer-events: none;
}

.wax-seal {
  position: absolute;
  top: 85px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, #b91c1c, var(--wax-red));
  border-radius: 50%;
  box-shadow: var(--shadow-wax);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffccd5;
  font-size: 1.3rem;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-bounce);
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.envelope-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background: rgba(255, 253, 250, 0.95);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px dashed var(--paper-border);
  z-index: 6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Open Envelope State */
.envelope.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. DRAGGABLE SCRAPBOOK PHOTO WALL
   -------------------------------------------------------------------------- */
.photo-wall-section {
  padding: 5rem 0;
  position: relative;
}

.scrapbook-board {
  position: relative;
  width: 100%;
  min-height: 640px;
  background: #e3d2bd;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 248, 235, 0.45) 0%, transparent 80%),
    radial-gradient(rgba(145, 115, 85, 0.22) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 22px 22px;
  border-radius: var(--radius-lg);
  border: 3px dashed #bba084;
  box-shadow: inset 0 0 45px rgba(80, 50, 30, 0.14), var(--shadow-polaroid);
  overflow: hidden;
  padding: 2rem;
  touch-action: none;
}

.board-hint {
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: var(--font-doodle);
  font-size: 1.15rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 1;
}

.draggable-item {
  position: absolute;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.draggable-item:active, .draggable-item.dragging {
  cursor: grabbing;
  z-index: 100 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
}

/* Sticker Elements */
.scrapbook-sticker {
  display: inline-block;
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.scrapbook-sticker:hover {
  transform: scale(1.2) rotate(10deg);
}

.vintage-stamp {
  background: #fff;
  padding: 8px;
  border: 2px dashed #b91c1c;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-doodle);
  color: #b91c1c;
  box-shadow: var(--shadow-card);
}

.vintage-stamp-price {
  font-size: 1.2rem;
  font-weight: 700;
}

.postage-mark {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(185, 28, 28, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-doodle);
  font-size: 0.8rem;
  color: rgba(185, 28, 28, 0.6);
  transform: rotate(-15deg);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. OUR PLAYLIST: VINTAGE CASSETTE PLAYER
   -------------------------------------------------------------------------- */
.playlist-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, #e7d8c4 0%, #dcceb8 100%);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 230, 200, 0.4) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(160, 130, 100, 0.03) 30px, rgba(160, 130, 100, 0.03) 60px);
  border-top: 3px dashed #cfb9a0;
  border-bottom: 3px dashed #cfb9a0;
  box-shadow: inset 0 8px 24px rgba(70, 45, 30, 0.08);
}

.player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* Realistic Retro Cassette Tape */
.cassette-shell {
  width: 100%;
  max-width: 440px;
  height: 280px;
  margin: 0 auto;
  background: linear-gradient(145deg, #383434, #222020);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.15);
  padding: 18px;
  position: relative;
  border: 2px solid #4a4545;
}

.cassette-label {
  background: #fff8eb;
  height: 170px;
  border-radius: 10px;
  padding: 12px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #d5c3aa;
}

.cassette-label-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-rose);
  padding-bottom: 4px;
}

.cassette-title {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.cassette-side {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-rose);
}

.cassette-window {
  width: 220px;
  height: 60px;
  background: rgba(20, 20, 20, 0.85);
  border-radius: 30px;
  margin: 12px auto;
  border: 2px solid #5a5252;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  position: relative;
}

.tape-spool {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.spinning .tape-spool {
  animation: spinSpool 2.2s linear infinite;
}

@keyframes spinSpool {
  to { transform: rotate(360deg); }
}

.tape-teeth {
  width: 14px;
  height: 14px;
  background: #2a2525;
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
}

.tape-ribbon-bar {
  width: 60px;
  height: 14px;
  background: #3e2723;
  border-radius: 4px;
}

.cassette-controls {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.cassette-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-bounce);
}

.cassette-btn:hover {
  transform: scale(1.1);
  color: var(--accent-rose);
}

.cassette-btn.play-btn {
  width: 60px;
  height: 60px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(230, 92, 123, 0.4);
}

/* Playlist Tracks List */
.tracks-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--paper-border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.track-item:hover, .track-item.active {
  border-color: var(--accent-rose);
  transform: translateX(6px);
  background: #fffafb;
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-primary);
}

.track-artist {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.track-note {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--accent-rose);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   6. VOICE NOTE / HEARTFELT AUDIO MESSAGE
   -------------------------------------------------------------------------- */
.voice-memo-card {
  max-width: 620px;
  margin: 3rem auto 0;
  background: #fff;
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-polaroid);
  border: 2px dashed var(--accent-rose-soft);
  position: relative;
}

.voice-memo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.voice-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(230, 92, 123, 0.3);
}

.voice-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  flex: 1;
  background: var(--bg-craft);
  padding: 0 1rem;
  border-radius: var(--radius-full);
}

.wave-bar {
  flex: 1;
  background: #cbbba9;
  border-radius: 2px;
  height: 30%;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.voice-playing .wave-bar {
  background: var(--accent-rose);
  animation: wavePulse 0.8s ease-in-out infinite alternate;
}

.voice-playing .wave-bar:nth-child(2n) { animation-delay: 0.15s; }
.voice-playing .wave-bar:nth-child(3n) { animation-delay: 0.3s; }
.voice-playing .wave-bar:nth-child(4n) { animation-delay: 0.45s; }

@keyframes wavePulse {
  0% { height: 20%; }
  100% { height: 95%; }
}

.voice-transcription {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--paper-border);
}

/* --------------------------------------------------------------------------
   7. LITTLE GAMES: SOULMATE QUIZ & LOVE COUPONS
   -------------------------------------------------------------------------- */
.games-section {
  padding: 5rem 0;
  position: relative;
}

.games-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--paper-border);
  background: #fff;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.tab-btn.active {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
  box-shadow: 0 6px 16px rgba(230, 92, 123, 0.3);
}

/* Quiz UI */
.quiz-box {
  max-width: 650px;
  margin: 0 auto;
  background: #fffdfa;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-polaroid);
  border: 2px dashed var(--paper-border);
}

.quiz-question-number {
  font-family: var(--font-doodle);
  color: var(--accent-rose);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  background: var(--bg-parchment);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--paper-border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition-bounce);
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--accent-gold);
  background: #fff;
  transform: translateX(6px);
}

.quiz-option.correct {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.quiz-option.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* Love Coupon Book */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.coupon-card {
  background: #fffdfa;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 2px dashed #d5c3aa;
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
}

.coupon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-polaroid-hover);
}

.coupon-header {
  background: var(--accent-blush);
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #ecced7;
}

.coupon-badge {
  font-family: var(--font-doodle);
  font-size: 0.95rem;
  color: var(--accent-rose);
  font-weight: 700;
}

.coupon-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coupon-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--ink-primary);
}

.coupon-desc {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-secondary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.coupon-action {
  margin-top: auto;
}

/* Rubber Stamp for Redeemed Coupon */
.redeemed-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg) scale(0);
  border: 4px solid #b91c1c;
  color: #b91c1c;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 10px rgba(185, 28, 28, 0.3);
  letter-spacing: 2px;
  z-index: 20;
}

.coupon-card.redeemed .redeemed-stamp {
  transform: translate(-50%, -50%) rotate(-18deg) scale(1);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   8. FUTURE BUCKET LIST ("THINGS I WANT US TO DO TOGETHER")
   -------------------------------------------------------------------------- */
.bucket-list-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #ede3d5 0%, #e2d2be 100%);
  border-top: 3px dashed #cfb9a0;
  box-shadow: inset 0 8px 24px rgba(70, 45, 30, 0.07);
}

.bucket-board {
  max-width: 740px;
  margin: 0 auto;
  background: #fffdfa;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-polaroid);
  position: relative;
  border: 1px solid var(--paper-border);
}

.bucket-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0;
}

.bucket-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.bucket-item:hover {
  background: var(--bg-parchment);
}

.bucket-checkbox {
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rose);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-bounce);
  background: #fff;
}

.bucket-item.checked .bucket-checkbox {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #fff;
}

.bucket-text {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--ink-primary);
  line-height: 1.3;
  transition: opacity 0.3s ease, text-decoration 0.3s ease;
}

.bucket-item.checked .bucket-text {
  text-decoration: line-through;
  opacity: 0.55;
  color: var(--ink-muted);
}

.add-dream-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.add-dream-input {
  flex: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--paper-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}

.add-dream-input:focus {
  border-color: var(--accent-rose);
}

/* --------------------------------------------------------------------------
   9. GRAND FINALE: 3D / CANVAS NIGHT SKY & CONSTELLATION OF 20 WISHES
   -------------------------------------------------------------------------- */
.night-sky-section {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
  color: #fff;
  padding: 6rem 0;
  overflow: hidden;
}

#starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.night-sky-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.constellation-wrapper {
  position: relative;
  max-width: 800px;
  height: 480px;
  margin: 3rem auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
}

/* Wish Star Node */
.wish-star {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px 4px #ffe6aa;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: starPulse 2.5s ease-in-out infinite alternate;
}

.wish-star:hover, .wish-star.revealed {
  transform: scale(1.6);
  background: #ffd166;
  box-shadow: 0 0 25px 8px #ffd166;
}

.wish-star-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-doodle);
  font-size: 0.85rem;
  color: #faedcd;
  white-space: nowrap;
}

@keyframes starPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Revealed Wish Overlay Box in Finale */
.wish-reveal-box {
  max-width: 500px;
  margin: 1.5rem auto 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: #fffdfa;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.finale-grand-message {
  margin-top: 4rem;
  text-align: center;
}

.finale-h1 {
  font-family: var(--font-script);
  font-size: 4rem;
  color: #ffd6e0;
  text-shadow: 0 0 20px rgba(255, 214, 224, 0.6);
  margin-bottom: 1rem;
}

.finale-p {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: #faedcd;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. SECRET EASTER EGG & SETTINGS MODAL
   -------------------------------------------------------------------------- */
.secret-heart-spot {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 32px;
  height: 32px;
  color: var(--accent-rose);
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.secret-heart-spot:hover {
  opacity: 1;
  transform: scale(1.4) rotate(15deg);
  filter: drop-shadow(0 0 10px rgba(230, 92, 123, 0.8));
}

/* Settings Form */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.form-input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--paper-border);
  font-family: var(--font-body);
  font-size: 1rem;
}

.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.theme-chip {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--paper-border);
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.theme-chip.selected {
  border-color: var(--accent-rose);
  background: var(--accent-blush);
  color: var(--accent-rose);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN FIXES FOR MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.1rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .popup-stage.active .card-left,
  .popup-stage.active .card-right,
  .popup-stage.active .card-bottom {
    display: none; /* Keep center card prominent on mobile screens */
  }
  .popup-stage.active .card-center {
    width: 310px;
    padding: 1.8rem 1.2rem;
  }
  .gift-box-3d {
    width: 170px;
    height: 170px;
  }
  .box-face {
    width: 170px;
    height: 170px;
  }
  .box-front { transform: translateZ(85px); }
  .box-back { transform: rotateY(180deg) translateZ(85px); }
  .box-right { transform: rotateY(90deg) translateZ(85px); }
  .box-left { transform: rotateY(-90deg) translateZ(85px); }
  .box-bottom { transform: rotateX(-90deg) translateZ(85px); }
  
  .box-lid-3d {
    width: 184px;
    left: -7px;
    top: -7px;
    transform: translateZ(92px);
  }
  .box-lid-top {
    width: 184px;
    height: 184px;
  }
  .box-lid-front, .box-lid-back, .box-lid-left, .box-lid-right {
    width: 184px;
    height: 35px;
    transform: translateZ(92px);
  }
  
  .timeline-card {
    flex: 0 0 260px;
  }
  .constellation-wrapper {
    height: 400px;
  }
  .finale-h1 {
    font-size: 2.8rem;
  }
}
