:root {
  --rose-gold: #f5cba7;
  --pastel-pink: #fadbd8;
  --soft-cream: #fef9e7;
  --blush: #f8c7cc;
  --berry: #c85c7d;
  --plum: #6c3a56;
  --brown: #5d4637;
  --gold: #eab676;
  --white: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.44);
  --shadow: 0 24px 80px rgba(126, 72, 83, 0.14);
  --shadow-soft: 0 12px 30px rgba(126, 72, 83, 0.12);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

/* --- Splash Screen --- */
.splash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #fffafa 0%, #fdeced 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.splash-screen__content {
  max-width: 600px;
  animation: splashPop 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
.splash-screen__hearts {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.splash-screen__hearts span {
  animation: floatHeart 2s ease-in-out infinite alternate;
}
.splash-screen__hearts span:nth-child(2) { animation-delay: 0.5s; }
.splash-screen__hearts span:nth-child(3) { animation-delay: 1s; }
.splash-screen__hearts span:nth-child(4) { animation-delay: 1.5s; }

.splash-screen__title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--berry);
  margin: 0 0 30px;
  line-height: 1.2;
}
.splash-screen__loader {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: rgba(200, 92, 125, 0.1);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}
.splash-screen__progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f70b4a, #f1af93);
  border-radius: 10px;
  animation: splashProgress 3s linear forwards;
}

@keyframes splashPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes floatHeart {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}
@keyframes splashProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

html { scroll-behavior: smooth; cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px;'><text y='20'>💖</text></svg>"), auto; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "Montserrat", sans-serif;
  color: var(--brown);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 40%), linear-gradient(180deg, #fffaf7 0%, #fff6f3 28%, #fef8f4 100%);
  overflow-x: hidden;
}

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

.site-shell { position: relative; isolation: isolate; }
.ambient-gradient, .star-field, .heart-trail, .sparkle-trail { position: fixed; inset: 0; pointer-events: none; }
.ambient-gradient { z-index: -3; background: radial-gradient(circle at 20% 20%, rgba(250, 219, 216, 0.9), transparent 35%), radial-gradient(circle at 80% 18%, rgba(245, 203, 167, 0.72), transparent 28%), radial-gradient(circle at 50% 100%, rgba(255, 240, 226, 0.86), transparent 35%); filter: blur(18px); animation: ambientShift 18s ease-in-out infinite alternate; }
@keyframes ambientShift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(0, -12px, 0) scale(1.04); } }

.star-field { z-index: -2; opacity: 0.48; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.2px), radial-gradient(circle, rgba(255, 239, 220, 0.9) 0 1.2px, transparent 1.4px); background-size: 180px 180px, 240px 240px; }

.section { width: min(100% - 32px, var(--max-width)); margin: 0 auto; padding: 40px 0; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.eyebrow, .kicker { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.75rem; font-weight: 700; color: rgba(108, 58, 86, 0.68); }

/* --- Hero Section --- */
.hero { min-height: 100svh; display: grid; align-items: center; gap: 40px; padding: 60px 0; }
.hero h1 { margin: 0; font-family: "Playfair Display", serif; color: var(--plum); font-size: clamp(3rem, 10vw, 5.6rem); line-height: 0.95; }
.hero h1 span { color: #b64672; position: relative; }
.hero h1 span::after { content: ""; position: absolute; left: 0; bottom: 0.16em; width: 100%; height: 0.22em; background: rgba(245, 203, 167, 0.4); z-index: -1; border-radius: 999px; }

.hero-portrait-card {
  position: relative;
  width: min(100%, 420px);
  padding: 16px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.hero-portrait-glow {
  position: absolute;
  inset: 10px;
  background: linear-gradient(180deg, rgba(250, 219, 216, 0.55), rgba(245, 203, 167, 0.12));
  border-radius: 30px;
  filter: blur(24px);
  z-index: -1;
}

.hero-portrait {
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(108, 58, 86, 0.2);
  width: 100%;
  height: auto;
}

.hero-backdrop-text {
  position: absolute;
  top: 20px;
  left: -20px;
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  color: var(--rose-gold);
  opacity: 0.6;
  transform: rotate(-15deg);
  z-index: 1;
}

.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; transition: all 0.25s ease; border: none; cursor: pointer; text-decoration: none; font-family: inherit; }
.button--primary { color: #fff8f4; background: linear-gradient(135deg, #f70b4a, #f1af93); box-shadow: 0 18px 34px rgba(200, 92, 125, 0.28); }
.button--ghost { color: var(--plum); background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(200, 92, 125, 0.12); backdrop-filter: blur(16px); }

/* --- Memory Journey --- */
.memory-journey { display: grid; gap: 80px; margin-top: 40px; position: relative; padding-bottom: 40px; }
.journey-item { display: flex; justify-content: center; position: relative; width: 100%; min-height: 200px; }
.journey-item:nth-child(even) { justify-content: flex-end; }
.journey-item:nth-child(odd) { justify-content: flex-start; }

.journey-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.journey-path-svg {
  fill: none;
  stroke: #ff4d6d; /* Vibrant Pink/Red */
  stroke-width: 4;
  stroke-dasharray: 10, 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 77, 109, 0.3));
}

.journey-card { width: min(100%, 420px); background: white; padding: 16px; border-radius: 32px; box-shadow: var(--shadow-soft); transition: transform 0.4s ease; transform: rotate(calc(var(--order) * 2deg - 1deg)); position: relative; z-index: 2; }
.journey-card:hover { transform: scale(1.04) rotate(0); }
.journey-card__image { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; background: #fffafa; }
.journey-card__image img { width: 100%; height: 100%; object-fit: contain; }
.journey-card__body h4 { font-family: "Dancing Script", cursive; font-size: 1.8rem; margin: 16px 0 8px; color: var(--berry); }

.memory-pager { text-align: center; margin-top: 40px; }
.memory-pager__status { font-size: 0.9rem; font-style: italic; color: var(--berry); margin-bottom: 12px; }

/* --- Flashcard Deck --- */
.flashcard-deck { position: relative; width: 100%; max-width: 440px; height: 560px; margin: 60px auto; perspective: 2000px; }
.flashcard { position: absolute; inset: 0; cursor: pointer; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.flashcard__polaroid { 
  background: white; 
  padding: 16px 16px 80px; 
  border-radius: 4px; 
  box-shadow: 0 15px 45px rgba(0,0,0,0.1); 
  height: 100%; 
  display: flex;
  flex-direction: column;
  position: relative;
}
.flashcard__image { 
  width: 100%; 
  flex-grow: 1;
  overflow: hidden; 
  border-radius: 2px; 
  background: #fffafa; 
  margin-bottom: 10px;
}
.flashcard__image img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
.flashcard__caption { 
  position: absolute; 
  bottom: 15px; 
  left: 0; 
  width: 100%; 
  text-align: center; 
  font-family: "Dancing Script", cursive; 
  font-size: 1.6rem; 
  color: var(--plum); 
  padding: 0 16px;
  line-height: 1.2;
}

/* --- Games --- */
.game-card { padding: 32px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); border: 2px solid rgba(255, 255, 255, 0.8); margin-top: 30px; }
.game-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 15px; }

.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.memory-card { aspect-ratio: 1; position: relative; transform-style: preserve-3d; transition: transform 0.6s; cursor: pointer; }
.memory-card.flipped { transform: rotateY(180deg); }
.memory-card__front, .memory-card__back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.memory-card__front { background: linear-gradient(135deg, #fce4ec, #f3e5f5); font-size: 2rem; }
.memory-card__back { background: white; transform: rotateY(180deg); overflow: hidden; border: 4px solid #fce4ec; }
.memory-card__back img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.memory-reveal, .hunt-reveal, .fortune-stage { display: none; margin-top: 30px; padding: 32px; border-radius: 32px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.5); border: 1px solid rgba(200, 92, 125, 0.1); }
.memory-reveal.active, .hunt-reveal.active, .fortune-stage:not(:empty) { display: block; animation: revealPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@keyframes revealPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.fortune-stage__card, .memory-reveal, .hunt-reveal { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; text-align: center; }

.memory-reveal__media, .hunt-reveal__image, .fortune-stage__image { 
  border-radius: 24px; 
  overflow: hidden; 
  box-shadow: 0 12px 40px rgba(0,0,0,0.08); 
  background: #fffafa; 
  width: 100%; 
  max-width: 360px; 
  margin: 0 auto;
}
.memory-reveal__media img, .hunt-reveal__image img, .fortune-stage__image img { 
  width: 100%; 
  height: auto; 
  display: block; 
  object-fit: contain; 
  max-height: 500px;
}

.memory-reveal__copy h4, .hunt-reveal__body h3, .fortune-stage__copy h4 {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem;
  color: var(--berry);
  margin: 0 0 12px;
}

.memory-reveal__copy p, .hunt-reveal__body p, .fortune-stage__copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--brown);
  margin: 0;
}

.hunt-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hunt-tile { aspect-ratio: 1; background: #f0faff; border-radius: 20px; cursor: pointer; position: relative; overflow: hidden; box-shadow: var(--shadow-soft); }
.hunt-tile__cover { position: absolute; inset: 0; background: #e3f2fd; display: grid; place-items: center; font-size: 1.8rem; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; }
.hunt-tile.is-open .hunt-tile__cover { transform: scale(0) rotate(15deg); opacity: 0; }
.hunt-tile__icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; z-index: 1; }

.fortune-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.fortune-chip {
  padding: 12px 24px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--pastel-pink);
  color: var(--berry);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.fortune-chip:hover { transform: translateY(-3px); background: var(--pastel-pink); color: white; }

/* --- Video --- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.video-card { border-radius: 32px; overflow: hidden; background: white; box-shadow: var(--shadow); padding: 12px; }
.video-card__frame { border-radius: 24px; overflow: hidden; background: #000; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.video-card video { width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #000; }

/* --- Random Cartoon Stickers --- */
.cartoon-sticker {
  position: absolute;
  width: clamp(70px, 12vw, 110px);
  height: auto;
  pointer-events: none;
  z-index: 10;
  animation: float-around 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.12));
  /* Sticker Effect */
  padding: 5px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 0 4px white, 0 10px 25px rgba(0,0,0,0.1);
  transform: rotate(calc(var(--rotation, 0deg)));
}

.cartoon-sticker:nth-child(odd) { --rotation: -5deg; }
.cartoon-sticker:nth-child(even) { --rotation: 5deg; }

@keyframes float-around {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(15px, -15px) rotate(8deg) scale(1.05); }
}

/* --- Animations & Effects --- */
.sparkle { position: absolute; width: 24px; height: 24px; background: radial-gradient(circle, #fff 0%, transparent 70%); pointer-events: none; z-index: 100; border-radius: 50%; }
.confetti-piece { position: fixed; top: -20px; pointer-events: none; z-index: 1000; border-radius: 2px; }

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; text-align: left; }
  .memory-reveal, .hunt-reveal, .fortune-stage__card { grid-template-columns: 1fr 1.2fr; align-items: center; text-align: left; }
}

@media (max-width: 768px) {
  .hero { text-align: center; }
  .hero-portrait-card { width: 90%; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .hunt-board { grid-template-columns: repeat(3, 1fr); }
}

.finale { text-align: center; padding: 100px 20px; }
.surprise-button { padding: 24px 48px; font-size: 1.6rem; border-radius: 999px; background: linear-gradient(135deg, #ff80ab, #f48fb1); color: white; border: none; cursor: pointer; box-shadow: 0 15px 30px rgba(244, 143, 177, 0.4); font-weight: 800; font-family: inherit; }
.surprise-reveal.active { display: block; animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin-top: 40px; }
@keyframes popIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.accent-script { font-family: "Dancing Script", cursive; font-size: 1.8rem; color: var(--berry); margin-bottom: 10px; }
.surprise-quote { font-style: italic; color: var(--plum); margin: 20px 0; border-left: 4px solid var(--rose-gold); padding-left: 20px; }
.surprise-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.surprise-note { padding: 20px; border-radius: 20px; background: white; box-shadow: var(--shadow-soft); text-align: left; }
.surprise-note h4 { margin: 0 0 10px; color: var(--plum); }
