/* ==========================================================================
   MODERN MINIMALIST SAKURA BIRTHDAY THEME - BORDERLESS & DRAWN AESTHETICS
   ========================================================================== */

:root {
  /* Curated Soft Palette */
  --bg-gradient: linear-gradient(135deg, #fff5f7 0%, #ffecee 25%, #fff2f5 65%, #ffdce5 100%);
  --primary-pink: #ff4772;
  --primary-hover: #e62354;
  --soft-pink: #ffb3c6;
  --rose-glow: rgba(255, 71, 114, 0.15);
  --accent-gold: #ffb703;
  --accent-gold-glow: rgba(255, 183, 3, 0.25);
  --text-dark: #2d1a24;
  --text-muted: #795769;
  
  /* Modern Borderless Shadows */
  --shadow-ambient: 0 14px 40px rgba(255, 71, 114, 0.08);
  --shadow-hover: 0 22px 50px rgba(255, 71, 114, 0.18);
  --shadow-card: 0 10px 30px rgba(90, 20, 40, 0.07);

  /* Fonts */
  --font-chinese: "Ma Shan Zheng", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-text: "Quicksand", "Fredoka", "PingFang SC", sans-serif;
  --font-display: "Fredoka", "Quicksand", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Canvas for Sakura petals & starry dust */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   TOP NAVIGATION (BORDERLESS & FLOATING)
   ========================================================================== */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 4px 24px rgba(255, 71, 114, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-chinese);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-pink);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-text {
  display: inline-flex;
  align-items: center;
}

.brand-text-short {
  display: none;
}

.brand-logo-svg {
  color: var(--primary-pink);
  flex-shrink: 0;
  animation: floatSubtle 3s infinite ease-in-out;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Borderless Modern Buttons */
.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-text);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-pink);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 16px rgba(255, 71, 114, 0.1);
}

.control-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--primary-pink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 71, 114, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn:hover svg {
  stroke: #ffffff;
}

.btn-svg-icon {
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.control-btn:hover .btn-svg-icon {
  transform: scale(1.1);
}

.btn-text {
  display: inline-flex;
  align-items: center;
}

.btn-text-short {
  display: none;
}

.lang-desktop-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-mobile-label {
  display: none;
}

/* Audio wave animation indicator - Only show animated bars when music is playing! */
.music-wave {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-playing .music-wave {
  display: inline-flex;
}

.music-wave span {
  width: 3px;
  height: 4px;
  background-color: currentColor;
  border-radius: 3px;
  transition: height 0.2s ease;
}

.music-playing .music-wave span:nth-child(1) {
  animation: waveBar 0.8s infinite ease-in-out;
}
.music-playing .music-wave span:nth-child(2) {
  animation: waveBar 0.8s infinite ease-in-out 0.2s;
}
.music-playing .music-wave span:nth-child(3) {
  animation: waveBar 0.8s infinite ease-in-out 0.4s;
}

@keyframes waveBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Language Switch Button */
.lang-btn {
  background: rgba(255, 250, 240, 0.95);
  color: #b56a00;
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.15);
}

.lang-btn:hover {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(251, 133, 0, 0.3);
}

.lang-switch-arrow {
  opacity: 0.5;
  font-size: 0.85rem;
}

.lang-alt {
  font-size: 0.78rem;
  background: rgba(255, 183, 3, 0.18);
  padding: 2px 7px;
  border-radius: 10px;
}

/* ==========================================================================
   PAGE CONTAINER & LAYOUT (AIRY & BORDERLESS)
   ========================================================================== */

.page-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 10;
}

.section-block {
  margin-bottom: 90px;
  scroll-margin-top: 85px;
}

.section-header {
  margin-bottom: 40px;
}

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

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  color: var(--primary-pink);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 71, 114, 0.08);
}

.section-title {
  font-family: var(--font-chinese);
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   HERO SECTION (BORDERLESS & FLOATING)
   ========================================================================== */

.hero-section {
  margin-bottom: 90px;
  text-align: center;
  position: relative;
  padding: 30px 10px 10px;
}

/* Full-Width End-to-End Festive Bunting Garland */
.full-garland-wrap {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: visible;
  pointer-events: none;
  z-index: 50;
  animation: garlandSway 4.5s ease-in-out infinite alternate;
  transform-origin: 50% 0%;
}

.full-garland-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(255, 71, 114, 0.16));
}

@keyframes garlandSway {
  0% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-3px) rotate(0.35deg); }
  100% { transform: translateY(0) rotate(-0.35deg); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  color: var(--primary-pink);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(255, 71, 114, 0.06);
}

.sparkle-svg {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-title {
  font-family: var(--font-chinese);
  font-size: 3.6rem;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.title-greeting {
  display: block;
  font-size: 2.2rem;
  color: #8b4363;
  margin-bottom: 6px;
  font-weight: 400;
}

.title-highlight {
  background: linear-gradient(135deg, #ff4772 0%, #ff758f 50%, #f72585 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(247, 37, 133, 0.2));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 34px;
  font-weight: 500;
  line-height: 1.85;
}

.quick-nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 18px rgba(255, 71, 114, 0.08);
}

.pill-link:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--primary-pink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 71, 114, 0.3);
}

.highlight-pill {
  background: linear-gradient(135deg, #ff4772, #ff758f);
  color: #fff;
}

.highlight-pill:hover {
  background: linear-gradient(135deg, #e62354, #ff4772);
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #a45a7c;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 18px;
  border-radius: 20px;
}

/* ==========================================================================
   PHOTO MEMORIES GALLERY (BORDERLESS CARDS)
   ========================================================================== */

/* Memory Tracker Bar */
.memory-tracker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 182, 193, 0.45);
  border-radius: 50px;
  padding: 10px 22px;
  margin: 12px auto 28px;
  max-width: 620px;
  box-shadow: 0 6px 24px rgba(255, 117, 143, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tracker-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.tracker-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tracker-count {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
}

.tracker-stars {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.tracker-star {
  font-size: 1.25rem;
  color: #d1d5db;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  user-select: none;
}

.tracker-star.lit {
  color: #ffb703;
  transform: scale(1.3);
  text-shadow: 0 0 12px rgba(255, 183, 3, 0.85);
}

.tracker-btn {
  background: linear-gradient(135deg, #ff758f, #ff4772);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(255, 71, 114, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tracker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 71, 114, 0.4);
}

.tracker-btn:active {
  transform: scale(0.95);
}

/* 3D Flip Polaroid Card System */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 860px;
  margin: 25px auto 0;
  perspective: 1600px;
}

.polaroid-card {
  perspective: 1200px;
  background: transparent !important;
  border-radius: 22px;
  padding: 0 !important;
  border: none;
  box-shadow: none !important;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center center;
}

.polaroid-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  border-radius: 22px;
}

.polaroid-card.revealed .polaroid-card-inner {
  transform: rotateY(180deg);
}

/* Shared Face Styles */
.polaroid-face {
  width: 100%;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* FRONT: Mystery Sealed Memory Cover */
.polaroid-face-front {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 2;
  transform: rotateY(0deg);
  background: linear-gradient(145deg, #fffcfb 0%, #fff3f6 45%, #fdeaf2 100%);
  border: 2px dashed rgba(255, 160, 180, 0.7);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.polaroid-face-front:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(255, 71, 114, 0.2);
  border-color: rgba(255, 71, 114, 0.85);
}

.polaroid-face-front:active {
  transform: scale(0.97);
}

/* Corner Gold Decors */
.mystery-corner-decor {
  position: absolute;
  font-size: 0.85rem;
  color: #e09f3e;
  opacity: 0.7;
  line-height: 1;
  pointer-events: none;
}
.mystery-corner-decor.tl { top: 12px; left: 14px; }
.mystery-corner-decor.tr { top: 12px; right: 14px; }
.mystery-corner-decor.bl { bottom: 12px; left: 14px; }
.mystery-corner-decor.br { bottom: 12px; right: 14px; }

/* Mystery Header Tag */
.mystery-header {
  margin-top: 4px;
}

.mystery-tag {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ff4772;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 71, 114, 0.12);
  letter-spacing: 0.5px;
}

/* 3D Wax Seal with Animated Ring */
.mystery-seal-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.wax-seal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  position: relative;
  box-shadow: 
    0 10px 25px rgba(220, 120, 140, 0.35),
    inset 0 3px 5px rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2);
  animation: sealPulse 3.5s ease-in-out infinite;
  z-index: 2;
  transition: transform 0.25s ease;
}

.polaroid-face-front:hover .wax-seal {
  transform: scale(1.1) rotate(5deg);
}

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

.wax-seal-sun {
  background: radial-gradient(circle at 35% 35%, #fff0b3 0%, #ffb703 55%, #c77700 100%);
  border: 3px solid #ffba08;
}

.wax-seal-red {
  background: radial-gradient(circle at 35% 35%, #ffb3c6 0%, #ff4772 55%, #a4133c 100%);
  border: 3px solid #ff758f;
}

.wax-seal-crown {
  background: radial-gradient(circle at 35% 35%, #ffea85 0%, #e09f3e 55%, #9e5b00 100%);
  border: 3px solid #ffd166;
}

.wax-seal-snow {
  background: radial-gradient(circle at 35% 35%, #e0f4ff 0%, #48cae4 55%, #0077b6 100%);
  border: 3px solid #90e0ef;
}

.wax-seal-ring {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 140, 160, 0.65);
  animation: spinSealRing 24s linear infinite;
  pointer-events: none;
}

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

/* Mystery Clue Box */
.mystery-clue-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 4px 0 8px;
  max-width: 90%;
  text-align: center;
  border: 1px solid rgba(255, 192, 203, 0.5);
}

.mystery-clue-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

/* Mystery Tap Prompt (Heartbeat Pulse) */
.mystery-tap-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff758f, #ff4772);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 71, 114, 0.32);
  animation: tapPulse 2s ease-in-out infinite;
}

@keyframes tapPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(255, 71, 114, 0.32);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(255, 71, 114, 0.55);
  }
}

.tap-finger {
  font-size: 1.05rem;
  animation: fingerTap 1.2s ease-in-out infinite;
}

@keyframes fingerTap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* BACK: Revealed Polaroid Photo & Caption */
.polaroid-face-back {
  position: relative;
  transform: rotateY(180deg);
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 18px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.polaroid-card:hover .polaroid-face-back {
  box-shadow: var(--shadow-hover);
}

/* Card Status Bar on Revealed Side */
.card-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff4772;
  background: #fff0f3;
  padding: 3px 10px;
  border-radius: 20px;
}

.unlocked-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ec4b6;
  box-shadow: 0 0 6px #2ec4b6;
}

.flip-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 182, 193, 0.6);
  color: var(--text-light);
  font-size: 0.95rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.flip-back-btn:hover {
  background: #fff0f3;
  color: #ff4772;
  transform: rotate(-180deg);
}

/* Photo Developing & Glossy Gleam Effect */
.polaroid-card.revealed .polaroid-img {
  animation: photoDevelopGlow 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes photoDevelopGlow {
  0% {
    filter: brightness(1.25) contrast(0.85) saturate(0.65);
    opacity: 0.85;
  }
  50% {
    filter: brightness(1.1) contrast(0.95) saturate(1.1);
  }
  100% {
    filter: brightness(1) contrast(1) saturate(1);
    opacity: 1;
  }
}

.polaroid-card.revealed .polaroid-frame::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: glossyGleam 0.9s 0.25s ease-out forwards;
  pointer-events: none;
}

@keyframes glossyGleam {
  0% { left: -120%; opacity: 0; }
  35% { opacity: 1; }
  100% { left: 220%; opacity: 0; }
}

/* Grand All-Unlocked Celebration Banner */
.all-unlocked-banner {
  max-width: 680px;
  margin: 30px auto 0;
  background: linear-gradient(135deg, #fffaf6 0%, #fff0f3 50%, #ffe8ed 100%);
  border: 2px solid #ffccd5;
  border-radius: 22px;
  padding: 18px 24px;
  box-shadow: 0 10px 32px rgba(255, 71, 114, 0.16);
  animation: bannerSlideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bannerSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-sparkle-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.1); }
}

.banner-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Image container */
.polaroid-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fdf4f6;
  border: none;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.06);
}

.polaroid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 26, 36, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.polaroid-card:hover .polaroid-overlay {
  opacity: 1;
}

.zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 7px 16px;
  border-radius: 20px;
}

/* Category Badge with Vector Drawing */
.photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 2;
  border: none;
}

.badge-sun { background: rgba(255, 243, 205, 0.95); color: #b56a00; }
.badge-red { background: rgba(255, 224, 230, 0.95); color: #c9184a; }
.badge-silver { background: rgba(235, 240, 250, 0.95); color: #3d5a80; }
.badge-snow { background: rgba(225, 246, 255, 0.95); color: #0077b6; }

/* Caption details */
.polaroid-caption {
  margin-top: 18px;
  text-align: center;
}

.caption-title {
  font-family: var(--font-chinese);
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.caption-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  padding: 0 4px;
}

.card-interaction {
  display: flex;
  justify-content: center;
}

.heart-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: #fff0f3;
  border: none;
  border-radius: 30px;
  color: var(--primary-pink);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(255, 71, 114, 0.08);
}

.heart-like-btn:hover {
  background: var(--primary-pink);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 71, 114, 0.28);
}

.heart-like-btn.liked {
  background: #ff4772;
  color: #fff;
  animation: heartPulse 0.4s ease;
}

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

/* ==========================================================================
   INTERACTIVE CAKE & CANDLE BLOWING (SEAMLESS DISPLAY)
   ========================================================================== */

.cake-container {
  padding: 10px 20px 40px;
  margin: 0 auto;
  border: none;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.cake-stage {
  margin: 25px auto 15px;
  max-width: 480px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cakeBob 3.6s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

@keyframes cakeBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Ambient Candlelight Warm Radiance Halo */
.cake-ambient-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.45) 0%, rgba(255, 140, 80, 0.22) 40%, rgba(255, 100, 150, 0.08) 65%, transparent 80%);
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: haloPulse 2.8s infinite alternate ease-in-out;
}

@keyframes haloPulse {
  0% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

.cake-ambient-glow.dimmed {
  opacity: 0.05 !important;
  transform: translate(-50%, -50%) scale(0.5) !important;
}

/* Twinkling Fairy Sparkles & Floating Stars */
.cake-sparkle {
  position: absolute;
  color: #ffd166;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.8));
  animation: starOrbit 3s infinite ease-in-out;
}

.sp1 { top: 16%; left: 8%; font-size: 1.3rem; animation-delay: 0s; color: #ffd166; }
.sp2 { top: 20%; right: 10%; font-size: 1.5rem; animation-delay: 0.8s; color: #ff9ebb; }
.sp3 { top: 58%; left: 6%; font-size: 1rem; animation-delay: 1.6s; color: #ffd166; }
.sp4 { top: 54%; right: 6%; font-size: 1.25rem; animation-delay: 2.2s; color: #a0c4ff; }
.sp5 { top: 10%; left: 50%; font-size: 1.1rem; animation-delay: 1.1s; color: #ff758f; }

@keyframes starOrbit {
  0%, 100% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-8px) scale(1.2) rotate(45deg); opacity: 1; }
}

/* Cute Hand-Drawn Animated Birthday Cake (Pure Vector Artwork) */
.cute-drawn-cake-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 20px 36px rgba(255, 90, 130, 0.22));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  user-select: none;
}

.cute-drawn-cake-svg:hover {
  transform: scale(1.035);
  filter: drop-shadow(0 28px 48px rgba(255, 71, 114, 0.32));
}

/* Interactive Candles */
.svg-candle {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svg-candle:hover {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 4px 10px rgba(255, 183, 3, 0.5));
}

/* Living Dancing Animated Flames */
.flame {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: flameDance 0.9s infinite alternate ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#flame1 {
  animation-duration: 0.85s;
  animation-delay: 0.1s;
}

#candle2 #flame2,
#flame2 {
  animation-duration: 1.05s;
  animation-delay: 0.25s;
}

#candle3 #flame3,
#flame3 {
  animation-duration: 0.92s;
  animation-delay: 0.18s;
}

@keyframes flameDance {
  0% { transform: scale(1) rotate(-3deg) skewX(-2deg); }
  25% { transform: scale(1.08, 0.94) rotate(2deg) skewX(2deg); }
  50% { transform: scale(0.95, 1.06) rotate(-1deg) skewX(-1deg); }
  75% { transform: scale(1.04, 0.96) rotate(3deg) skewX(3deg); }
  100% { transform: scale(0.98, 1.02) rotate(-2deg) skewX(-2deg); }
}

.flame.extinguished {
  opacity: 0 !important;
  transform: scale(0.1) translateY(-20px) !important;
  pointer-events: none;
}

/* Cute Puffy Cartoon Smoke Cloud */
.smoke-puff {
  opacity: 0;
  pointer-events: none;
  transform-origin: center bottom;
}

.smoke-puff.active {
  animation: smokePuffRise 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes smokePuffRise {
  0% { opacity: 0; transform: translateY(0) scale(0.3); }
  20% { opacity: 0.85; transform: translateY(-8px) scale(0.95); }
  50% { opacity: 0.6; transform: translateY(-26px) scale(1.35) translateX(4px); }
  100% { opacity: 0; transform: translateY(-48px) scale(2) translateX(-6px); }
}

/* Birthday Badge Ribbon Hover */
.birthday-badge-group {
  transition: transform 0.25s ease;
}

.birthday-badge-group:hover {
  transform: scale(1.03);
}

/* Interactive Hint Pill under Cake */
.cake-hint-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  color: var(--primary-pink);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 14px auto 20px;
  box-shadow: 0 4px 15px rgba(255, 71, 114, 0.08);
}

/* Cake Controls & Actions */
.cake-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

/* Action Button */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blow-btn {
  background: linear-gradient(135deg, #ff4772 0%, #ff85a1 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 71, 114, 0.38);
}

.blow-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 35px rgba(255, 71, 114, 0.5);
}

.blow-btn:active {
  transform: translateY(1px);
}

.btn-svg-wrap {
  display: flex;
  align-items: center;
}

/* Wish Reveal Letter Box (Borderless & Elegant) */
.wish-reveal-box {
  margin-top: 35px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-reveal-box.hidden {
  display: none;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.wish-scroll-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
  border: none;
  border-radius: 24px;
  padding: 34px;
  position: relative;
  box-shadow: 0 14px 40px rgba(244, 162, 97, 0.18);
}

.scroll-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(230, 57, 70, 0.25));
  animation: floatSubtle 2.5s infinite ease-in-out;
}

.wish-reveal-title {
  font-family: var(--font-chinese);
  font-size: 1.85rem;
  color: #d90429;
  margin-bottom: 12px;
}

.wish-reveal-msg {
  font-size: 1.05rem;
  color: #593d2b;
  line-height: 1.85;
  margin-bottom: 18px;
}

.wish-reveal-footer {
  text-align: right;
  font-family: var(--font-chinese);
  color: #b05329;
  font-size: 1.05rem;
}

/* ==========================================================================
   WISHES & STICKY NOTES WALL (SEAMLESS FLOATING DISPLAY)
   ========================================================================== */

.wishes-wrapper {
  padding: 20px 0;
  border: none;
  background: transparent;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.sticky-note {
  padding: 24px 22px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 25px rgba(90, 20, 40, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
}

.sticky-note:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 35px rgba(90, 20, 40, 0.12);
  z-index: 3;
}

.note-pin-svg {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.note-pink {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f4 100%);
}

.note-yellow {
  background: linear-gradient(135deg, #ffffff 0%, #fffbe8 100%);
}

.note-purple {
  background: linear-gradient(135deg, #ffffff 0%, #faf3ff 100%);
}

.note-green {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.note-sender {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.note-tag-icon {
  display: flex;
  align-items: center;
  color: var(--primary-pink);
}

.note-msg {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 14px;
  flex-grow: 1;
}

.note-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* Add Wish Form (Soft Borderless Floating Card) */
.add-wish-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 34px;
  border: none;
  box-shadow: var(--shadow-ambient);
  max-width: 680px;
  margin: 0 auto;
}

.add-wish-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-chinese);
  font-size: 1.45rem;
  color: var(--primary-pink);
  margin-bottom: 22px;
}

.form-row {
  margin-bottom: 20px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 16px;
  font-family: var(--font-text);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  color: var(--text-dark);
  background: #fff5f8;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 71, 114, 0.18);
}

.form-textarea {
  height: 95px;
  resize: vertical;
}

/* Tag Picker with Vector SVGs */
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  background: #fff0f3;
  color: var(--primary-pink);
  border: none;
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.tag-btn:hover, .tag-btn.active {
  transform: translateY(-2px);
  background: var(--primary-pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 71, 114, 0.25);
}

.form-footer {
  text-align: right;
}

.send-wish-btn {
  background: linear-gradient(135deg, #ff4772, #f72585);
  color: #fff;
  padding: 12px 30px;
  font-size: 1rem;
}

.send-wish-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(247, 37, 133, 0.35);
}

/* ==========================================================================
   FOOTER (SEAMLESS)
   ========================================================================== */

.page-footer {
  padding: 50px 20px 30px;
  color: var(--text-muted);
  border: none;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  animation: floatSubtle 2.5s infinite ease-in-out;
}

.footer-text {
  font-family: var(--font-chinese);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.88rem;
  opacity: 0.8;
}

/* ==========================================================================
   LIGHTBOX MODAL (BORDERLESS)
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 25, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  max-width: 620px;
  width: 100%;
  position: relative;
  border: none;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 240, 245, 0.9);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-pink);
  transition: all 0.25s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--primary-pink);
  color: #fff;
  transform: rotate(90deg);
}

/* Lightbox Prev / Next Navigation Arrows (Mobile Touch Friendly) */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-pink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  transition: all 0.25s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--primary-pink);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 71, 114, 0.35);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.lightbox-nav-btn.prev-btn {
  left: -22px;
}

.lightbox-nav-btn.next-btn {
  right: -22px;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.lightbox-info {
  text-align: center;
  padding: 0 15px 10px;
}

.lightbox-info h3 {
  font-family: var(--font-chinese);
  font-size: 1.6rem;
  color: var(--primary-pink);
  margin-bottom: 6px;
}

.lightbox-info p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Candle Transparent Hitbox for Finger Tapping on Touch Screens */
.candle-hitbox {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   DYNAMIC CLICK PARTICLES (DRAWN SHAPES)
   ========================================================================== */

.click-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpFade 1s forwards ease-out;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -80px) scale(1.25) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -140px) scale(1) rotate(-15deg);
  }
}

/* ==========================================================================
   FLOATING MOBILE QUICK JUMP BAR
   ========================================================================== */

.mobile-quick-bar {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE PERFECTION)
   ========================================================================== */

/* Tablet & Large Phone (<= 768px) */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 16px;
    height: 62px;
  }

  .full-garland-wrap {
    top: 62px;
    height: 44px;
  }

  .nav-brand {
    font-size: 1.15rem;
  }

  .control-btn {
    padding: 7px 13px;
    font-size: 0.82rem;
  }

  .page-container {
    padding: 80px 16px 85px;
  }

  .hero-section {
    margin-bottom: 60px;
    padding: 20px 8px 10px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .title-greeting {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .quick-nav-pills {
    gap: 10px;
    margin-bottom: 24px;
  }

  .pill-link {
    padding: 9px 18px;
    font-size: 0.88rem;
  }

  .section-block {
    margin-bottom: 65px;
    scroll-margin-top: 70px;
  }

  .section-header {
    margin-bottom: 26px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }

  .memory-tracker-bar {
    padding: 8px 14px;
    margin: 8px auto 20px;
    justify-content: center;
    gap: 10px;
  }

  .tracker-progress {
    font-size: 0.88rem;
  }

  .tracker-star {
    font-size: 1.1rem;
  }

  .tracker-btn {
    font-size: 0.82rem;
    padding: 6px 14px;
  }

  .polaroid-card {
    padding: 0 !important;
    border-radius: 20px;
  }

  .polaroid-face-front {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .wax-seal {
    width: 68px;
    height: 68px;
    font-size: 2rem;
  }

  .wax-seal-ring {
    width: 90px;
    height: 90px;
  }

  .mystery-clue-box {
    padding: 10px 12px;
    margin: 4px 0 10px;
  }

  .mystery-clue-text {
    font-size: 0.82rem;
  }

  .mystery-tap-prompt {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .polaroid-face-back {
    padding: 14px 14px 20px;
    border-radius: 20px;
  }

  .cake-container {
    padding: 6px 10px 30px;
  }

  .cake-stage {
    max-width: 330px;
    margin: 15px auto 10px;
  }

  .cute-drawn-cake-svg {
    max-width: 330px;
  }

  .cake-ambient-glow {
    width: 330px;
    height: 260px;
  }

  .cake-hint-pill {
    font-size: 0.82rem;
    padding: 6px 14px;
    max-width: 95%;
  }

  .action-btn.blow-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .wish-scroll-card {
    padding: 24px 18px;
    border-radius: 20px;
    max-width: 94%;
  }

  .wish-reveal-title {
    font-size: 1.35rem;
  }

  .wish-reveal-msg {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 18px;
  }

  .add-wish-box {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .add-wish-title {
    font-size: 1.25rem;
  }

  .form-row {
    margin-bottom: 16px;
  }

  .tag-picker {
    gap: 8px;
  }

  .tag-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .form-footer {
    text-align: center;
  }

  .send-wish-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .lightbox-dialog {
    max-width: 92vw;
    max-height: 88vh;
    padding: 16px 14px;
    border-radius: 20px;
  }

  .lightbox-img {
    max-height: 52vh;
  }

  .lightbox-info h3 {
    font-size: 1.35rem;
  }

  .lightbox-info p {
    font-size: 0.88rem;
  }

  .lightbox-nav-btn.prev-btn {
    left: 8px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.88);
  }

  .lightbox-nav-btn.next-btn {
    right: 8px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.88);
  }

  .lightbox-close {
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  /* Floating Mobile Quick Jump Bar */
  .mobile-quick-bar {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 7px 18px;
    border-radius: 50px;
    box-shadow: 0 10px 32px rgba(255, 71, 114, 0.24);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 99;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-quick-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .quick-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px 5px;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .quick-bar-item:active {
    transform: scale(0.9);
  }

  .quick-bar-item.cake-item {
    color: var(--primary-pink);
    font-weight: 700;
  }
}

/* Compact Mobile Screens (<= 520px) */
@media (max-width: 520px) {
  .top-nav {
    padding: 0 12px;
    height: 56px;
  }

  .full-garland-wrap {
    top: 56px;
    height: 36px;
  }

  .nav-brand {
    gap: 6px;
  }

  .brand-logo-svg {
    width: 22px;
    height: 22px;
  }

  .brand-text-full {
    display: none;
  }

  .brand-text-short {
    display: inline;
    font-size: 1.05rem;
  }

  .nav-controls {
    gap: 6px;
  }

  .control-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .btn-svg-icon {
    width: 15px;
    height: 15px;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .lang-desktop-label {
    display: none;
  }

  .lang-mobile-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    font-size: 0.82rem;
  }

  .hero-section {
    padding: 12px 4px 6px;
    margin-bottom: 45px;
  }

  .hero-tag {
    padding: 5px 14px;
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 14px;
  }

  .title-greeting {
    font-size: 1.45rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .quick-nav-pills {
    gap: 8px;
    margin-bottom: 20px;
  }

  .pill-link {
    padding: 8px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .hero-date-badge {
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .section-block {
    margin-bottom: 55px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  .section-pill {
    padding: 5px 14px;
    font-size: 0.82rem;
  }

  .cake-stage {
    max-width: 280px;
  }

  .cute-drawn-cake-svg {
    max-width: 280px;
  }

  .cake-ambient-glow {
    width: 260px;
    height: 200px;
  }

  .cake-hint-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
  }

  .action-btn.blow-btn {
    max-width: 270px;
    font-size: 0.9rem;
    padding: 11px 16px;
  }

  .polaroid-card {
    padding: 10px 10px 16px;
    border-radius: 18px;
  }

  .caption-title {
    font-size: 1.15rem;
  }

  .caption-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .add-wish-box {
    padding: 18px 14px;
  }

  .form-input, .form-textarea {
    padding: 11px 14px;
    font-size: 16px;
  }

  .page-footer {
    padding: 35px 14px 90px;
  }
}

/* Ultra Small Screens (<= 380px, e.g. iPhone SE / Fold outer) */
@media (max-width: 380px) {
  .brand-text-short {
    font-size: 0.95rem;
  }

  .control-btn {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .title-greeting {
    font-size: 1.3rem;
  }

  .pill-link {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .cake-stage {
    max-width: 250px;
  }

  .cute-drawn-cake-svg {
    max-width: 250px;
  }
}
