:root {
  --bg-deep: #1a0b12;
  --bg-mid: #2c0f1c;
  --wine: #6e1a3b;
  --rose: #e8a9bf;
  --rose-soft: #f3d4e0;
  --gold: #d9b872;
  --text-light: #f8ecf1;
  --text-muted: #cbaab8;
  --shadow: rgba(0, 0, 0, 0.55);
  --paper: #f4ead4;
  --paper-edge: #e7d8b4;
  --ink: #3a1420;
  --ink-soft: #7a4a55;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: 'Cormorant Garamond', serif;
}

body.no-scroll {
  overflow: hidden;
  height: 100%;
}

#hearts-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#home {
  position: relative;
  z-index: 2;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- ŞİFRE EKRANI ---------- */
.password-screen {
  z-index: 20;
  background: radial-gradient(ellipse at 50% 20%, var(--wine) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.password-title { font-size: clamp(2.4rem, 8vw, 4.5rem) !important; }

.password-hint {
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.75s;
}

.password-tip {
  color: var(--gold);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.8rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.85s;
}

.pin-dots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 1.4rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.95s;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pin-dot.filled {
  background: var(--gold);
  transform: scale(1.15);
}

.pin-dots.shake {
  opacity: 1;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.password-error {
  color: var(--rose);
  font-size: 0.9rem;
  min-height: 1.3rem;
  margin: 0 0 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.password-error.show {
  opacity: 1;
  visibility: visible;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 4.2rem);
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

.pin-key {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 1px solid rgba(217,184,114,0.35);
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.pin-key:active {
  background: rgba(217,184,114,0.3);
  transform: scale(0.94);
}

.pin-key-spacer {
  pointer-events: none;
  border: none;
  background: none;
}

.pin-key-back {
  font-size: 1.3rem;
  color: var(--rose);
}

@media (max-width: 400px) {
  .pin-keypad { grid-template-columns: repeat(3, 3.6rem); gap: 0.8rem; }
  .pin-key { width: 3.6rem; height: 3.6rem; font-size: 1.4rem; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 20%, var(--wine) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-a {
  width: 46vw;
  height: 46vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  top: -10%;
  left: -12%;
  animation: glowFloatA 14s ease-in-out infinite;
}

.hero-glow-b {
  width: 38vw;
  height: 38vw;
  max-width: 440px;
  max-height: 440px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -12%;
  right: -10%;
  animation: glowFloatB 17s ease-in-out infinite;
}

@keyframes glowFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 6%) scale(1.12); }
}

/* Kapak ekranındaki yazının etrafını dolduran, yavaşça süzülen anı fotoğrafları */
.hero-photo-float {
  position: absolute;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center 20%;
  border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(255,253,248,0.92), 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero-photo-1 {
  width: 90px;
  top: 6%;
  left: 5%;
  transform: rotate(-9deg);
  animation: heroPhotoFloat1 11s ease-in-out infinite;
}

.hero-photo-2 {
  width: 78px;
  top: 10%;
  right: 6%;
  transform: rotate(7deg);
  animation: heroPhotoFloat2 13s ease-in-out infinite;
}

.hero-photo-3 {
  width: 92px;
  bottom: 12%;
  left: 7%;
  transform: rotate(6deg);
  animation: heroPhotoFloat3 15s ease-in-out infinite;
}

.hero-photo-4 {
  width: 80px;
  bottom: 8%;
  right: 5%;
  transform: rotate(-6deg);
  animation: heroPhotoFloat1 12.5s ease-in-out infinite;
}

@keyframes heroPhotoFloat1 {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-9deg) translateY(-14px); }
}

@keyframes heroPhotoFloat2 {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(12px); }
}

@keyframes heroPhotoFloat3 {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-10px); }
}

@media (min-width: 640px) {
  .hero-photo-1 { width: 130px; }
  .hero-photo-2 { width: 115px; }
  .hero-photo-3 { width: 135px; }
  .hero-photo-4 { width: 118px; }
}

@media (max-width: 420px) {
  .hero-photo-3, .hero-photo-4 { display: none; }
  .hero-photo-1, .hero-photo-2 { opacity: 0.35; }
}

@keyframes glowFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -5%) scale(1.1); }
}

.hero-content { max-width: 700px; position: relative; z-index: 1; }

.cover-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 1.2rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.2s;
}

.cover-eyebrow::before,
.cover-eyebrow::after {
  content: "\2726";
  font-size: 0.75em;
  opacity: 0.7;
  animation: twinkle 2.6s ease-in-out infinite;
}

.cover-eyebrow::after { animation-delay: 1.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

.cover-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(100deg, var(--rose-soft), var(--gold) 35%, var(--rose) 55%, var(--rose-soft) 75%, var(--gold));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeUp 1.1s ease forwards 0.45s, titleShimmer 7s ease-in-out infinite 1.6s;
  text-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cover-names {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--rose-soft);
  margin: 0.3rem 0;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.75s;
}

.poem-title {
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

h1.cover-title.poem-title {
  font-size: clamp(1.5rem, 5.5vw, 2.8rem);
}

h2.finale-title.poem-title {
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  line-height: 1.5;
}

.cover-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin: 0 0 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.95s;
}

.btn-primary, .btn-secondary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(217,184,114,0.15), rgba(232,169,191,0.1));
  color: var(--text-light);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.2s;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217,184,114,0.25);
  background: linear-gradient(135deg, rgba(217,184,114,0.3), rgba(232,169,191,0.2));
}

.cover-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.6s, pulse 2.5s ease-in-out infinite 2.6s;
}

.cover-scroll-hint::after {
  content: "\2304";
  display: block;
  margin: 0.4rem auto 0;
  font-size: 1.1rem;
  color: var(--gold);
  animation: chevronBounce 1.8s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---------- TIMELINE / GALERİ ---------- */
.timeline-section {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 12%);
  padding: 4rem 1.5rem 7rem;
}

.timeline-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  color: var(--rose-soft);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-heading.in-view { opacity: 1; transform: translateY(0); }

.timeline-heading-rule {
  display: block;
  width: 0;
  height: 1px;
  margin: 0 auto 3.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1s ease 0.2s;
}

.timeline-heading-rule.in-view { width: 140px; }

/* ---------- ANI IZGARASI ---------- */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .memory-grid { grid-template-columns: repeat(4, 1fr); }
}

.thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 1px solid rgba(217,184,114,0.2);
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease,
    box-shadow 0.25s ease, background-size 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.thumb.in-view {
  opacity: 1;
  transform: translateY(0);
}

.thumb:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  background-size: 112%;
}

.thumb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 0.5rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--text-light);
  text-align: center;
  background: linear-gradient(to top, rgba(10,4,7,0.88), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.thumb:hover .thumb-caption,
.thumb:focus-visible .thumb-caption {
  opacity: 1;
  transform: translateY(0);
}

.thumb-video {
  background: linear-gradient(160deg, var(--wine), var(--bg-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-video-badge {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--gold);
  color: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 5;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--wine);
  color: var(--text-light);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fabGlow 3.2s ease-in-out infinite;
}

.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217,184,114,0.3);
  animation-play-state: paused;
}

@keyframes fabGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 8px 26px rgba(0,0,0,0.5), 0 0 0 6px rgba(217,184,114,0.15); }
}

@media (max-width: 640px) {
  .timeline-section { padding: 3rem 1rem 6rem; }
  .timeline-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .fab { right: 1rem; bottom: 1rem; padding: 0.65rem 1.2rem; font-size: 0.95rem; }
}

/* ---------- NOT BIRAKMA / STICKER DUVARI ---------- */
.notes-section {
  background: var(--bg-deep);
  padding: 1rem 1.5rem 5rem;
}

.sticker-wall {
  max-width: 1000px;
  margin: 0 auto 2.6rem;
  min-height: 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

.sticker-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  padding: 1.5rem 0;
}

.sticker {
  --tilt: -3deg;
  width: 190px;
  min-height: 150px;
  padding: 1.1rem 1.1rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transform: rotate(var(--tilt));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-family: 'Cormorant Garamond', serif;
}

.sticker.in-view { opacity: 1; }

.sticker:nth-child(3n+1) { --tilt: -3deg; background: var(--paper); }
.sticker:nth-child(3n+2) { --tilt: 2.5deg; background: #f6e2e8; }
.sticker:nth-child(3n) { --tilt: -1.5deg; background: #f6ecc9; }

.sticker::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 34px;
  height: 14px;
  background: rgba(217,184,114,0.55);
  border: 1px solid rgba(217,184,114,0.7);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.sticker:hover {
  transform: rotate(0deg) scale(1.05) translateY(-3px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.5);
  z-index: 2;
}

.sticker-name {
  font-weight: 700;
  font-style: italic;
  color: var(--wine);
  font-size: 1.05rem;
}

.sticker-text {
  font-size: 0.98rem;
  line-height: 1.35;
  flex: 1;
  word-break: break-word;
  white-space: pre-wrap;
}

.sticker-date {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: right;
  opacity: 0.8;
}

.sticker-delete {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(58,20,32,0.2);
  background: rgba(255,255,255,0.5);
  color: var(--wine);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sticker:hover .sticker-delete,
.sticker:focus-within .sticker-delete {
  opacity: 1;
}

.sticker-delete:hover {
  background: var(--wine);
  color: var(--text-light);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .sticker-delete { opacity: 1; }
}

/* ---------- SİLME ONAY KUTUSU ---------- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 7, 0.75);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.confirm-box {
  max-width: 340px;
  width: 100%;
  background: var(--bg-mid);
  border: 1px solid rgba(217,184,114,0.4);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.confirm-message {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 1.4rem;
}

.confirm-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.confirm-buttons .btn-primary,
.confirm-buttons .btn-secondary {
  opacity: 1;
  animation: none;
  padding: 0.6rem 1.4rem;
  font-size: 1.05rem;
}

.note-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(217,184,114,0.25);
  border-radius: 16px;
  padding: 1.6rem;
}

.note-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.note-field label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.note-required { color: var(--gold); }

.note-field input,
.note-field textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(217,184,114,0.3);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.note-field input:focus,
.note-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,184,114,0.2);
}

.note-submit {
  align-self: center;
  animation: none;
  opacity: 1;
}

.note-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.note-status {
  text-align: center;
  min-height: 1.2rem;
  font-size: 0.9rem;
  margin: 0;
  color: var(--gold);
}

.note-status.error { color: var(--rose); }

@media (max-width: 640px) {
  .notes-section { padding: 0.5rem 1rem 4rem; }
  .sticker { width: 42%; min-width: 130px; }
  .note-form { padding: 1.2rem; }
}

/* ---------- SLIDESHOW: DEFTER GÖRÜNÜMÜ ---------- */
.slideshow-screen {
  background: radial-gradient(ellipse at 50% 20%, var(--bg-mid) 0%, var(--bg-deep) 65%, #0a0407 100%);
}

.book-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.2rem, 8vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(6rem, 12vh, 8rem);
  perspective: 2200px;
}

.book {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 900px;
}

/* StPageFlip kendi kağıt/gölge/kıvırma render'ını .stf__ elemanlarıyla oluşturur */
.book .stf__parent { margin: 0 auto; }

.book .stf__block {
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(217,184,114,0.3);
  border-radius: 6px;
}

/* Her "yaprak" = fotoğraf sayfası ya da metin sayfası */
.pf-page {
  background: var(--paper);
  overflow: hidden;
}

.pf-page-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.9rem, 4vw, 1.8rem);
}

.pf-page-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 2.4rem) clamp(1.4rem, 5vw, 3rem);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(110,26,59,0.08) 33px 34px);
  background-position: 0 0.3rem;
}

.pf-page-text::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(1.6rem, 6vw, 2.6rem);
  width: 1px;
  background: rgba(200,70,90,0.22);
}

.slide-bg {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 0 0 7px #fffdf8, 0 0 0 8px rgba(0,0,0,0.08);
  animation: kenburns 6s ease-out forwards;
}

.slide-bg.kb-alt { animation-name: kenburns-alt; }

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, -0.5%); }
}

@keyframes kenburns-alt {
  from { transform: scale(1.06) translate(-1%, 0.5%); }
  to   { transform: scale(1) translate(0, 0); }
}

.slide-media {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 0 0 7px #fffdf8, 0 0 0 8px rgba(0,0,0,0.08);
}

.slide-date {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

.slide-title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.6rem;
  color: var(--wine);
  line-height: 1.2;
}

.slide-text {
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 520px;
  line-height: 34px;
}

.page-number {
  position: absolute;
  bottom: 0.6rem;
  right: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

.progress-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 1rem 1.5rem 0;
}

.progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  overflow: hidden;
}

.progress-seg .fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
}

.progress-seg.done .fill { width: 100%; transition: none; }
.progress-seg.active .fill { transition: width linear; }

.controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: rgba(20, 8, 14, 0.45);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(217,184,114,0.25);
}

.ctrl-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.ctrl-btn:hover { background: rgba(217,184,114,0.3); transform: translateY(-2px); }

.ctrl-btn-main {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--wine);
  border-color: var(--gold);
}

.ctrl-btn.muted { opacity: 0.45; }

.close-btn {
  position: absolute;
  top: 1.4rem;
  left: 1.6rem;
  z-index: 5;
}

.counter {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 5;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.music-credit {
  position: absolute;
  bottom: 1.4rem;
  left: 1.6rem;
  z-index: 5;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.music-credit::before {
  content: "\266B";
  color: var(--gold);
}

.fs-tip-toast {
  position: absolute;
  left: 50%;
  bottom: 9rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 20;
  max-width: min(90vw, 380px);
  text-align: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  background: rgba(20, 8, 14, 0.92);
  border: 1px solid rgba(217,184,114,0.35);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fs-tip-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .music-credit { font-size: 0.75rem; bottom: 1rem; left: 1rem; }
}

/* ---------- FINALE ---------- */
.finale-screen {
  background: radial-gradient(ellipse at 50% 30%, var(--wine) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  text-align: center;
}

.finale-content { max-width: 640px; padding: 2rem; }

.finale-heart {
  font-size: 3.5rem;
  color: var(--rose);
  animation: heartbeat 1.6s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.finale-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--rose-soft);
  margin: 0 0 1rem;
}

.finale-text {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.finale-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- LIGHTBOX (büyük görüntüleyici) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 7, 0.92);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.lightbox-media {
  max-width: 90vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media.pop-in img,
.lightbox-media.pop-in video {
  animation: lightboxPopIn 0.4s cubic-bezier(.2,.9,.3,1.3);
}

@keyframes lightboxPopIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-media img,
.lightbox-media video {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 4.5rem;
}

.lightbox-meta {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
}

.lightbox-note {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--rose-soft);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

/* ---------- LIGHTBOX SÜSLEMELER ---------- */
.lightbox-ornament {
  position: absolute;
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.ornament-top {
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  letter-spacing: 0.6rem;
}

.ornament-left,
.ornament-right {
  bottom: 1.8rem;
  font-size: 1.6rem;
  color: var(--rose);
  opacity: 0.4;
}

.ornament-left { left: 1.8rem; transform: rotate(-15deg); }
.ornament-right { right: 1.8rem; transform: rotate(15deg) scaleX(-1); }

@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-nav { width: 2.3rem; height: 2.3rem; font-size: 0.85rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-caption { padding: 0 3.2rem; }
  .ornament-left, .ornament-right { display: none; }
  .ornament-top { font-size: 0.9rem; letter-spacing: 0.4rem; top: 1rem; }
}

@media (max-width: 640px) {
  .book-shell { padding: 2.6rem 0.7rem 6.5rem; }
  .controls { gap: 0.5rem; padding: 0.5rem 0.8rem; }
  .ctrl-btn { width: 2.3rem; height: 2.3rem; font-size: 0.85rem; }
  .ctrl-btn-main { width: 2.8rem; height: 2.8rem; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .book-shell { padding: 1.3rem 1rem 3.4rem; }
  .progress-track { padding: 0.5rem 1rem 0; }
  .controls { bottom: 0.6rem; gap: 0.4rem; padding: 0.4rem 0.7rem; }
  .ctrl-btn { width: 2rem; height: 2rem; font-size: 0.8rem; }
  .ctrl-btn-main { width: 2.4rem; height: 2.4rem; }
  .close-btn { top: 0.6rem; left: 0.8rem; }
  .counter { top: 0.6rem; right: 0.8rem; font-size: 0.8rem; }
  .music-credit { display: none; }
  .pf-page-text { padding: 0.8rem clamp(1rem, 4vw, 1.8rem); }
  .slide-title { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.3rem; }
  .slide-text { font-size: 1rem; line-height: 1.4; }
  .slide-date { margin-bottom: 0.25rem; }
}
