*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-cream: #fff8f0;
  --color-gold: #d4a853;
  --color-rose: #e8a0a0;
  --color-deep: #2d1b2e;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius: 20px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  color: var(--color-deep);
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Single faded background image layer - visible and elegant */
.bg-image-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('background.jpg') center/cover no-repeat;
  opacity: 0;
  animation: bgImageReveal 2s ease-out 0.3s forwards, bgShift 18s ease-in-out 2.5s infinite alternate;
}

@keyframes bgImageReveal {
  to { opacity: 0.55; }
}

@keyframes bgShift {
  0% { filter: brightness(1) saturate(1.05); }
  100% { filter: brightness(1.08) saturate(1.15); }
}

/* Background gradient overlay - lighter so image shows through */
.background-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(232, 160, 160, 0.45) 0%,
    rgba(212, 168, 83, 0.4) 45%,
    rgba(45, 27, 46, 0.5) 100%
  );
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.5s forwards;
  pointer-events: none;
}

/* Floating emoji shapes */
.floating-shapes {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  animation: shapeAppear 0.8s ease-out forwards, float 8s ease-in-out infinite;
}

.shape-1 { left: 10%; top: 15%; animation-delay: 1.2s, 0s; }
.shape-2 { right: 12%; top: 20%; animation-delay: 1.4s, -2s; }
.shape-3 { left: 20%; bottom: 25%; animation-delay: 1.6s, -4s; }
.shape-4 { right: 15%; bottom: 20%; animation-delay: 1.8s, -1s; }
.shape-5 { left: 50%; top: 8%; animation-delay: 1.3s, -3s; }
.shape-6 { right: 25%; top: 40%; animation-delay: 1.5s, -5s; }
.shape-7 { left: 8%; top: 50%; animation-delay: 1.7s, -6s; }
.shape-8 { right: 8%; bottom: 35%; animation-delay: 1.9s, -2.5s; }

@keyframes shapeAppear {
  to { opacity: 0.9; }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(12px, -18px) rotate(8deg) scale(1.05);
  }
  50% {
    transform: translate(-10px, -10px) rotate(-6deg) scale(0.98);
  }
  75% {
    transform: translate(6px, -22px) rotate(4deg) scale(1.02);
  }
}

/* Main card */
.card {
  position: relative;
  z-index: 3;
  max-width: 520px;
  width: 100%;
  animation: cardEnter 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(40px) scale(0.92);
}

.card.card-visible {
  animation: cardGlow 4s ease-in-out infinite;
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardGlow {
  0%, 100% { filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.2)); }
  50% { filter: drop-shadow(0 24px 70px rgba(212, 168, 83, 0.25)); }
}

.card-inner {
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.card-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(232, 160, 160, 0.4), transparent 40%, rgba(212, 168, 83, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: shimmer 3s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.title-wrap {
  margin-bottom: 0.5rem;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.3;
  min-height: 1.4em;
  color: #0d080e;
  text-shadow: 0 1px 2px rgba(255, 248, 240, 0.6), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.typing-cursor {
  display: inline-block;
  color: #2a1a2c;
  font-weight: 400;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
  text-shadow: 0 1px 2px rgba(255, 248, 240, 0.5);
}

.typing-cursor.hidden {
  display: none;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.subtitle {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  min-height: 1.5em;
  opacity: 0;
  color: #2a1a2c;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 248, 240, 0.6), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.subtitle.visible {
  opacity: 1;
}

#messageLine {
  min-height: 4.5em;
}

#messageLine.visible .typing-cursor {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.message {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  opacity: 0;
  color: #352535;
  text-shadow: 0 1px 2px rgba(255, 248, 240, 0.5), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.message.visible {
  opacity: 1;
}

.wish-btn {
  display: block;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-cream);
  background: linear-gradient(135deg, var(--color-rose), var(--color-gold));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
}

.wish-btn.visible {
  animation: wishBtnAppear 0.6s ease-out forwards, wishBtnPulse 2.5s ease-in-out 0.8s infinite;
}

@keyframes wishBtnAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wishBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4); }
  50% { box-shadow: 0 6px 28px rgba(212, 168, 83, 0.55); }
}

.wish-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(212, 168, 83, 0.5);
}

.wish-btn:active {
  transform: scale(0.98);
}

.watch-again-btn {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.45rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d1b2e;
  background: transparent;
  border: 1px solid rgba(45, 27, 46, 0.35);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
}

.watch-again-btn.visible {
  opacity: 1;
}

.watch-again-btn:hover {
  background: rgba(45, 27, 46, 0.08);
  transform: scale(1.03);
}

.watch-again-btn:active {
  transform: scale(0.98);
}

.made-with-love {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(18, 17, 18, 0.55);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(255, 248, 240, 0.5);
  pointer-events: none;
}

/* Confetti container */
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-10vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Card deck – 10 images in a circle + Birthday girl!! banner */
.floating-images-container .card-deck-banner,
.floating-images-container .card-deck-circle {
  opacity: 0;
  visibility: hidden;
}

.floating-images-container.deck-visible .card-deck-banner,
.floating-images-container.deck-visible .card-deck-circle {
  opacity: 1;
  visibility: visible;
}

.floating-images-container {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.card-deck-banner {
  pointer-events: auto;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  padding: 0.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(232, 160, 160, 0.95), rgba(212, 168, 83, 0.95));
  color: #fff;
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(212, 168, 83, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.3) inset;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: bannerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards, bannerGlow 3s ease-in-out 1s infinite;
}

@keyframes bannerPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bannerGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(212, 168, 83, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3) inset; }
  50% { box-shadow: 0 12px 40px rgba(212, 168, 83, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.4) inset; }
}

.card-deck-circle {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 90vw;
  max-height: 90vw;
  pointer-events: auto;
}

.card-deck-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  max-width: min(22vw, 100px);
  max-height: min(22vw, 100px);
  margin-left: -50px;
  margin-top: -50px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  transform: translate(0, 0) scale(0.2) rotate(0deg);
  animation: cardDeckThrowIn 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0s;
}

.card-deck-image:hover {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.15) rotate(var(--rot, 0deg));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(212, 168, 83, 0.6),
    0 0 40px rgba(212, 168, 83, 0.35);
  z-index: 10;
}

.card-deck-image:active {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.08) rotate(var(--rot, 0deg));
}

/* Big image overlay when a card is clicked */
.card-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.card-zoom-overlay[hidden] {
  display: none;
}

.card-zoom-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 16;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.card-zoom-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.card-zoom-image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: cardZoomIn 0.3s ease-out;
}

@keyframes cardZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 520px) {
  .card-deck-circle {
    width: 360px;
    height: 360px;
  }
  .card-deck-image {
    width: 72px;
    height: 72px;
    margin-left: -36px;
    margin-top: -36px;
    max-width: 72px;
    max-height: 72px;
  }
}

@keyframes cardDeckThrowIn {
  from {
    opacity: 0;
    transform: translate(0, 0) scale(0.25) rotate(0deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate(var(--tx, 0), var(--ty, 0)) scale(1) rotate(var(--rot, 0deg));
    filter: blur(0);
  }
}

/* Surprise button - bottom right */
.surprise-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 5;
  padding: 0.4rem 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-deep);
  background: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(212, 168, 83, 0.5);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.surprise-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 248, 240, 1);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}

.surprise-btn:active {
  transform: scale(0.98);
}

.surprise-btn {
  animation: surpriseFloat 3s ease-in-out infinite;
}

@keyframes surpriseFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.surprise-btn:hover {
  animation: none;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(45, 27, 46, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: rgba(255, 248, 240, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: cardEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Secret message: frosted glass, scrollable so full message is visible */
.modal-box-secret {
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 248, 240, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.modal-box-secret .modal-title {
  color: rgba(255, 248, 240, 0.98);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.modal-box-secret .secret-message {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 248, 240, 0.95);
  margin: 0.75rem 0 1rem;
  padding: 0 0.5rem 0.25rem;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  animation: secretMessageFade 0.6s ease-out;
  overflow-y: auto;
  max-height: 50vh;
  min-height: 3em;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, 0.5) transparent;
}

.modal-box-secret .secret-message::-webkit-scrollbar {
  width: 6px;
}

.modal-box-secret .secret-message::-webkit-scrollbar-track {
  background: transparent;
}

.modal-box-secret .secret-message::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.4);
  border-radius: 3px;
}

.modal-box-secret .secret-signature {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 248, 240, 0.85);
  text-align: right;
  letter-spacing: 0.04em;
}

.modal-box-secret .secret-modal-actions {
  flex-shrink: 0;
}

@keyframes secretMessageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.secret-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-box-secret .modal-btn-moments {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.modal-box-secret .modal-btn-moments:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-box-secret .modal-btn-ok {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.modal-box-secret .modal-btn-ok:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-box-secret .modal-btn-video {
  background: rgba(212, 168, 83, 0.35);
  color: #fff;
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-box-secret .modal-btn-video:hover {
  background: rgba(212, 168, 83, 0.5);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
}

/* Video overlay – 2 videos side by side, play one after another */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  gap: 1.25rem;
}

.video-overlay[hidden] {
  display: none;
}

.video-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.video-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.video-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 100%;
}

.video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.video-overlay video {
  max-width: 42vw;
  max-height: 55vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.video-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Nunito', sans-serif;
}

.video-play-sequence {
  padding: 0.65rem 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-rose), var(--color-gold));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-play-sequence:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.45);
}

.video-play-sequence:active {
  transform: scale(0.98);
}

@media (max-width: 700px) {
  .video-tray {
    flex-direction: column;
  }
  .video-overlay video {
    max-width: 90vw;
  }
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--color-deep);
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-pin-hint {
  font-size: 0.9rem;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1rem;
}

.pin-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  border: 2px solid rgba(212, 168, 83, 0.5);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.2em;
}

.pin-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

.modal-error {
  color: #c44;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.modal-error[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.modal-btn {
  padding: 0.5rem 1.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-btn-cancel {
  background: rgba(45, 27, 46, 0.12);
  color: var(--color-deep);
}

.modal-btn-ok {
  background: linear-gradient(135deg, var(--color-rose), var(--color-gold));
  color: var(--color-cream);
}

.modal-btn:hover {
  transform: scale(1.03);
}

.modal-btn:active {
  transform: scale(0.98);
}

/* Our Moments reel - fullscreen, faded, reel-style */
.reel-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(20, 12, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.reel-overlay.reel-open {
  opacity: 1;
  visibility: visible;
}

.reel-overlay[hidden] {
  display: none;
}

.reel-viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
}

.reel-thankyou {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 3;
}

.reel-thankyou[hidden] {
  display: none;
}

.reel-thankyou-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: rgba(255, 248, 240, 0.98);
  text-align: center;
  line-height: 1.75;
  max-width: 520px;
  width: 100%;
  margin: 0;
  padding: 2.25rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 248, 240, 0.12) 0%, rgba(45, 27, 46, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 168, 83, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  white-space: pre-line;
  overflow-y: auto;
  max-height: 75vh;
  -webkit-overflow-scrolling: touch;
  animation:
    reelThankyouIn 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) forwards,
    reelThankyouGlow 4s ease-in-out 1.5s infinite;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, 0.5) transparent;
}

.reel-thankyou-text::-webkit-scrollbar {
  width: 6px;
}

.reel-thankyou-text::-webkit-scrollbar-track {
  background: transparent;
}

.reel-thankyou-text::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.4);
  border-radius: 3px;
}

.reel-thankyou-text::before {
  content: '💝';
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  animation: reelThankyouHeart 2s ease-in-out infinite;
}

@keyframes reelThankyouIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes reelThankyouHeart {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes reelThankyouGlow {
  0%, 100% {
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(212, 168, 83, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.45),
      0 0 0 2px rgba(212, 168, 83, 0.35),
      0 0 40px rgba(212, 168, 83, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.reel-image {
  position: absolute;
  max-width: 92%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.reel-image.active {
  opacity: 1;
  z-index: 1;
  animation: reelImageIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reel-image.leaving {
  animation: reelImageOut 0.55s ease-out forwards;
}

/* Seamless crossfade: in and out same duration so no gap */
@keyframes reelImageIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
    filter: brightness(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

@keyframes reelImageOut {
  from {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96) translateY(-8px);
    filter: brightness(0.85);
  }
}

/* Special effect for 5th and 6th slide */
.reel-viewport.reel-special-moment .reel-image.active {
  animation: reelImageInSpecial 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(212, 168, 83, 0.4),
    0 0 60px rgba(212, 168, 83, 0.3);
}

.reel-viewport.reel-special-moment::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 40%,
    rgba(212, 168, 83, 0.08) 70%,
    transparent 100%
  );
  animation: reelSpecialGlow 2.5s ease-in-out infinite;
}

@keyframes reelImageInSpecial {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(0);
    filter: brightness(0.8);
  }
  50% {
    transform: scale(1.05) translateY(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

@keyframes reelSpecialGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Vignette / faded edges */
.reel-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.reel-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-cream);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reel-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.reel-mute {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reel-mute:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.reel-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
  overflow: hidden;
}

.reel-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-rose), var(--color-gold));
  border-radius: 0 2px 2px 0;
  width: 0%;
  transition: width 0.1s linear;
}

.reel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.reel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.2s;
}

.reel-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.reel-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.6);
}

.reel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reel-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.reel-arrow-prev {
  left: 1rem;
}

.reel-arrow-next {
  right: 1rem;
}

.reel-label {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .reel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .reel-arrow-prev { left: 0.5rem; }
  .reel-arrow-next { right: 0.5rem; }
  .reel-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; font-size: 1.5rem; }
  .reel-mute { top: 0.75rem; left: 0.75rem; width: 40px; height: 40px; font-size: 1.1rem; }
}

/* Responsive */
@media (max-width: 480px) {
  .card-inner {
    padding: 1.75rem 1.25rem;
  }

  .message {
    font-size: 0.95rem;
  }
}
