/* ========================================================
   CLIENT ROMANTIC SCRAPBOOK STYLESHEET
   Aesthetic: Moody Dark Canvas + Warm Cream Paper Scrapbook
   Inspired by: TikTok @digital.sunlit & Canva Love Scrapbooks
   ======================================================== */

@font-face {
  font-family: 'ReadymagScript';
  src: url('assets/fonts/readymag_script.woff2') format('woff2'),
       url('assets/fonts/readymag_script.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #fff7f7;
  --bg-dark-accent: #fcf1f3;
  --bg-scrapbook-cute: #fff7f7;
  --paper-cream: #faf7f2;
  --paper-cream-darker: #f2ece1;
  --paper-kraft: #e7dfd1;
  --ink-black: #1d1b1a;
  --ink-subtle: #57524e;
  --ink-burgundy: #6e1c2b;
  --film-burgundy: #4a0e17;
  --accent-pink: #f27289;
  --accent-gold: #e2b153;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-calligraphy: 'Great Vibes', 'Alex Brush', cursive;
  --font-handwriting: 'Caveat', cursive;
  --font-doodle: 'Patrick Hand', 'Caveat', cursive;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --envelope-pink: #fbb6ce;
  --envelope-dark-pink: #f472b6;
  --envelope-crimson: #d91b3e;
  --shadow-realistic: 0 12px 35px rgba(180, 130, 145, 0.22), 0 3px 10px rgba(0, 0, 0, 0.08);
  --shadow-sticker: 0 8px 20px rgba(190, 130, 150, 0.24);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  cursor: url('assets/pink_cursor.svg') 2 2, auto;
}

body.scrapbook-body {
  background-color: #faf7f2;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(255, 235, 240, 0.6) 0%, transparent 55%),
    radial-gradient(circle at 12% 40%, rgba(254, 243, 199, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 88% 55%, rgba(252, 231, 243, 0.45) 0%, transparent 45%),
    linear-gradient(to bottom, #faf7f2 0%, #f7f3ed 50%, #f5efe8 100%);
  color: #3d3028;
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  cursor: url('assets/pink_cursor.svg') 2 2, auto;
}

button, a, .clickable, .journal-polaroid-frame, .alexia-pill-btn, .btn-canva-open-main,
.patch-denim-img, .music-pill-btn, .cover-reopen-pill-btn, .snap-dot {
  cursor: url('assets/pink_cursor.svg') 2 2, pointer !important;
}

/* Ambient Grain / Noise Texture */
body.scrapbook-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Proportional Editorial Sections (Full Screen Feel without overflow cuts) */
.alexia-snap-section,
.alexia-desk-section,
.alexia-page2-section,
.alexia-gallery-section,
.alexia-game-section {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
}

/* ==========================================================================
   Smooth Elegant Scroll Popup Transition (Sections 3, 4, 5)
   ========================================================================== */
section.popup-scroll-section {
  opacity: 0;
  transform: translateY(48px) scale(0.95);
  filter: blur(4px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s ease;
  will-change: opacity, transform, filter;
}

section.popup-scroll-section.section-popup-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  section.popup-scroll-section {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Floating Side Pagination Dots (Snap Nav) */
.side-snap-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.snap-dot {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.snap-dot-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.4);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.snap-dot:hover .snap-dot-circle,
.snap-dot.active .snap-dot-circle {
  background: #ff3366;
  transform: scale(1.45);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.7);
}

.snap-dot-tooltip {
  position: absolute;
  right: 28px;
  background: rgba(43, 30, 35, 0.88);
  color: #ffffff;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.snap-dot:hover .snap-dot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .side-snap-nav {
    right: 8px;
    gap: 10px;
  }
  .snap-dot-tooltip {
    display: none;
  }
}

/* Main Container */
.scrapbook-main-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* ==========================================
   MUSIC CONTROLLER WIDGET
   ========================================== */
.music-pill-widget {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
}

.music-pill-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 114, 137, 0.4);
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a2830;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(220, 150, 170, 0.25);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-pill-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(242, 114, 137, 0.65);
  box-shadow: 0 10px 24px rgba(242, 114, 137, 0.3);
}

.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.music-visualizer .bar {
  width: 3px;
  background: var(--accent-pink);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.music-visualizer.playing .bar-1 { animation: soundBar 0.9s infinite ease-in-out alternate; }
.music-visualizer.playing .bar-2 { animation: soundBar 1.2s infinite ease-in-out alternate 0.2s; }
.music-visualizer.playing .bar-3 { animation: soundBar 0.8s infinite ease-in-out alternate 0.4s; }
.music-visualizer.playing .bar-4 { animation: soundBar 1.1s infinite ease-in-out alternate 0.1s; }

@keyframes soundBar {
  0% { height: 4px; }
  100% { height: 16px; }
}

.music-pill-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #5c2734;
}

/* Audio Toast Prompt */
.audio-prompt-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(25, 25, 28, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 114, 137, 0.35);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 990;
  pointer-events: none;
}

.audio-prompt-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
.scrapbook-section {
  position: relative;
  margin-bottom: 120px;
}

/* Common Sticker Flowers */
.sticker-flower {
  position: absolute;
  filter: drop-shadow(var(--shadow-sticker));
  pointer-events: none;
  z-index: 10;
  transition: transform 0.4s ease;
}

/* ==========================================
   FULLSCREEN VINTAGE NEWSPAPER COVER SCREEN
   Ref: Canva TikTok Birthday Screen with Aisha Kecil
   ========================================== */
.newspaper-cover-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.85s;
}

.newspaper-cover-overlay.cover-opened {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
  visibility: hidden;
  display: none !important;
}

.newspaper-bg-layer {
  position: fixed;
  inset: 0;
  background-image: url('assets/kertas_lecek_cover.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(1.02) contrast(1.06);
  z-index: 1;
}

.newspaper-vignette-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(246, 240, 228, 0.15) 60%, rgba(70, 52, 35, 0.22) 100%);
  pointer-events: none;
  z-index: 2;
}

.newspaper-cover-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  width: 100%;
  max-width: 620px;
  margin: auto;
  text-align: center;
  user-select: none;
}

.cover-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cover-center-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.cover-aisha-holder {
  width: clamp(210px, 32vw, 275px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s ease;
}

.cover-aisha-holder:hover {
  transform: scale(1.03);
}

.cover-aisha-pic {
  width: 100%;
  height: auto;
  display: block;
}

/* Birthday cake placed right under chin/chest so Aisha's face is 100% visible! */
.cover-cake-holder {
  width: clamp(220px, 34vw, 280px);
  margin-top: -65px;
  position: relative;
  z-index: 4;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.32));
  transition: transform 0.3s ease;
}

.cover-cake-holder:hover {
  transform: scale(1.04);
}

.cover-cake-pic {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   ANIMATED CANDLE FLAMES (ALIVE, GLOWING & FLICKERING)
   ======================================================== */
.cake-candles-flames {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.candle-flame-wrapper {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

/* Exact Coordinates Matching Candle Wicks */
.flame-pos-1 { left: 35.9%; top: 14.1%; } /* Yellow candle */
.flame-pos-2 { left: 42.0%; top: 15.3%; } /* Blue candle */
.flame-pos-3 { left: 50.4%; top: 11.5%; } /* Pink candle (center) */
.flame-pos-4 { left: 58.8%; top: 15.3%; } /* Green candle */
.flame-pos-5 { left: 65.2%; top: 13.2%; } /* Orange candle */

/* Glowing Warm Aura around each flame */
.flame-glow-aura {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 20%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.55) 0%, rgba(255, 80, 0, 0.25) 45%, transparent 75%);
  pointer-events: none;
  animation: auraPulse 1.6s ease-in-out infinite alternate;
}

/* The Animated Realistic Teardrop Candle Flame */
.candle-flame {
  position: relative;
  width: 13px;
  height: 27px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: linear-gradient(to bottom, #ffffff 0%, #fff275 20%, #ff9800 65%, #ff2a00 95%);
  transform-origin: 50% 95%;
  filter: drop-shadow(0 0 5px #ff9900) drop-shadow(0 0 12px #ff4500);
}

.flame-pos-3 .candle-flame {
  width: 14px;
  height: 30px; /* Center pink candle flame is slightly taller */
}

/* White Hot Core */
.flame-core {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 14px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: #ffffff;
  opacity: 0.95;
  filter: drop-shadow(0 0 2px #ffffff);
}

/* Cyan/Blue Base at the wick connection */
.flame-blue-base {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 180, 255, 0.85);
  filter: blur(0.5px);
}

/* Independent Flickering and Swaying Animations for Each Flame */
.flame-anim-1 {
  animation: flameFlickerA 1.15s ease-in-out infinite alternate;
}

.flame-anim-2 {
  animation: flameFlickerB 0.92s ease-in-out infinite alternate -0.3s;
}

.flame-anim-3 {
  animation: flameFlickerC 1.35s ease-in-out infinite alternate -0.6s;
}

.flame-anim-4 {
  animation: flameFlickerA 1.05s ease-in-out infinite alternate -0.4s;
}

.flame-anim-5 {
  animation: flameFlickerB 1.22s ease-in-out infinite alternate -0.15s;
}

@keyframes flameFlickerA {
  0% {
    transform: rotate(-1.5deg) scale(1, 1);
  }
  25% {
    transform: rotate(2deg) scale(0.94, 1.08) skewX(2deg);
  }
  50% {
    transform: rotate(-2.5deg) scale(1.05, 0.94) skewX(-1.5deg);
  }
  75% {
    transform: rotate(3deg) scale(0.92, 1.1) skewX(2.5deg);
  }
  100% {
    transform: rotate(-1deg) scale(1.03, 0.97);
  }
}

@keyframes flameFlickerB {
  0% {
    transform: rotate(2deg) scale(1, 1);
  }
  30% {
    transform: rotate(-3deg) scale(1.06, 0.93) skewX(-2deg);
  }
  60% {
    transform: rotate(2.5deg) scale(0.93, 1.12) skewX(2deg);
  }
  85% {
    transform: rotate(-1deg) scale(1.02, 0.96) skewX(-1deg);
  }
  100% {
    transform: rotate(1.5deg) scale(0.97, 1.04);
  }
}

@keyframes flameFlickerC {
  0% {
    transform: rotate(0deg) scale(1, 1);
  }
  20% {
    transform: rotate(-2deg) scale(0.95, 1.06) skewX(-1.5deg);
  }
  45% {
    transform: rotate(2.5deg) scale(1.04, 0.92) skewX(2deg);
  }
  70% {
    transform: rotate(-1.5deg) scale(0.93, 1.1) skewX(-1deg);
  }
  100% {
    transform: rotate(1deg) scale(1.02, 0.98);
  }
}

@keyframes auraPulse {
  0% {
    transform: translate(-50%, 20%) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, 20%) scale(1.15);
    opacity: 1;
  }
}

/* Hover effect on cake makes flames flare up playfully */
.cover-cake-holder:hover .candle-flame {
  filter: drop-shadow(0 0 8px #ffbb00) drop-shadow(0 0 18px #ff4500) drop-shadow(0 0 28px rgba(255, 60, 0, 0.5));
}

.cover-patch-col {
  width: clamp(75px, 12vw, 95px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 5;
}

.patch-col-left {
  transform: rotate(-10deg);
  margin-right: -15px;
  animation: floatPatchLeft 3.5s ease-in-out infinite;
}

.patch-col-right {
  transform: rotate(8deg);
  margin-left: -15px;
  animation: floatPatchRight 3.8s ease-in-out infinite 0.3s;
}

.cover-patch-col:hover {
  transform: scale(1.18) rotate(0deg) !important;
}

.patch-denim-img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-text-group {
  margin-top: 15px;
  z-index: 6;
}

.cover-title-script {
  font-family: 'Great Vibes', cursive;
  font-style: normal;
  font-size: clamp(3.8rem, 8.8vw, 5.6rem);
  font-weight: 400;
  color: #281a0e;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(40, 26, 14, 0.08);
  padding: 0 10px;
}

.cover-subtitle-name {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  color: #694b2f;
  margin-top: 2px;
  letter-spacing: 2px;
}

.cover-btn-wrapper {
  margin-top: 20px;
  z-index: 7;
}

.btn-canva-open-main {
  background: #2b394e;
  color: #ffffff;
  border: none;
  font-family: 'Cedarville Cursive', 'Nanum Pen Script', 'Caveat', cursive;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 8px 42px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(43, 57, 78, 0.45);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.btn-canva-open-main:hover {
  background: #1c2635;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 28px rgba(43, 57, 78, 0.65);
}

.btn-canva-open-main:active {
  transform: translateY(1px) scale(0.97);
}

/* Control buttons in header */
.cover-reopen-pill-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(210, 185, 160, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  color: #4a3425;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(180, 150, 130, 0.22);
  transition: all 0.25s ease;
}

.cover-reopen-pill-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(180, 150, 130, 0.32);
}


/* ==========================================================================
   ALEXIASRCHIVE OPEN JOURNAL SCRAPBOOK MAIN SCREEN
   Ref: TikTok @alexiasrchive & Readymag https://readymag.website/u304466439/5347869/
   ========================================================================== */

/* Clean Pure White Background as in Readymag */
body.alexia-theme-body {
  background: #ffffff !important;
  color: #3d3028 !important;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 3L11 20L14 13L21 10L4 3Z' fill='%23ff6088' stroke='%23ffffff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  padding: 0 !important;
  margin: 0 !important;
}

.alexia-journal-main {
  background: transparent !important;
  color: #3d3028 !important;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  padding: 0 !important;
  margin: 0 !important;
}

body.alexia-theme-body::before {
  display: none !important;
}

button, a, .clickable, .memory-card, .journal-polaroid-frame, .alexia-pill-btn, .dialog-close-btn, .cover-patch-col, .polaroid-frame, .rm-photo-frame-wrap, .rm-pill-action-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 3L11 20L14 13L21 10L4 3Z' fill='%23ff2e63' stroke='%23ffffff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, pointer !important;
}

/* ==========================================
   TOP MINIMALIST HEADER: aishasrchive <3
   ========================================== */
.alexia-header {
  padding-top: 18px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.alexia-brand-title {
  font-family: 'Cedarville Cursive', 'Caveat', cursive;
  font-size: 2.1rem;
  font-weight: 700;
  color: #ff6088;
  letter-spacing: 2.5px;
  margin: 0;
  text-shadow: 0 2px 8px rgba(255, 96, 136, 0.18);
}

/* Top Menu Widget removed per user request (single continuous scroll page) */

.alexia-desk-section {
  position: relative;
  height: 135vh;
  min-height: 135vh;
  width: 100%;
  display: block;
  margin-bottom: 22vh;
}

.alexia-desk-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  overflow: visible;
}

.alexia-desk-section .alexia-header {
  padding-top: 6px;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.alexia-desk-stage {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.readymag-canvas-wrapper {
  width: 1024px;
  height: 740px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transform-origin: top center;
  overflow: visible;
}

.readymag-canvas {
  width: 1024px;
  height: 740px;
  position: relative;
  transform-origin: top center;
  overflow: visible;
}

/* 31 Original Readymag Transparent Stickers (Clustered Halo & Scroll Dispersion) */
.rm-backdrop-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 300;
  transform-origin: 522px 310px;
  transform: scale(1.52);
  transition: transform 0.3s ease;
}

.rm-sticker-wrap {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  cursor: url('assets/pink_cursor.svg') 2 2, pointer !important;
  transform: translate(calc(var(--scatter-x, 0px) + var(--mouse-push-x, 0px)), calc(var(--scatter-y, 0px) + var(--mouse-push-y, 0px)));
  opacity: 1 !important;
}

.rm-sticker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(97, 88, 92, 0.16));
  transition: filter 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rm-sticker-wrap:hover .rm-sticker-img {
  filter: drop-shadow(0 10px 22px rgba(244, 63, 94, 0.42));
  transform: scale(1.15) !important;
}

/* ==========================================================================
   THE REAL OPEN 2-PAGE NOTEBOOK FROM READYMAG
   Enlarged for Prominent & Luxurious Display (Scale: 1.52)
   ========================================================================== */
.rm-notebook-container {
  position: absolute;
  left: 304px;
  top: 141px;
  width: 436px;
  height: 338px;
  z-index: 333;
  transform-origin: center center;
  transform: scale(1.52);
  filter: drop-shadow(0 22px 48px rgba(97, 88, 92, 0.34));
  user-select: none;
  background: transparent;
  transition: transform 0.3s ease;
}

.rm-notebook-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* LEFT PAGE: Scalloped frame + Aisha's portrait + doodles (Centered) */
.rm-page-left {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 200px;
  height: 314px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rm-photo-frame-wrap {
  position: relative;
  width: 140px;
  height: 150px;
  margin: -18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('assets/pink_cursor.svg') 2 2, pointer !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rm-photo-frame-wrap:hover {
  transform: scale(1.05) rotate(-2deg);
}

.rm-scallop-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 3;
  pointer-events: none;
}

.rm-portrait-holder {
  width: 84px;
  height: 104px;
  overflow: hidden;
  border-radius: 4px;
  background: #fdf2f4;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.rm-real-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Ruled paper line authentic crayon doodles on the left page */
.rm-left-doodles-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rm-doodle-asset {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 1px 1.5px rgba(244, 114, 182, 0.25));
  transition: transform 0.3s ease;
}

.rm-doodle-asset.d-1 { left: 22px; top: 14px; width: 14px; height: 16px; transform: rotate(-6deg); }
.rm-doodle-asset.d-2 { left: 90px; top: 10px; width: 15px; height: 30px; transform: rotate(3deg); }
.rm-doodle-asset.d-3 { right: 26px; top: 15px; width: 13px; height: 14px; transform: rotate(8deg); }
.rm-doodle-asset.d-4 { left: 22px; bottom: 46px; width: 13px; height: 15px; transform: rotate(-8deg); }
.rm-doodle-asset.d-5 { left: 56px; bottom: 25px; width: 16px; height: 17px; transform: rotate(12deg); }
.rm-doodle-asset.d-6 { right: 58px; bottom: 26px; width: 13px; height: 14px; transform: rotate(-5deg); }
.rm-doodle-asset.d-7 { right: 24px; bottom: 44px; width: 14px; height: 16px; transform: rotate(6deg); }

.rm-doodle-bday-tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'ReadymagScript', 'Cedarville Cursive', cursive;
  font-size: 12.5px;
  color: #df6980;
  font-weight: 400;
}

/* Center Crease Ribbon */
.rm-spine-ribbon {
  position: absolute;
  left: 213px;
  top: -8px;
  width: 10px;
  height: 354px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.rm-ribbon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

/* RIGHT PAGE: Welcome handwritten text + 4 pink pill buttons + footer */
.rm-page-right {
  position: absolute;
  left: 222px;
  top: 14px;
  width: 200px;
  height: 298px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 4px 12px 2px 10px;
  box-sizing: border-box;
}

.rm-welcome-text-box {
  margin-top: 4px;
  margin-bottom: 2px;
}

.rm-welcome-title {
  font-family: 'ReadymagScript', 'Cedarville Cursive', cursive;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #f27294;
  text-shadow: 0.5px 0.5px 1px rgba(244, 114, 182, 0.45), 0 0 1.5px rgba(251, 113, 133, 0.35);
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.rm-welcome-desc {
  font-family: 'ReadymagScript', 'Cedarville Cursive', cursive;
  font-size: 11px;
  line-height: 1.48;
  color: rgba(64, 48, 41, 0.78);
  margin: 0;
}

.rm-welcome-subdesc {
  font-family: 'ReadymagScript', 'Cedarville Cursive', cursive;
  font-size: 11px;
  line-height: 1.48;
  color: rgba(64, 48, 41, 0.78);
  margin-top: 10px;
}

/* Footer Signature & Email Doodle */
.rm-right-footer-box {
  margin-top: auto;
  padding-top: 1px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rm-footer-email-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rm-envelope-icon {
  width: 12px;
  height: 11px;
  object-fit: contain;
}

.rm-email-txt {
  font-family: 'ReadymagScript', 'Cedarville Cursive', cursive;
  font-size: 10px;
  color: rgba(64, 48, 41, 0.76);
}

.rm-footer-sig-row {
  text-align: right;
}

.rm-sig-txt {
  font-family: 'ReadymagScript', 'Cedarville Cursive', cursive;
  font-size: 11px;
  color: rgba(64, 48, 41, 0.76);
  font-weight: 400;
}

/* ==========================================================================
   SECTION 2: MINIMALIST PHOTOBOOTH STRIP + CURSIVE HANDWRITTEN LETTER
   Ref: Readymag Page 2 (Alexiasrchive Original Aesthetic)
   ========================================================================== */
.alexia-page2-section {
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  margin: 18vh auto 25vh;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(50px, 7vw, 100px);
  position: relative;
  z-index: 5;
  background: transparent;
}

@media (max-width: 820px) {
  .alexia-page2-section {
    flex-direction: column;
    gap: 32px;
    padding: 30px 20px;
  }
}

/* Subtle Hand-Drawn Sparkles & Hearts (Readymag Page 2 Doodles) */
.page2-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.page2-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.p2-doodle-img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 2px 4px rgba(244, 114, 182, 0.2));
  transition: transform 0.3s ease;
}

.p2-doodle-img.p2d-1 { left: 38px; top: 32px; width: 26px; height: 52px; transform: rotate(5deg); }
.p2-doodle-img.p2d-2 { left: 46%; top: 20px; width: 22px; height: 26px; transform: rotate(-8deg); }
.p2-doodle-img.p2d-3 { right: 48px; top: 18%; width: 23px; height: 24px; transform: rotate(10deg); }
.p2-doodle-img.p2d-4 { left: 50px; bottom: 42px; width: 28px; height: 29px; transform: rotate(-12deg); }
.p2-doodle-img.p2d-5 { left: 335px; top: 58px; width: 20px; height: 23px; transform: rotate(6deg); }
.p2-doodle-img.p2d-6 { right: 110px; bottom: 38px; width: 22px; height: 25px; transform: rotate(-4deg); }
.p2-doodle-img.p2d-7 { right: 36%; top: 38px; width: 19px; height: 22px; transform: rotate(15deg); }
.p2-doodle-img.p2d-8 { left: 41%; bottom: 22px; width: 24px; height: 48px; transform: rotate(-6deg); }

/* Left Column: Overlapping Photobooth Strips */
.alexia-photobooth-col {
  position: relative;
  width: 320px;
  height: 480px;
  flex-shrink: 0;
  z-index: 2;
}

/* Long 4-Frame Film Strip (Rotated -10deg) */
.photobooth-strip-long {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 145px;
  background: #ffffff;
  padding: 10px 10px 18px;
  border-radius: 2px;
  box-shadow: 0 12px 36px rgba(97, 88, 92, 0.16);
  transform: rotate(-10deg);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
  cursor: url('assets/pink_cursor.svg') 2 2, pointer !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.photobooth-strip-long:hover {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 18px 45px rgba(97, 88, 92, 0.24);
  z-index: 5;
}

/* Overlapping Short 2-Frame Film Strip (Rotated +9deg) */
.photobooth-strip-short {
  position: absolute;
  right: 18px;
  top: 145px;
  width: 125px;
  background: #ffffff;
  padding: 8px 8px 16px;
  border-radius: 2px;
  box-shadow: 0 14px 38px rgba(97, 88, 92, 0.22);
  transform: rotate(9deg);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
  cursor: url('assets/pink_cursor.svg') 2 2, pointer !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 3;
}

.photobooth-strip-short:hover {
  transform: rotate(5deg) scale(1.06);
  box-shadow: 0 20px 48px rgba(97, 88, 92, 0.28);
  z-index: 6;
}

.strip-frame-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1px;
  background: #f7f3ee;
}

.strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: grayscale(0.2) sepia(0.12) contrast(1.05);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.strip-frame-item:hover .strip-img {
  filter: grayscale(0) sepia(0) contrast(1);
  transform: scale(1.08);
}

/* Right Column: Pure Cursive Handwritten Letter (Readymag Style) */
.alexia-letter-col {
  flex: 1;
  max-width: 740px;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 10px 0;
}

.alexia-letter-cursive {
  font-family: 'ReadymagScript', 'Cedarville Cursive', 'Homemade Apple', cursive;
  font-size: clamp(23px, 2.3vw, 28px);
  line-height: 1.95;
  color: #2c1e18;
  letter-spacing: 0.2px;
  word-spacing: 2px;
  margin: 0;
  text-align: left;
  user-select: text;
  transition: color 0.2s ease;
}

.alexia-letter-cursive:hover {
  color: #120b08;
}

/* Animated Cat Sticker near sweet treats */
.letter-cat-sticker {
  position: absolute;
  right: -10px;
  bottom: -56px;
  width: 138px;
  height: auto;
  z-index: 5;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 6px 16px rgba(97, 88, 92, 0.18));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.letter-cat-sticker:hover {
  transform: scale(1.12) rotate(-5deg) translateY(-4px);
  filter: drop-shadow(0 10px 24px rgba(244, 114, 182, 0.4));
}

.letter-cat-gif {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

@media (max-width: 768px) {
  .letter-cat-sticker {
    right: 4px;
    bottom: -40px;
    width: 105px;
  }
}

/* ==========================================================================
   IN-PAGE SCROLL SECTIONS (Single Continuous Scroll Experience)
   ========================================================================== */
.alexia-scroll-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto !important;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.alexia-gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 40px 24px;
  margin-top: 25vh !important;
  margin-bottom: 25vh !important;
  min-height: 90vh;
  position: relative;
  transition: opacity 0.8s ease;
}

.alexia-gallery-section .scroll-section-header {
  text-align: center;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.alexia-gallery-section.section-revealed .scroll-section-header {
  opacity: 1;
  transform: translateY(0);
}

.section-tag-pill {
  display: inline-block;
  background: #fff0f5;
  color: #db2777;
  border: 1.5px dashed #f472b6;
  border-radius: 999px;
  padding: 5px 18px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(244, 114, 182, 0.15);
}

.scroll-section-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #be185d;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(255, 96, 136, 0.12);
}

.scroll-section-desc {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: #7b6256;
  margin: 0;
}

.in-page-sheet {
  background: #fefdf9;
  border: 1px solid rgba(220, 195, 175, 0.6);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(97, 88, 92, 0.08);
  padding: 44px 38px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .alexia-scroll-section {
    margin: 90px auto;
    padding: 0 16px;
  }
  .in-page-sheet {
    padding: 28px 20px;
    border-radius: 18px;
  }
}

.dialog-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #666;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
}

.dialog-close-btn:hover {
  background: #f43f5e;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
}

/* Paper Stationery Letter Sheet */
.paper-letter-dialog {
  background: #fefdf9;
  border: 1px solid rgba(220, 195, 175, 0.8);
}

.stationery-letter-sheet {
  padding: 36px 30px;
  font-family: 'Patrick Hand', 'Gaegu', cursive;
  color: #4a3427;
}

.letter-modal-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4.5vw, 2.3rem);
  color: #df6980;
  margin-top: 0;
  margin-bottom: 20px;
}

.letter-modal-body p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-postit-note {
  position: relative;
  background: linear-gradient(135deg, #fffdf0 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
  padding: 16px 20px 14px;
  border-radius: 6px 6px 16px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: rotate(-1.5deg);
  margin: 20px 0;
}

.postit-washi {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: rgba(254, 205, 211, 0.88);
}

.postit-msg {
  font-size: 1.15rem;
  color: #854d0e;
  margin: 0;
}

.postit-by {
  display: block;
  text-align: right;
  font-weight: 700;
  color: #b45309;
  margin-top: 6px;
}

.letter-modal-highlight {
  font-weight: 700;
  color: #e11d48;
}

.letter-modal-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.letter-sign-col {
  display: flex;
  flex-direction: column;
}

.sign-tag { font-size: 1.1rem; color: #8c6858; }
.sign-person { font-size: 1.5rem; color: #df6980; font-family: 'Caveat', cursive; }

.letter-minion-wrap {
  position: relative;
  width: 95px;
  cursor: pointer;
  animation: minionLeftRightSway 2.4s ease-in-out infinite;
}

.minion-dialog-pic {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

@keyframes minionLeftRightSway {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  18% { transform: translateX(-10px) translateY(-5px) rotate(-10deg); }
  34% { transform: translateX(-4px) translateY(1px) rotate(-4deg); }
  50% { transform: translateX(0) translateY(0) rotate(0deg); }
  68% { transform: translateX(10px) translateY(-5px) rotate(10deg); }
  84% { transform: translateX(4px) translateY(1px) rotate(4deg); }
  100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

.minion-sparkle {
  position: absolute;
  font-size: 1.1rem;
  pointer-events: none;
  animation: sparkleTwinkle 2s infinite ease-in-out;
}
.minion-sparkle.sp-1 { top: -8px; left: 0; }
.minion-sparkle.sp-2 { top: -6px; right: 0; animation-delay: 0.5s; }
.minion-sparkle.sp-3 { bottom: 10px; left: -10px; animation-delay: 1s; }

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Gallery Dialog Sheet */
.gallery-dialog {
  background: #fdfaf6;
}

.gallery-dialog-sheet {
  padding: 30px 24px;
}

.gallery-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.gallery-dialog-title {
  font-family: 'Caveat', 'Gaegu', cursive;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  color: #df6980;
  margin: 0 0 4px;
}

.gallery-dialog-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: #7b6256;
  margin: 0;
}

.gallery-polaroid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 68px 52px;
  width: 100%;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 24px 20px 48px;
  position: relative;
  z-index: 3;
}

@media (max-width: 992px) {
  .gallery-polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
    max-width: 720px;
  }
}

@media (max-width: 580px) {
  .gallery-polaroid-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 330px;
  }
}

.polaroid-frame {
  position: relative;
  background: #ffffff;
  padding: 11px 11px 16px;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11), 0 3px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  opacity: 0;
  transform: translateY(48px) scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.2), box-shadow 0.35s ease, z-index 0.2s ease;
  user-select: none;
}

.gallery-polaroid-grid.polaroids-revealed .polaroid-frame {
  opacity: 1;
}

/* Organic Scattered ("Ditebar") Offsets & Rotations with Staggered Entrance */
.gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(1) {
  transform: rotate(-4.2deg) translateY(-14px) translateX(-14px);
  transition-delay: 0.08s;
  z-index: 2;
}

.gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(2) {
  transform: rotate(2.8deg) translateY(-20px) translateX(0px);
  transition-delay: 0.20s;
  z-index: 3;
}

.gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(3) {
  transform: rotate(-3.5deg) translateY(-12px) translateX(14px);
  transition-delay: 0.32s;
  z-index: 1;
}

.gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(4) {
  transform: rotate(3.6deg) translateY(18px) translateX(-12px);
  transition-delay: 0.44s;
  z-index: 3;
}

.gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(5) {
  transform: rotate(-2.8deg) translateY(22px) translateX(2px);
  transition-delay: 0.56s;
  z-index: 2;
}

.gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(6) {
  transform: rotate(4.8deg) translateY(16px) translateX(14px);
  transition-delay: 0.68s;
  z-index: 4;
}

.polaroid-frame:hover {
  transition-delay: 0s !important;
  transform: scale(1.08) rotate(0deg) translateY(-8px) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.10);
  z-index: 30 !important;
}

@media (max-width: 992px) {
  .gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(odd) {
    transform: rotate(-3deg) translateY(0) translateX(0);
  }
  .gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(even) {
    transform: rotate(3deg) translateY(6px) translateX(0);
  }
}

@media (max-width: 580px) {
  .gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(odd) {
    transform: rotate(-2deg) translateY(0) translateX(0);
  }
  .gallery-polaroid-grid.polaroids-revealed .polaroid-frame:nth-child(even) {
    transform: rotate(2deg) translateY(0) translateX(0);
  }
}

/* Asymmetric Hand-Taped Washi Placements */
.washi-tape {
  position: absolute;
  top: -12px;
  width: 72px;
  height: 22px;
  z-index: 10;
  opacity: 0.92;
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.gallery-polaroid-grid .polaroid-frame:nth-child(1) .washi-tape {
  left: 20%;
  transform: rotate(-8deg);
}

.gallery-polaroid-grid .polaroid-frame:nth-child(2) .washi-tape {
  left: 48%;
  transform: rotate(4deg);
}

.gallery-polaroid-grid .polaroid-frame:nth-child(3) .washi-tape {
  right: 18%;
  left: auto;
  transform: rotate(10deg);
}

.gallery-polaroid-grid .polaroid-frame:nth-child(4) .washi-tape {
  left: 22%;
  transform: rotate(7deg);
}

.gallery-polaroid-grid .polaroid-frame:nth-child(5) .washi-tape {
  left: 45%;
  transform: rotate(-5deg);
}

.gallery-polaroid-grid .polaroid-frame:nth-child(6) .washi-tape {
  right: 20%;
  left: auto;
  transform: rotate(-9deg);
}

/* Subtle Scrapbook Doodles around Polaroid Wall */
.gallery-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.g-doodle-img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.3) rotate(0deg);
  filter: drop-shadow(0 2px 4px rgba(244, 114, 182, 0.2));
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alexia-gallery-section.section-revealed .g-doodle-img {
  opacity: 0.85;
}

.alexia-gallery-section.section-revealed .g-doodle-img.gd-1 { left: 45px; top: 12%; width: 24px; height: 28px; transform: rotate(-10deg) scale(1); transition-delay: 0.15s; }
.alexia-gallery-section.section-revealed .g-doodle-img.gd-2 { right: 68px; top: 18%; width: 22px; height: 23px; transform: rotate(8deg) scale(1); transition-delay: 0.3s; }
.alexia-gallery-section.section-revealed .g-doodle-img.gd-3 { left: 3%; bottom: 28%; width: 28px; height: 56px; transform: rotate(4deg) scale(1); transition-delay: 0.45s; }
.alexia-gallery-section.section-revealed .g-doodle-img.gd-4 { right: 4%; bottom: 22%; width: 30px; height: 31px; transform: rotate(-8deg) scale(1); transition-delay: 0.6s; }
.alexia-gallery-section.section-revealed .g-doodle-img.gd-5 { left: 30%; bottom: 3%; width: 22px; height: 25px; transform: rotate(6deg) scale(1); transition-delay: 0.75s; }
.alexia-gallery-section.section-revealed .g-doodle-img.gd-6 { right: 28%; top: 6%; width: 22px; height: 25px; transform: rotate(-12deg) scale(1); transition-delay: 0.9s; }

.tape-green { background: rgba(167, 243, 208, 0.92); }
.tape-pink { background: rgba(251, 207, 232, 0.92); }
.tape-yellow { background: rgba(254, 240, 138, 0.92); }
.tape-purple { background: rgba(233, 213, 255, 0.92); }

.polaroid-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #f4ece1;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.polaroid-frame:hover .polaroid-img {
  transform: scale(1.06);
}

.polaroid-caption {
  margin-top: 10px;
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: #3d3028;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SECTION 4: HEART JIGSAW PUZZLE (Exact TikTok @cillasspace Layout)
   ========================================================================== */
.alexia-game-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 90px;
  margin: 25vh auto 0 !important;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
}

.tiktok-puzzle-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 90px);
  width: 100%;
  max-width: 1040px;
  margin: auto 0;
}

@media (max-width: 820px) {
  .tiktok-puzzle-stage {
    flex-direction: column;
    gap: 32px;
  }
  .tiktok-puzzle-left {
    align-items: center !important;
    text-align: center;
    width: 100%;
  }
  .tiktok-puzzle-title {
    text-align: center !important;
    white-space: normal !important;
  }
  .tiktok-puzzle-hint {
    text-align: center !important;
  }
}

/* Left Column: Cursive Title, Pieces Tray, Divider & Minimalist Buttons */
.tiktok-puzzle-left {
  width: 410px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.tiktok-puzzle-title-wrap {
  margin-bottom: 16px;
  width: 100%;
}

.tiktok-puzzle-title {
  font-family: 'ReadymagScript', 'Cedarville Cursive', 'Homemade Apple', cursive;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  color: #241d1a;
  margin: 0;
  text-align: left;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tiktok-puzzle-hint {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: #7b6256;
  margin: 6px 0 0 0;
  text-align: left;
}

.tiktok-puzzle-tray-wrap {
  width: 100%;
  background: transparent;
  padding: 6px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.tiktok-puzzle-tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 14px;
  width: 100%;
  max-width: 320px;
  align-items: center;
}

.puzzle-piece-slot {
  width: 86px;
  height: 74px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px dashed rgba(220, 185, 185, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
}

.puzzle-piece-item {
  width: 86px;
  height: 74px;
  cursor: grab;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.puzzle-piece-item:hover {
  transform: scale(1.15) rotate(-2deg);
  z-index: 20;
}

.puzzle-piece-item.selected {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.9));
  animation: pieceWiggle 1s ease-in-out infinite;
  z-index: 25;
}

.puzzle-piece-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.22));
}

.tiktok-puzzle-divider {
  width: 260px;
  height: 1.5px;
  background: rgba(56, 48, 44, 0.25);
  margin: 18px 0 16px;
}

.tiktok-puzzle-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tiktok-btn-pill {
  border-radius: 999px;
  padding: 6px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.tiktok-btn-pill.btn-start {
  background: #c8ebb4;
  border: 1px solid #7bc564;
  color: #235c15;
  box-shadow: 0 3px 8px rgba(123, 197, 100, 0.25);
}

.tiktok-btn-pill.btn-start:hover {
  background: #bbf0a3;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(123, 197, 100, 0.4);
}

.tiktok-btn-pill.btn-reset {
  background: #f7a399;
  border: 1px solid #e26153;
  color: #7a1810;
  box-shadow: 0 3px 8px rgba(226, 97, 83, 0.25);
}

.tiktok-btn-pill.btn-reset:hover {
  background: #faa094;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(226, 97, 83, 0.4);
}

.puzzle-progress-pill {
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  font-weight: 700;
  color: #be185d;
  background: #fff0f5;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fbcfe8;
}

.heart-initial-group {
  transition: opacity 0.5s ease;
}

.heart-seam-lines-layer path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
  clip-path: url(#heartOuterClip);
}

/* Right Column: Heart Board */
.tiktok-puzzle-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-heart-board-wrap {
  width: 360px;
  height: 330px;
  position: relative;
}

.heart-puzzle-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 34px rgba(200, 30, 60, 0.25));
  transition: transform 0.4s ease;
}

.heart-base-bg {
  fill: #c5222f; /* Deep solid red matching TikTok video */
  transition: fill 0.4s ease;
}

.board-slot-target {
  fill: rgba(255, 255, 255, 0.04);
  stroke: #ffffff;
  stroke-width: 1.8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-slot-target:hover,
.board-slot-target.highlight {
  fill: rgba(255, 255, 255, 0.25);
  stroke: #ffffff;
  stroke-width: 2.5;
}

.board-slot-num {
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  fill: rgba(255, 255, 255, 0.6);
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}

.board-placed-piece {
  transition: opacity 0.3s ease;
  animation: pieceSnapAnim 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-outer-stroke {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  pointer-events: none;
}

.heart-puzzle-svg.all-solved {
  animation: heartSolvedPulse 1.8s ease-in-out infinite;
}

.heart-puzzle-svg.all-solved .heart-outer-stroke {
  stroke: #ffd700;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes heartSolvedPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 14px 32px rgba(225, 29, 72, 0.3)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 18px 40px rgba(255, 51, 102, 0.55)); }
}


/* Reward Modal */
.game-reward-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.game-reward-modal.active {
  opacity: 1;
  visibility: visible;
}

.reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reward-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #fffcfd 0%, #fff1f4 55%, #ffeaf0 100%);
  border-radius: 28px;
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: 0 26px 65px -10px rgba(225, 29, 72, 0.28), 0 10px 24px -5px rgba(0, 0, 0, 0.08);
  border: 2px solid #ffccd5;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.game-reward-modal.active .reward-card {
  transform: scale(1) translateY(0);
}

/* Cute Scrapbook Washi Tape Header */
.reward-washi-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 110px;
  height: 26px;
  background: rgba(255, 182, 193, 0.65);
  backdrop-filter: blur(2px);
  border-left: 2px dashed rgba(255, 255, 255, 0.7);
  border-right: 2px dashed rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
}

.reward-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  font-size: 1.1rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reward-close:hover {
  background: #ff4071;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
}

.reward-trophy-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2.8rem;
  margin-bottom: 8px;
  animation: trophyFloat 3s ease-in-out infinite;
}

.trophy-sparkle {
  font-size: 1.4rem;
  opacity: 0.85;
  animation: sparkleTwinkle 1.8s ease-in-out infinite;
}

.trophy-sparkle.right {
  animation-delay: 0.9s;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)); }
}

.reward-headline {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 5.5vw, 2.5rem);
  font-weight: 700;
  color: #ff3366;
  margin: 0 0 6px;
  text-shadow: 0 2px 10px rgba(255, 51, 102, 0.2);
}

.reward-subtitle {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* Aesthetic Vintage Love Ticket with Perforation Notches */
.love-voucher-card {
  position: relative;
  background: linear-gradient(135deg, #fff2f5 0%, #ffe8ed 50%, #fff0f3 100%);
  border: 2px dashed #f43f5e;
  border-radius: 20px;
  padding: 16px 20px 14px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 6px 18px -4px rgba(244, 63, 94, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.love-voucher-card.is-claimed {
  box-shadow: 0 8px 24px -2px rgba(225, 29, 72, 0.22), inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Semicircular Ticket Notches on Left and Right */
.ticket-notch {
  position: absolute;
  top: 64%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff2f6;
  border: 2px dashed #f43f5e;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.ticket-notch.notch-left {
  left: -13px;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ticket-notch.notch-right {
  right: -13px;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Rubber Stamp Effect */
.voucher-stamp {
  position: absolute;
  top: 46%;
  right: 18px;
  transform: translateY(-50%) rotate(-14deg) scale(2.6);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.voucher-stamp.stamped {
  opacity: 0.96;
  transform: translateY(-50%) rotate(-14deg) scale(1);
  animation: stampSlam 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stamp-inner {
  border: 3.5px double #be123c;
  border-radius: 12px;
  padding: 6px 14px;
  background: rgba(255, 241, 242, 0.92);
  box-shadow: 0 4px 16px rgba(190, 18, 60, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stamp-star {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #be123c;
  margin-bottom: 1px;
}

.stamp-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem;
  font-weight: 800;
  color: #be123c;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1;
}

.stamp-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  color: #9f1239;
  letter-spacing: 0.8px;
  margin-top: 3px;
}

@keyframes stampSlam {
  0% { transform: translateY(-50%) rotate(-32deg) scale(2.8); opacity: 0; }
  65% { transform: translateY(-50%) rotate(-12deg) scale(0.92); opacity: 1; }
  100% { transform: translateY(-50%) rotate(-14deg) scale(1); opacity: 0.96; }
}

/* Ticket Header Bar */
.voucher-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(244, 63, 94, 0.35);
}

.voucher-top-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #e11d48;
  text-transform: uppercase;
}

.voucher-serial {
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #be185d;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Ticket Body */
.voucher-body {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.voucher-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe4e9, #ffd1dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.voucher-details {
  flex: 1;
}

.voucher-title {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: #be185d;
  margin: 0 0 2px;
  line-height: 1.2;
}

.voucher-text {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Perforation Divider */
.ticket-perforation {
  position: relative;
  margin: 10px -20px 8px;
  border-top: 2px dashed rgba(244, 63, 94, 0.45);
}

/* Ticket Footer / Barcode */
.voucher-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.voucher-barcode-svg {
  width: 100%;
  max-width: 220px;
  height: 22px;
}

.svg-barcode {
  width: 100%;
  height: 100%;
  display: block;
}

.voucher-validity {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  color: #be185d;
  letter-spacing: 1.2px;
  opacity: 0.8;
}

/* Action Buttons */
.reward-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-claim-voucher {
  background: linear-gradient(135deg, #ff4071 0%, #f43f5e 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.4);
  transition: all 0.25s ease;
}

.btn-claim-voucher:hover:not(:disabled) {
  background: linear-gradient(135deg, #e02657 0%, #e11d48 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.5);
}

.btn-claim-voucher.claimed {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  opacity: 0.88;
  cursor: default;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
  transform: none;
}

.btn-play-again {
  background: #ffffff;
  color: #4b5563;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-play-again:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Sweet Pastel Toast Notification */
.claim-sweet-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4e9 100%);
  border: 1.5px solid #fecdd3;
  border-radius: 18px;
  padding: 12px 18px;
  margin-top: 18px;
  text-align: left;
  box-shadow: 0 10px 25px -4px rgba(244, 63, 94, 0.22);
  animation: toastSlideUp 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.claim-sweet-toast.hidden {
  display: none;
}

.toast-heart-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.18);
  animation: heartPulseToast 1.6s ease-in-out infinite;
}

.toast-text-box {
  display: flex;
  flex-direction: column;
}

.toast-main-msg {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  color: #be185d;
  line-height: 1.2;
}

.toast-sub-msg {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #831843;
  opacity: 0.88;
  margin-top: 2px;
}

@keyframes toastSlideUp {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heartPulseToast {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* In-Page Reward & Voucher Section */
.inpage-reward-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px dashed #fbcfe8;
  text-align: center;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.inpage-reward-wrap .love-voucher-card {
  margin-top: 20px;
}

/* Page Footer with Pink Gingham Ribbon (Thick & Flushed to Very Bottom Edge) */
.alexia-page-footer,
.alexia-game-section .alexia-page-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.footer-ribbon-bar {
  width: 100%;
  height: 84px;
  background-image: url('assets/readymag_ui/footer_ribbon.png');
  background-repeat: repeat-x;
  background-size: auto 84px;
  background-position: center bottom;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  box-shadow: 0 -3px 12px rgba(244, 114, 182, 0.15);
}

@media (max-width: 768px) {
  .footer-ribbon-bar {
    height: 64px;
    background-size: auto 64px;
  }
}

/* Photo Zoom Lightbox Modal */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 35000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 10, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-frame {
  background: #ffffff;
  padding: 14px 14px 18px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 520px;
}

.modal-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.modal-caption {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
  color: #2b2b2b;
  margin-top: 10px;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================== */
@media (max-width: 768px) {
  .alexia-top-menu-widget {
    top: 14px;
    left: 14px;
  }

  .pink-sew-btn {
    width: 40px;
    height: 40px;
  }

  .click-here-doodle {
    width: 90px;
  }

  .menu-cloud-btn {
    font-size: 1rem;
    padding: 6px 14px;
  }

  .alexia-desk-stage {
    padding: 10px 5px 60px;
    min-height: auto;
  }

  .book-cover-rim {
    flex-direction: column;
    padding: 12px;
  }

  .journal-page {
    border-radius: 12px !important;
    min-height: auto;
    padding: 22px 16px;
  }

  .page-left {
    border-right: none;
    border-bottom: 2px dashed rgba(220, 205, 185, 0.6);
  }

  .page-right {
    border-left: none;
    margin-top: 14px;
  }

  .journal-book-spine {
    display: none;
  }

  .photobooth-display-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .overlapping-mini-polaroid {
    transform: rotate(3deg) translateY(0);
  }

  .alexia-action-buttons {
    max-width: 100%;
  }

  .journal-backdrop-stickers {
    opacity: 0.55;
    transform: scale(0.85);
  }

  .gallery-polaroid-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   SECTION 5: "OPEN THIS WHEN...." MESSAGE JAR (Exact TikTok / Readymag Style)
   ========================================================================== */
.alexia-jar-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px 80px;
  margin: 18vh auto 0 !important;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.jar-stage-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.jar-stage-header {
  text-align: center;
  margin-bottom: 6px;
}

.jar-sub-badge {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: #a06e78;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.jar-main-heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: #382c28;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.jar-interactive-stage {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  grid-template-areas:
    "jar    card"
    "legend .   ";
  column-gap: clamp(32px, 5.5vw, 76px);
  row-gap: 20px;
  width: 100%;
  align-items: center;
}

/* Left Top Column: Mason Jar Vessel */
.jar-col-vessel {
  grid-area: jar;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Left Bottom Column: Mood Selector Legend */
.jar-col-legend {
  grid-area: legend;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mason-jar-container {
  position: relative;
  width: clamp(230px, 26vw, 290px);
  cursor: pointer;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mason-jar-container:hover {
  transform: translateY(-6px) scale(1.02);
}

.mason-jar-container:active {
  transform: scale(0.97);
}

.mason-jar-container.jar-jiggle-active {
  animation: jarJiggle 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes jarJiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(-3deg); }
  40% { transform: translateY(-4px) rotate(3deg); }
  60% { transform: translateY(-2px) rotate(-2deg); }
  80% { transform: translateY(-1px) rotate(1deg); }
}

.mason-jar-img-frame {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.mason-jar-glass-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(45, 30, 20, 0.08));
  pointer-events: auto;
}

/* Flying / Pulled Scroll Note (Ascends from jar bottom to jar mouth, fully interactive) */
.flying-scroll-wrap {
  position: absolute;
  bottom: var(--start-bottom, 22%);
  left: var(--start-left, 50%);
  width: 84px;
  height: 94px;
  pointer-events: none;
  cursor: pointer;
  z-index: 25;
  opacity: 0;
  display: none;
  transform: translate(-50%, 0) scale(0.44);
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.flying-scroll-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(35, 20, 15, 0.25));
}

.flying-scroll-hint-pill {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 2px 9px;
  border-radius: 12px;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.75rem;
  color: #a05a6c;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.flying-scroll-wrap:hover .flying-scroll-hint-pill {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* 1. Pull up from bottom to top animation */
.flying-scroll-wrap.scroll-pulling-up {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto;
  animation: pullScrollUpAnim 0.82s cubic-bezier(0.18, 0.9, 0.25, 1) forwards;
}

@keyframes pullScrollUpAnim {
  0% {
    opacity: 0.5;
    bottom: var(--start-bottom, 22%);
    left: var(--start-left, 50%);
    transform: translate(-50%, 0) scale(0.44) rotate(var(--start-rot, -15deg));
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  }
  22% {
    opacity: 1;
    bottom: calc(var(--start-bottom, 22%) + 18%);
    left: calc(var(--start-left, 50%) * 0.65 + 17%);
    transform: translate(-50%, 0) scale(0.54) rotate(calc(var(--start-rot, -15deg) * 0.6));
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
  }
  62% {
    opacity: 1;
    bottom: 66%;
    left: 51%;
    transform: translate(-50%, 0) scale(0.62) rotate(-8deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.20));
  }
  84% {
    opacity: 1;
    bottom: 88%;
    left: 52%;
    transform: translate(-50%, 0) scale(0.68) rotate(-14deg);
  }
  93% {
    opacity: 1;
    bottom: 95%;
    left: 53%;
    transform: translate(-50%, 0) scale(0.72) rotate(-22deg);
    filter: drop-shadow(0 14px 26px rgba(45, 25, 20, 0.28));
  }
  100% {
    opacity: 1;
    bottom: 92%;
    left: 53%;
    transform: translate(-50%, 0) scale(0.68) rotate(-18deg);
    filter: drop-shadow(0 8px 18px rgba(35, 20, 15, 0.22));
  }
}

/* 2. Hovering / Floating at top mouth of jar */
.flying-scroll-wrap.scroll-hovering-top {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto;
  bottom: 92%;
  left: 53%;
  transform: translate(-50%, 0) scale(0.68) rotate(-18deg);
  animation: scrollIdleFloat 2.6s ease-in-out infinite;
}

@keyframes scrollIdleFloat {
  0%, 100% {
    transform: translate(-50%, 0) scale(0.68) rotate(-18deg);
  }
  50% {
    transform: translate(-50%, -7px) scale(0.70) rotate(-13deg);
  }
}

.flying-scroll-wrap.scroll-hovering-top:hover {
  transform: translate(-50%, -8px) scale(0.74) rotate(-12deg);
  animation-play-state: paused;
}

/* Hop & Spin when clicked while hovering at top */
.flying-scroll-wrap.scroll-hop-active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto;
  animation: scrollHopSpin 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}

@keyframes scrollHopSpin {
  0% { transform: translate(-50%, 0) scale(0.68) rotate(-18deg); }
  45% { transform: translate(-50%, -18px) scale(0.76) rotate(14deg); }
  75% { transform: translate(-50%, -4px) scale(0.70) rotate(-22deg); }
  100% { transform: translate(-50%, 0) scale(0.68) rotate(-18deg); }
}

/* 3. Slide back down into jar when closed */
.flying-scroll-wrap.scroll-sliding-down {
  display: block !important;
  pointer-events: none;
  animation: slideScrollDownAnim 0.55s ease-in forwards;
}

@keyframes slideScrollDownAnim {
  0% {
    opacity: 1;
    bottom: 92%;
    left: 53%;
    transform: translate(-50%, 0) scale(0.68) rotate(-18deg);
  }
  40% {
    opacity: 1;
    bottom: 60%;
    left: 51%;
    transform: translate(-50%, 0) scale(0.55) rotate(-6deg);
  }
  100% {
    opacity: 0;
    bottom: var(--start-bottom, 22%);
    left: var(--start-left, 50%);
    transform: translate(-50%, 0) scale(0.38) rotate(var(--start-rot, -15deg));
  }
}

/* Interactive Scroll Click Zones inside the Jar */
.jar-scrolls-hitbox-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 15;
}

.scroll-pin-btn {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.25), filter 0.22s ease;
  padding: 0;
  z-index: 16;
}

.scroll-pin-btn:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 8px rgba(244, 63, 94, 0.45));
}

.scroll-pin-badge {
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.4) translateY(6px);
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.scroll-pin-btn:hover .scroll-pin-badge {
  opacity: 1;
  transform: scale(1.1) translateY(0);
}

/* Individual Hotspot Placement over the Scrolls */
.pin-pink-1 {
  left: 42%;
  bottom: 25%;
  width: 48px;
  height: 56px;
}

.pin-blue-1 {
  left: 16%;
  bottom: 24%;
  width: 46px;
  height: 56px;
}

.pin-yellow-1 {
  left: 27%;
  bottom: 20%;
  width: 44px;
  height: 54px;
}

.pin-yellow-2 {
  left: 54%;
  bottom: 24%;
  width: 46px;
  height: 56px;
}

.pin-pink-2 {
  left: 66%;
  bottom: 20%;
  width: 46px;
  height: 54px;
}

.pin-blue-2 {
  left: 48%;
  bottom: 16%;
  width: 46px;
  height: 52px;
}

.pin-pink-3 {
  left: 28%;
  bottom: 9%;
  width: 50px;
  height: 42px;
}

.pin-blue-3 {
  left: 62%;
  bottom: 14%;
  width: 48px;
  height: 46px;
}

.pin-yellow-3 {
  left: 77%;
  bottom: 22%;
  width: 46px;
  height: 54px;
}

.jar-tap-pill {
  margin-top: -8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px dashed rgba(220, 160, 175, 0.65);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.9rem;
  color: #8c5565;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  z-index: 10;
}

.mason-jar-container:hover .jar-tap-pill {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #f19eb0;
  box-shadow: 0 6px 16px rgba(240, 130, 160, 0.15);
}

/* "Open this when...." Legend (Exact TikTok Layout) */
.open-when-legend {
  width: 100%;
  max-width: 360px;
  margin-top: 0;
  padding-left: 10px;
  box-sizing: border-box;
}

.legend-title-row {
  margin-bottom: 8px;
}

.open-when-cursive-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 400;
  color: #40342e;
  margin: 0;
  letter-spacing: 0.02em;
}

.legend-mood-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-mood-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  font-family: inherit;
  outline: none;
}

.legend-mood-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.legend-mood-btn:focus-visible {
  outline: 2px solid #e78297;
}

.legend-mood-btn.active-mood {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(45, 30, 20, 0.07);
}

.legend-mood-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dot-pink {
  background: #ffb7c5;
  border: 1.5px solid #f68da2;
}

.dot-blue {
  background: #a9e0f6;
  border: 1.5px solid #77cbf1;
}

.dot-yellow {
  background: #fee67c;
  border: 1.5px solid #edd044;
}

.legend-mood-btn.active-mood .legend-mood-dot {
  transform: scale(1.22);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}

.legend-mood-text {
  font-family: 'Caveat', 'Playfair Display', cursive, serif;
  font-style: italic;
  font-size: 1.18rem;
  color: #554842;
  transition: color 0.2s ease;
}

.legend-mood-btn.active-mood .legend-mood-text {
  color: #2b211d;
  font-weight: 600;
}

/* Right Column: Realistic Paper Reminder Note (Vertically centered with Mason Jar) */
.jar-col-right {
  grid-area: card;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.jar-card-holder {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Real Paper Reminder Card */
.real-paper-reminder-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1138 / 504;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  transform: rotate(-0.6deg);
  box-sizing: border-box;
}

.real-paper-reminder-card.paper-anim-pop {
  animation: paperUnfoldPop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.22) forwards;
}

@keyframes paperUnfoldPop {
  0% {
    opacity: 0;
    transform: scale(0.88) rotate(3deg) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-0.6deg) translateY(0);
  }
}

/* Realistic Torn Paper Texture Image Base */
.real-paper-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 14px 28px rgba(45, 30, 20, 0.12));
  transition: opacity 0.3s ease;
}

/* Washi Tape Header */
.memo-card-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(180, 150, 155, 0.45);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

/* Real Paper Content Layer */
.real-paper-content-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7.5% 8.5% 6.5%;
  box-sizing: border-box;
}

.memo-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.98rem;
}

.memo-category-badge {
  color: #664f56;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.memo-index-badge {
  color: #8c7279;
  font-size: 0.9rem;
}

.memo-text-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
}

.memo-typewriter-text {
  font-family: 'Special Elite', 'Courier New', Courier, monospace;
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  line-height: 1.75;
  color: #2a1f1e;
  margin: 0;
  letter-spacing: 0.25px;
  width: 100%;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.12);
}

.memo-card-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(160, 130, 135, 0.28);
}

.memo-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  transition: all 0.25s ease;
  user-select: none;
}

.btn-draw-next {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(160, 120, 130, 0.32);
  border-radius: 24px;
  padding: 5px 16px;
  color: #443539;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-draw-next:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #e294a5;
  box-shadow: 0 6px 16px rgba(220, 110, 140, 0.14);
  color: #22181b;
}

.btn-draw-next:active {
  transform: scale(0.96);
}

.btn-put-back {
  background: transparent;
  padding: 5px 10px;
  border-radius: 18px;
  color: #7d656b;
}

.btn-put-back:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #2b1d21;
  transform: rotate(-8deg);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES (320px - 900px)
   Guarantees 100% zero horizontal overflow and no cut-off elements on phones!
   ========================================================================== */
@media (max-width: 900px) {
  /* Global Container Constraints */
  .alexia-snap-section {
    min-height: auto !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* SECTION 1: Desk / Open Journal Notebook */
  .alexia-desk-section {
    padding: 30px 12px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .alexia-desk-stage {
    width: 100% !important;
    max-width: 100vw !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .readymag-canvas-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .readymag-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  /* Hide scattered outer stickers on mobile so they don't push screen width */
  .rm-backdrop-stickers {
    display: none !important;
  }

  /* Center and gracefully scale the open journal notebook to fit the mobile screen width */
  .rm-notebook-container {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 10px auto !important;
    transform-origin: center center !important;
    transform: scale(clamp(0.68, 86vw / 436, 1)) !important;
    filter: drop-shadow(0 14px 28px rgba(97, 88, 92, 0.28)) !important;
  }

  /* SECTION 2: Photobooth + Cursive Letter */
  .alexia-page2-section {
    min-height: auto !important;
    margin: 10vh auto 14vh !important;
    padding: 20px 16px !important;
    flex-direction: column !important;
    gap: 36px !important;
  }

  .alexia-photobooth-col {
    width: 100% !important;
    max-width: 290px !important;
    height: 440px !important;
    margin: 0 auto !important;
  }

  .alexia-letter-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    text-align: center !important;
  }

  .alexia-letter-cursive {
    font-size: clamp(20px, 5.2vw, 24px) !important;
    line-height: 1.85 !important;
  }

  /* SECTION 3: Polaroid Collection */
  .alexia-gallery-section {
    padding: 30px 12px 50px !important;
    min-height: auto !important;
  }

  .gallery-polaroid-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    max-width: 290px !important;
    margin: 10px auto 0 !important;
    padding: 10px 8px 30px !important;
  }

  .scroll-section-title {
    font-size: 2.3rem !important;
  }

  /* SECTION 4: Heart Puzzle */
  .alexia-game-section {
    padding: 30px 12px 50px !important;
    margin: 10vh auto 0 !important;
    min-height: auto !important;
  }

  .tiktok-puzzle-stage {
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tiktok-puzzle-left {
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .tiktok-puzzle-tray-wrap {
    width: 100% !important;
    max-width: 320px !important;
  }

  .tiktok-puzzle-tray {
    justify-content: center !important;
  }

  .tiktok-heart-board-wrap {
    width: min(340px, 90vw) !important;
    height: auto !important;
    aspect-ratio: 360 / 330 !important;
    margin: 0 auto !important;
  }

  /* SECTION 5: Mason Jar & Note Card */
  .alexia-jar-section {
    padding: 30px 14px 60px !important;
    margin: 10vh auto 0 !important;
    min-height: auto !important;
  }

  .jar-stage-wrapper {
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .jar-interactive-stage {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "jar"
      "card"
      "legend" !important;
    gap: 28px !important;
    width: 100% !important;
  }

  .jar-col-vessel, .jar-col-right, .jar-col-legend {
    justify-content: center !important;
    width: 100% !important;
  }

  .mason-jar-container {
    width: min(220px, 60vw) !important;
    margin: 0 auto !important;
  }

  .real-paper-reminder-card {
    width: 100% !important;
    max-width: min(380px, 94vw) !important;
    aspect-ratio: auto !important;
    min-height: 190px !important;
    margin: 0 auto !important;
  }

  .open-when-legend {
    padding-left: 0 !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }

  /* Side Navigation Dots on Mobile */
  .side-snap-nav {
    right: 6px !important;
    gap: 8px !important;
    opacity: 0.7;
  }

  .snap-dot-circle {
    width: 8px !important;
    height: 8px !important;
  }
}

@media (max-width: 540px) {
  .newspaper-cover-card {
    padding: 20px 10px !important;
  }

  .cover-title-script {
    font-size: 3.2rem !important;
  }

  .cover-aisha-holder {
    width: min(240px, 65vw) !important;
  }

  .cover-cake-holder {
    width: min(240px, 65vw) !important;
    margin-top: -45px !important;
  }

  .cover-patch-col {
    width: 65px !important;
  }

  .memo-typewriter-text {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .reward-card {
    width: 94vw !important;
    max-width: 94vw !important;
    padding: 22px 14px 18px !important;
  }
}

