/* ═══════════════════════════════════════
   TOKENS & RESETS
═══════════════════════════════════════ */
:root {
  --pastel-pink:   #ffd6e7;
  --pastel-lav:    #e8d5ff;
  --pastel-peach:  #ffe5c8;
  --pastel-mint:   #c9f0e4;
  --gold:          #f5c842;
  --gold-dark:     #c89b2a;
  --gold-glow:     #ffe066;
  --white:         #ffffff;
  --glass-bg:      rgba(255,255,255,0.18);
  --glass-border:  rgba(255,255,255,0.35);
  --text-dark:     #3a2a4a;
  --text-mid:      #5a4a6a;
  --text-light:    #8a79a0;
  --shadow-soft:   0 8px 32px rgba(120,80,160,0.15);
  --shadow-gold:   0 0 30px rgba(245,200,66,0.35);
  --radius-xl:     24px;
  --radius-lg:     16px;
  --radius-md:     12px;
  --transition:    0.35s cubic-bezier(.4,0,.2,1);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #fce4ff 0%, #ffd6e7 30%, #fff0d6 60%, #e8d5ff 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   UTILITY
═══════════════════════════════════════ */
.hidden { display: none !important; }
.gold-text { color: var(--gold-dark); text-shadow: 0 0 16px var(--gold-glow); }

/* ═══════════════════════════════════════
   GLASSMORPHISM CARD
═══════════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

/* ═══════════════════════════════════════
   PASSWORD OVERLAY
═══════════════════════════════════════ */
.overlay-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fce4ff 0%, #ffd6e7 35%, #fff0d6 65%, #e4d0ff 100%);
  padding: 1.5rem;
  animation: overlayIn 0.6s ease;
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.password-card {
  width: 100%;
  max-width: 440px;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: cardPop 0.7s cubic-bezier(.34,1.56,.64,1) 0.2s both;
}

@keyframes cardPop {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.lock-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: wiggle 1.8s ease-in-out infinite;
}

@keyframes wiggle {
  0%,100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

.overlay-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.overlay-sub {
  color: var(--text-mid);
  font-size: .95rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.input-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.input-group input {
  flex: 1 1 180px;
  padding: .85rem 1.2rem;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,200,66,0.25);
}

.input-group button,
.cta-btn {
  padding: .85rem 1.8rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #3a2700;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(200,155,42,0.4);
  text-decoration: none;
  display: inline-block;
}

.input-group button:hover,
.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(200,155,42,0.55);
}

.input-group button:active,
.cta-btn:active { transform: scale(0.97); }

.error-msg {
  color: #c0392b;
  font-size: .9rem;
  margin-top: 1rem;
  min-height: 1.2em;
  font-weight: 500;
}

/* Shake animation for wrong password */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-7px); }
  80%      { transform: translateX(7px); }
}
.shake { animation: shake 0.5s ease; }

/* ═══════════════════════════════════════
   CONFETTI CANVAS
═══════════════════════════════════════ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   MUSIC PLAYER
═══════════════════════════════════════ */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: 50px;
  padding: .5rem 1.2rem .5rem .5rem;
  box-shadow: var(--shadow-soft);
  animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

#music-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(200,155,42,0.4);
}

#music-toggle:hover { transform: scale(1.12); box-shadow: var(--shadow-gold); }

#music-label {
  font-size: .82rem;
  color: var(--text-mid);
  font-weight: 500;
  white-space: nowrap;
}

.music-pulse {
  animation: musicPulse 0.6s ease infinite alternate;
}
@keyframes musicPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

/* ═══════════════════════════════════════
   ENTRANCE ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up { animation: fadeUp 0.8s ease both; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
main { position: relative; z-index: 1; }

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 700px; }

.balloon-row {
  font-size: 2.2rem;
  letter-spacing: .5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

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

.hero-eyebrow {
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: .8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 8px rgba(150,100,200,0.1);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
}

/* Sparkle ring decoration */
.sparkle-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkle-ring span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  animation: sparkleOrbit 6s linear infinite;
}
.sparkle-ring span:nth-child(1) { top: 15%; left: 8%;  animation-delay: 0s;   animation-duration: 5s; }
.sparkle-ring span:nth-child(2) { top: 25%; right: 6%; animation-delay: 1s;   animation-duration: 7s; background: var(--pastel-pink); }
.sparkle-ring span:nth-child(3) { bottom: 20%; left: 12%; animation-delay: 2s; animation-duration: 6s; background: var(--pastel-lav); }
.sparkle-ring span:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 0.5s; animation-duration: 5.5s; }
.sparkle-ring span:nth-child(5) { top: 50%; left: 3%; animation-delay: 1.5s; animation-duration: 8s; background: var(--pastel-mint); }
.sparkle-ring span:nth-child(6) { top: 50%; right: 3%; animation-delay: 2.5s; animation-duration: 6.5s; background: var(--pastel-pink); }
.sparkle-ring span:nth-child(7) { top: 8%; left: 45%; animation-delay: 3s; animation-duration: 7.5s; background: var(--pastel-peach); }
.sparkle-ring span:nth-child(8) { bottom: 8%; left: 40%; animation-delay: 0.8s; animation-duration: 5.8s; background: var(--pastel-lav); }

@keyframes sparkleOrbit {
  0%,100% { transform: scale(1) translateY(0); opacity: .6; }
  50%      { transform: scale(1.6) translateY(-20px); opacity: 1; }
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section {
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: .8rem;
}

.section-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   GAME SECTION
═══════════════════════════════════════ */
.game-section { background: rgba(255,255,255,0.25); }

.game-container { max-width: 680px; margin: 0 auto; }

.progress-bar-wrap {
  height: 8px;
  background: rgba(150,100,200,0.15);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: .8rem;
}

.progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 50px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.q-counter {
  text-align: right;
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: .08em;
}

.question-card {
  padding: 2rem 2rem 2.5rem;
  margin-bottom: 1.5rem;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-dark);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.option-btn {
  padding: .9rem 1rem;
  background: rgba(255,255,255,0.55);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(245,200,66,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200,155,42,0.2);
}

.option-btn.correct {
  background: rgba(80,200,120,0.25);
  border-color: #2ecc71;
  color: #1a6e3a;
  animation: correctPop 0.4s cubic-bezier(.34,1.56,.64,1);
}

.option-btn.wrong {
  background: rgba(220,80,80,0.2);
  border-color: #e74c3c;
  color: #8b1a1a;
  animation: shake 0.4s ease;
}

@keyframes correctPop {
  from { transform: scale(1); }
  50%  { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.game-feedback {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.4s ease;
}

.game-feedback.correct-fb { background: rgba(80,200,120,0.2); border: 1px solid #2ecc71; color: #1a6e3a; }
.game-feedback.wrong-fb   { background: rgba(220,80,80,0.15);  border: 1px solid #e74c3c; color: #8b1a1a; }

#feedback-icon { font-size: 1.5rem; }
#feedback-text { font-size: .95rem; font-weight: 500; }

.game-results {
  text-align: center;
  padding: 3rem 2rem;
  animation: zoomIn 0.6s cubic-bezier(.34,1.56,.64,1);
}

.result-emoji { font-size: 4rem; margin-bottom: 1rem; }
.game-results h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: .8rem;
}
.game-results p { color: var(--text-mid); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; }

/* ═══════════════════════════════════════
   GALLERY SECTION — REAL PHOTOS
═══════════════════════════════════════ */

/* Wide container override for gallery */
.wide-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Masonry grid for main Aliana gallery */
.photo-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2.5px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  aspect-ratio: 3/4;
  animation: fadeUp 0.6s ease calc(var(--delay, 0s)) both;
  position: relative;
}

/* Every 4th photo landscape for visual rhythm */
.photo-masonry .gallery-frame:nth-child(4n) { aspect-ratio: 4/3; }
.photo-masonry .gallery-frame:nth-child(7n) { aspect-ratio: 1/1; }

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.gallery-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(150,80,200,0.25), var(--shadow-gold);
  border-color: var(--gold);
}

.gallery-frame:hover img {
  transform: scale(1.07);
}

/* Shimmer overlay on hover */
.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,200,66,0.08), rgba(255,214,231,0.08));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: var(--radius-xl);
}
.gallery-frame:hover::after { opacity: 1; }

/* ─── PHOTO STRIPS (horizontal scroll rows) ─── */
.photo-strip-section {
  margin: 2.5rem 0;
}

.strip-label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 1.2rem;
}

.photo-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(245,200,66,0.1);
}

.photo-strip::-webkit-scrollbar { height: 5px; }
.photo-strip::-webkit-scrollbar-track { background: rgba(245,200,66,0.1); border-radius: 50px; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 50px; }

.strip-frame {
  flex: 0 0 240px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.strip-frame:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(200,155,42,0.3);
}

.strip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.strip-frame:hover img { transform: scale(1.06); }

/* Keep old placeholder styles for safety */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,214,231,0.3));
}

.placeholder-icon { font-size: 2.8rem; }
.photo-placeholder p { font-size: .9rem; text-align: center; color: var(--text-mid); font-weight: 500; }

/* ═══════════════════════════════════════
   MESSAGE SECTION
═══════════════════════════════════════ */
.message-section { background: rgba(255,255,255,0.18); }

.message-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--gold);
  line-height: .4;
  margin-bottom: 1.5rem;
  opacity: .6;
}

.message-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.9;
  color: var(--text-dark);
}

.message-sig {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ═══════════════════════════════════════
   LOVE LETTER
═══════════════════════════════════════ */
.letter-header { text-align: center; margin-bottom: 2.5rem; }

.letter-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #3a2700;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(200,155,42,0.3);
}

.love-letter {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 3.5rem 3rem;
}

.love-letter .message-text {
  font-family: var(--font-display);
  font-style: italic;
  text-align: left;
}

.love-letter .message-text p {
  font-size: clamp(.95rem, 2.2vw, 1.13rem);
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.love-letter .message-text p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
   DEDICATIONS
═══════════════════════════════════════ */
.dedications-section { background: rgba(255,255,255,0.12); }

.dedication-card {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 2.5rem 2.8rem;
  border-left: 5px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dedication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(120,80,180,0.18);
}

/* Per-person accent colours */
.dedication-card[data-person="alex"]    { border-left-color: #6ab0ff; }
.dedication-card[data-person="angeley"] { border-left-color: #ff9eb5; }
.dedication-card[data-person="mom"]     { border-left-color: var(--gold); }
.dedication-card[data-person="grace"]   { border-left-color: #a8edea; }

.ded-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
}

.ded-avatar {
  font-size: 2.8rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--glass-border);
  flex-shrink: 0;
}

.ded-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: .2rem;
}

.ded-role {
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 500;
}

.ded-body p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  line-height: 1.95;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.ded-body p:last-child { margin-bottom: 0; }

.ded-closing {
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--text-mid) !important;
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.15);
}

.footer-emoji-row {
  font-size: 1.4rem;
  letter-spacing: .6rem;
  margin-bottom: 1rem;
  opacity: .8;
  animation: float 3s ease-in-out infinite;
}

.footer-main {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: .4rem;
}

.footer-sub {
  font-size: .9rem;
  color: var(--text-light);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 580px) {
  .options-grid { grid-template-columns: 1fr; }
  .message-card { padding: 2.5rem 1.5rem; }
  .password-card { padding: 2.5rem 1.5rem; }
  .input-group { flex-direction: column; }
  .input-group input, .input-group button { width: 100%; }
  .music-player { bottom: 1rem; right: 1rem; }
  .love-letter { padding: 2.5rem 1.5rem; }
  .dedication-card { padding: 2rem 1.5rem; }
  .ded-avatar { width: 50px; height: 50px; font-size: 2.1rem; }
  .photo-masonry { grid-template-columns: repeat(2, 1fr); }
  .strip-frame { flex: 0 0 170px; height: 220px; }
}

@media (max-width: 360px) {
  .photo-masonry { grid-template-columns: 1fr 1fr; }
  .strip-frame { flex: 0 0 150px; height: 200px; }
}

/* ═══════════════════════════════════════
   UNLOCK TRANSITION
═══════════════════════════════════════ */
.overlay-screen.unlocking {
  animation: overlayOut 0.8s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes overlayOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

main.visible { display: block !important; animation: fadeUp 0.8s ease; }

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(20, 10, 35, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), var(--shadow-gold);
  border: 2px solid var(--glass-border);
  transform: scale(0.88);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  object-fit: contain;
}

#lightbox.active #lightbox-img {
  transform: scale(1);
}

#lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
  z-index: 8001;
}

#lightbox-close:hover {
  background: rgba(245,200,66,0.35);
  transform: scale(1.1) rotate(90deg);
}
