/* ============================================================
   🐾 CAPYBARA DOĞUM GÜNÜ SİTESİ — DOLU DOLU KOLAJ & PÖTİKARE TEMA
   Pastel mavi pötikare, suluboya çiçekler, altın yıldızlar & sıcak karamel
   ============================================================ */

:root {
  --gingham-blue: rgba(164, 210, 248, 0.44);
  --gingham-light: rgba(206, 232, 253, 0.48);
  --sky-soft: #EBF5FE;
  --sky-accent: #6EB5EC;
  --sky-deep: #3B82C4;
  --card-white: rgba(255, 253, 250, 0.94);
  --ink: #362928;
  --ink-soft: #6A5A58;
  --capy-fur: #B8865E;
  --capy-dark: #8C5E3C;
  --tangerine: #F28C38;
  --tangerine-deep: #D96B27;
  --gold: #EBB63E;
  --gold-deep: #C58B19;
  --pink-soft: #F7B5CA;
  --border-sky: #C8E2F8;
  --border-warm: #E7D5C1;
  --shadow-soft: 0 12px 30px rgba(49, 93, 138, 0.14);
  --shadow-polaroid: 0 10px 22px rgba(48, 72, 98, 0.18);
}

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

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

body {
  margin: 0;
  padding: 0;
  /* Pastel Mavi Pötikare (Gingham) Duvar Kağıdı */
  background-color: #FFFFFF;
  background-image:
    linear-gradient(90deg, var(--gingham-blue) 50%, transparent 50%),
    linear-gradient(var(--gingham-blue) 50%, transparent 50%);
  background-size: 52px 52px;
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
  position: relative;
}

h1, h2, h3, .font-display {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.font-hand {
  font-family: 'Caveat', 'Segoe Script', 'Comic Sans MS', cursive;
}

/* ============================================================
   ARKA PLAN SULUBOYA MAVİ ÇİÇEKLER & STICKER KATMANI
   ============================================================ */

.bg-collage-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-flower {
  position: absolute;
  opacity: 0.72;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
}

.bg-flower-1 {
  width: 310px;
  top: -30px;
  right: -75px;
  transform: rotate(12deg);
  animation: slowDrift 9s ease-in-out infinite;
}

.bg-flower-2 {
  width: 280px;
  top: 28%;
  left: -95px;
  transform: rotate(-18deg);
  animation: slowDrift 11s ease-in-out infinite reverse;
}

.bg-flower-3 {
  width: 260px;
  bottom: 8%;
  right: -70px;
  transform: rotate(24deg);
  animation: slowDrift 10s ease-in-out infinite;
}

.bg-flower-4 {
  width: 210px;
  bottom: -45px;
  left: -40px;
  transform: rotate(-10deg);
  opacity: 0.62;
}

.bg-star-deco {
  position: absolute;
  animation: twinkleStar 3.2s ease-in-out infinite;
}

.bg-star-1 { top: 14%; left: 6%; width: 28px; animation-delay: 0s; }
.bg-star-2 { top: 48%; right: 7%; width: 32px; animation-delay: 0.9s; }
.bg-star-3 { top: 74%; left: 8%; width: 24px; animation-delay: 1.7s; }
.bg-star-4 { top: 24%; right: 12%; width: 22px; animation-delay: 2.2s; }

@keyframes slowDrift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 10deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--r, 10deg) + 4deg)); }
}

@keyframes twinkleStar {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.78; }
  50% { transform: scale(1.16) rotate(12deg); opacity: 1; }
}

/* ============================================================
   ÜST SABİT SES BUTONU & KONFETİ KATMANI
   ============================================================ */

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

.sound-toggle {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 130, 196, 0.22);
  transition: transform 0.18s ease;
}

.sound-toggle:active {
  transform: scale(0.94);
}

/* ============================================================
   GENEL SAYFA KONTEYNERİ & BÖLÜMLER
   ============================================================ */

.page-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 64px;
  position: relative;
  z-index: 2;
}

.section-block {
  padding: 30px 0;
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sky-deep);
  font-size: 0.82rem;
  font-weight: 800;
  border: 2px solid #B6DBFA;
  box-shadow: 0 4px 12px rgba(59, 130, 196, 0.14);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2.5px solid #FFFFFF;
  background: linear-gradient(135deg, #F59E42, #E26A4F);
  color: #FFFDF9;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(217, 107, 39, 0.34);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  touch-action: manipulation;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 107, 39, 0.40);
}

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

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid #C4E0F9;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(59, 130, 196, 0.14);
  transition: transform 0.15s ease;
  touch-action: manipulation;
}

.secondary-btn:active {
  transform: scale(0.96);
}

/* ============================================================
   BÖLÜM 1: HERO — GÜMÜŞ BALONLAR, ALTIN YILDIZLAR, TAÇLI CAPYBARA
   ============================================================ */

.hero-section {
  min-height: 94dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 24px;
}

/* Gümüş Folyo Balon "HAPPY BIRTHDAY" Başlığı */
.foil-banner {
  margin: 12px auto 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
  filter: drop-shadow(0 5px 8px rgba(46, 86, 128, 0.22));
}

.foil-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}

.foil-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 7.6vw, 2.55rem);
  line-height: 1;
  padding: 2px 4px;
  background: linear-gradient(165deg, #FFFFFF 0%, #D9E2EC 26%, #94A3B8 52%, #F8FAFC 76%, #B0BEC5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(96, 114, 133, 0.78);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
  animation: balloonBob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.14s);
}

@keyframes balloonBob {
  0%, 100% { transform: translateY(0px) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-4px) rotate(calc(var(--r, 0deg) * -1)); }
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 4px auto 8px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 12px 22px rgba(48, 86, 126, 0.18));
}

.hero-card-caption {
  background: rgba(255, 255, 255, 0.92);
  border: 2.5px solid #FFFFFF;
  box-shadow: var(--shadow-soft), 0 0 0 2px #C8E2F8;
  border-radius: 26px;
  padding: 18px 20px 20px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(1.65rem, 6.4vw, 2.15rem);
  line-height: 1.18;
  color: var(--ink);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 360px;
  margin: 8px auto 16px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tap-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
}

/* SVG Capybara & Sticker Animasyonları */
.capy-breathe {
  transform-origin: 210px 300px;
  animation: capyBreathe 3.2s ease-in-out infinite;
}

@keyframes capyBreathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.016) translateY(-2px); }
}

.capy-ear-l { transform-origin: -26px -104px; }
.capy-ear-r { transform-origin: 15px -96px; }

.hero-celebrating .capy-ear-l { animation: earWiggleL 0.42s ease-in-out 4; }
.hero-celebrating .capy-ear-r { animation: earWiggleR 0.42s ease-in-out 4; }

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

@keyframes earWiggleR {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(14deg); }
}

.star-stick {
  transform-origin: 180px 180px;
  animation: starSway 3.6s ease-in-out infinite alternate;
}

@keyframes starSway {
  0% { transform: rotate(-2deg); }
  100% { transform: rotate(2deg); }
}

.candle-flame {
  transform-origin: 76px 190px;
  animation: flameFlicker 0.85s ease-in-out infinite alternate;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.08, 0.95) rotate(3deg); }
  100% { transform: scale(0.95, 1.07) rotate(-2deg); }
}

.candle-blown .candle-flame,
.candle-blown .flame-glow {
  opacity: 0;
  transform: scale(0.1) translateY(-10px);
}

.candle-smoke { opacity: 0; }
.candle-blown .candle-smoke {
  animation: smokeRise 1.5s ease-out forwards;
}

@keyframes smokeRise {
  0% { opacity: 0; transform: translateY(4px) scale(0.7); }
  25% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.35); }
}

.eyes-happy {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.eyes-open { transition: opacity 0.25s ease; }
.hero-celebrating .eyes-open { opacity: 0; }
.hero-celebrating .eyes-happy { opacity: 1; }

/* ============================================================
   BÖLÜM BAŞLIĞI KARTI (Pötikare üstünde tertemiz okunurluk)
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(59, 130, 196, 0.12), 0 0 0 1.5px #CBE3F9;
  border-radius: 22px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(5px);
}

.section-header h2 {
  font-size: clamp(1.42rem, 5.6vw, 1.78rem);
  margin-top: 8px;
  color: var(--ink);
}

.section-header p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 6px auto 0;
  max-width: 390px;
}

/* ============================================================
   BÖLÜM 2: MİNİ CAPYBARA OYUNU — DOLU DOĞA SAHNESİ
   ============================================================ */

.game-card {
  background: rgba(255, 253, 250, 0.96);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-soft), 0 0 0 2px #C3E0F9;
  border-radius: 28px;
  padding: 14px 14px 18px;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 10px;
}

.progress-slots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-slot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #EDF6FE;
  border: 1.5px dashed #8BBEEB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  opacity: 0.5;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, background 0.25s ease;
}

.progress-slot.filled {
  opacity: 1;
  background: #FFF2DF;
  border-style: solid;
  border-color: var(--tangerine);
  transform: scale(1.12);
}

.progress-slot.cake-slot.filled {
  background: #FFE7EE;
  border-color: #E26A7D;
}

.game-step-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--sky-deep);
  background: #EBF5FE;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 2.5px solid #BFE0FA;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}

#game-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
}

.game-feedback {
  min-height: 28px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--tangerine-deep);
  margin: 10px 4px 8px;
}

.game-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.drop-btn {
  width: 100%;
  max-width: 290px;
  padding: 15px 24px;
  font-size: 1.08rem;
}

.skip-link {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.78;
  padding: 4px 8px;
}

.skip-link:hover { opacity: 1; }

/* ============================================================
   BÖLÜM 3: SÜRPRİZ KUTUSU & UFAK UFAK ÇIKAN FOTOĞRAFLAR
   ============================================================ */

.finale-section { transition: opacity 0.5s ease; }

.finale-locked {
  text-align: center;
  background: rgba(255, 255, 255, 0.90);
  border: 2.5px dashed #9AC8F2;
  border-radius: 26px;
  padding: 28px 20px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

.finale-locked .lock-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.hidden { display: none !important; }

.box-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2.5px solid #FFFFFF;
  box-shadow: var(--shadow-soft), 0 0 0 2px #C8E2F8;
  border-radius: 26px;
  padding: 20px 16px 16px;
}

.gift-box-btn {
  position: relative;
  width: 178px;
  height: 178px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  margin: 8px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-box-btn.ready {
  animation: giftWiggle 2.2s ease-in-out infinite;
}

@keyframes giftWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(-2.5deg); }
  40% { transform: translateY(0) rotate(2.5deg); }
  55% { transform: translateY(-3px) rotate(-1.5deg); }
  70% { transform: translateY(0) rotate(0deg); }
}

.gift-box-svg {
  width: 170px;
  height: 170px;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(52, 86, 124, 0.2));
}

.gift-lid {
  transform-origin: 84px 72px;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.gift-box-btn.opened {
  animation: none;
  cursor: default;
  height: 120px;
  margin-bottom: 0;
}

.gift-box-btn.opened .gift-lid {
  transform: translate(-34px, -48px) rotate(-28deg);
  opacity: 0.94;
}

.box-glow {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 196, 101, 0.65) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s ease;
}

.gift-box-btn.opened .box-glow {
  opacity: 1;
  transform: scale(1.45);
}

/* Sürpriz Kutusundan Ufak Ufak Çıkan Polaroid Kolajı */
.polaroid-burst-wrap {
  margin-top: 16px;
  position: relative;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 8px 4px 18px;
  align-items: start;
}

@media (min-width: 440px) {
  .polaroid-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

.mini-polaroid {
  background: #FFFDF9;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  padding: 7px 7px 12px;
  box-shadow: var(--shadow-polaroid), 0 0 0 1px rgba(173, 206, 236, 0.65);
  cursor: pointer;
  text-align: center;
  opacity: 0;
  transform: translate(var(--from-x, 0px), var(--from-y, -90px)) scale(0.18) rotate(0deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
  position: relative;
}

.mini-polaroid.popped {
  animation: popFromBox 0.78s cubic-bezier(0.22, 1.38, 0.36, 1) forwards;
}

@keyframes popFromBox {
  0% {
    opacity: 0;
    transform: translate(var(--from-x, 0px), var(--from-y, -90px)) scale(0.16) rotate(0deg);
  }
  55% {
    opacity: 1;
    transform: translate(0px, -10px) scale(1.06) rotate(var(--rot, 0deg));
  }
  100% {
    opacity: 1;
    transform: translate(0px, 0px) scale(1) rotate(var(--rot, 0deg));
  }
}

.mini-polaroid.popped:hover,
.mini-polaroid.popped:active {
  z-index: 5;
  box-shadow: 0 16px 28px rgba(45, 76, 108, 0.28);
}

.mini-polaroid::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--tape-rot, -2deg));
  width: 38px;
  height: 12px;
  border-radius: 2px;
  background: var(--tape-color, rgba(110, 181, 236, 0.45));
  pointer-events: none;
}

.polaroid-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  background: #EDF6FE;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-fallback-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.08rem;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 7px;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.polaroid-date {
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============================================================
   DOĞUM GÜNÜ ZARFI & SAMİMİ MEKTUP
   ============================================================ */

.letter-block {
  margin-top: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.letter-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.envelope-card {
  background: linear-gradient(160deg, #FFFDF9 0%, #EBF5FE 100%);
  border: 2.5px solid #FFFFFF;
  box-shadow: var(--shadow-soft), 0 0 0 2px #B9DAF7;
  border-radius: 24px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.envelope-card:active { transform: scale(0.98); }

.envelope-flap-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(110, 181, 236, 0.28), transparent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.wax-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 10px auto 12px;
  background: radial-gradient(circle at 35% 30%, #F4C465, #D29020);
  box-shadow: 0 6px 16px rgba(197, 139, 25, 0.36), inset 0 2px 5px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #FFFDF9;
  animation: sealPulse 2.4s ease-in-out infinite;
}

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

.letter-paper {
  background: #FFFDF9;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    rgba(130, 186, 236, 0.22) 32px
  );
  border: 2.5px solid #FFFFFF;
  box-shadow: var(--shadow-soft), 0 0 0 2px #C3E0F9;
  border-radius: 24px;
  padding: 28px 22px 26px;
  position: relative;
  animation: letterUnfold 0.65s cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
}

@keyframes letterUnfold {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-header-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed #C3E0F9;
}

.letter-greeting {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sky-deep);
  margin: 0 0 12px;
}

.letter-body p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--ink);
}

.letter-signoff {
  margin-top: 20px;
  text-align: right;
}

.letter-closing {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.letter-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.finale-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ============================================================
   BÜYÜK FİNAL: İKİ OBEZ CAPYBARA KAVUŞMA SAHNESİ
   ============================================================ */

.reunion-block {
  margin-top: 26px;
  animation: letterUnfold 0.65s cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
}

.reunion-card {
  background: rgba(255, 253, 250, 0.96);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-soft), 0 0 0 2px #C3E0F9;
  border-radius: 28px;
  padding: 20px 14px 18px;
  text-align: center;
}

.reunion-title {
  font-size: clamp(1.32rem, 5.2vw, 1.62rem);
  margin-top: 8px;
  color: var(--ink);
}

.reunion-subtitle {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 6px auto 12px;
  max-width: 340px;
}

.reunion-canvas-wrap {
  margin-top: 6px;
}

#reunion-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.mini-footer {
  text-align: center;
  margin-top: 28px;
  padding: 10px 16px;
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid #C8E2F8;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

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

/* ============================================================
   FOTOĞRAF BÜYÜTME (LIGHTBOX)
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 42, 64, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox-card {
  width: 100%;
  max-width: 390px;
  background: #FFFDF9;
  border-radius: 16px;
  padding: 12px 12px 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.lightbox.open .lightbox-card { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #FFFDF9;
  background: var(--ink);
  color: #FFFDF9;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  width: 100%;
  aspect-ratio: 4 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #EDF6FE;
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  text-align: center;
  color: var(--ink);
  margin-top: 12px;
  line-height: 1.2;
}

.lightbox-meta {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 10px;
}

.lightbox-nav button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1.5px solid #C3E0F9;
  background: #EDF6FE;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
