/* ============================================================
   TEMA: MEKTUP - premium. Mum ışığında dramatik zarf açılışı →
   sıcak fildişi mektup okuma yüzeyi. Altın + bordo, zarif serif.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; }
/* html'e arka plan VERİLMEZ - body'ninki tuvale yayılsın (yoksa body kutusunun
   bittiği yerde keskin renk çizgisi çıkar). Ayrıca burada sabit bir renk olsaydı
   kullanıcı panelden zemin rengini değiştirdiğinde html eski renkte kalırdı. */

:root {
  --gold:    #b8923a;   --gold-l:  #ddb968;   --gold-soft: rgba(184,146,58,.32);
  --night-1: #2c1d10;   --night-2: #1d1208;   --night-3: #120b04;
  --ember:   #f3b58c;
  --line:    rgba(184,146,58,.34);
  --line-soft: rgba(184,146,58,.16);
  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Lora', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-caps: 'Cinzel', serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --bounce: cubic-bezier(.34,1.56,.64,1);
}

body {
  /* Kullanıcının panelden seçtiği renkler (--kas-*) → tema değişkenlerine bağlanır,
     yoksa premium varsayılanlara düşer. Ara tonlar color-mix ile türetilir. */
  /* Kullanıcı renkleri (--kas-*) → ana değişkenler; ara tonlar SABİT (color-mix yok → her cihazda çalışır) */
  --paper: var(--kas-card, #fdf7ea);   /* mektup kağıdı = kartlar = galeri = açık krem (panelden değişir) */
  --ink:   var(--kas-text, #3a2218);
  --wine:  var(--kas-title, #7b2d3f);
  --page:  var(--kas-bg, #efe3cd);
  --paper-2: #ecdcbf; --paper-edge: #e3d2b4;
  --ink-2: #6e4c3c; --ink-3: #9a7257;
  --wine-l: #a9485c; --wine-d: #5a1c2c;
  /* İÇ SAYFA ZEMİNİ: koyu kahve "gece okuma odası" - girişin karanlık atmosferi
     içeride de sürer; krem kâğıt kartlar bu zeminde mum ışığındaymış gibi parlar.
     Zemine doğrudan oturan yazılar için açık tonlar: --on-page / --on-page-dim. */
  --page: var(--kas-bg, #271812);
  --on-page: #ecd9bf; --on-page-dim: rgba(233,216,196,.6);
  font-family: var(--font-b); color: var(--ink); line-height: 1.78; font-size: 18.5px;
  background-color: var(--page);
  background-image:
    radial-gradient(120% 70% at 50% -8%, rgba(255,190,120,.16), transparent 60%),
    radial-gradient(120% 90% at 50% 115%, rgba(90,50,24,.35), transparent 60%);
  min-height: 100vh; -webkit-font-smoothing: antialiased; overflow: hidden;
}
body.is-reading { overflow-x: hidden; overflow-y: auto; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; color: inherit; background: 0; border: 0; padding: 0; }
::selection { background: var(--wine); color: #fff; }

/* okuma ilerleme çubuğu */
.kas-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
  background: linear-gradient(90deg, var(--gold), var(--wine)); box-shadow: 0 0 12px rgba(184,146,58,.6); transition: width .12s linear; }

/* ════════════════ AÇILIŞ - mum ışığı sahnesi ════════════════ */
.entry { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255,184,104,.42), transparent 62%),
    radial-gradient(120% 90% at 50% 120%, rgba(96,58,24,.5), transparent 60%),
    linear-gradient(180deg, var(--night-1), var(--night-2) 55%, var(--night-3));
  transition: opacity 1s ease, visibility 1s ease; }
.entry.gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* Kapak fotoğrafı varsa giriş, loş-sıcak tonlu tam ekran fotoğraf üzerine kurulur
   (öneri görseli: akşam ışıkları önünde çift + mühürlü zarf). Fotoğraf yoksa
   yukarıdaki mum ışığı degradesi aynen kalır. */
.cl-photo { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(.9) brightness(.72) sepia(.14); }
.cl-photo::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24,13,8,.92) 0%, rgba(24,13,8,.55) 26%, rgba(24,13,8,.28) 55%, rgba(16,8,5,.88) 100%),
    radial-gradient(90% 70% at 50% 42%, transparent 40%, rgba(16,8,5,.5) 100%); }
.entry.has-photo .cl-glow { opacity: .45; }
.entry.has-photo .cl-vig { background: radial-gradient(130% 105% at 50% 50%, transparent 48%, rgba(0,0,0,.62)); }

/* isim altı kalpli ayraç (öneri görselindeki gibi) */
.cl-orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin-top: 16px; }
.cl-orn .ln { width: 52px; height: 1px; background: linear-gradient(90deg, transparent, rgba(231,205,143,.75)); }
.cl-orn .ln-r { background: linear-gradient(90deg, rgba(231,205,143,.75), transparent); }
.cl-orn svg { width: 13px; height: 13px; opacity: .95; filter: drop-shadow(0 2px 8px rgba(255,176,96,.5)); }
.cl-head .cl-sub { margin-top: 14px; }

.cl-amb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cl-glow { position: absolute; left: 50%; top: 30%; width: 70vmin; height: 70vmin; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,193,118,.42), rgba(206,134,60,.14) 42%, transparent 70%);
  will-change: opacity; animation: cl-flicker 6s ease-in-out infinite; }
@keyframes cl-flicker { 0%,100%{opacity:.8} 50%{opacity:1} }
.cl-vig { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 50%, transparent 52%, rgba(0,0,0,.55)); }
/* girişte yükselen KALPLER */
.cl-dust { position: absolute; inset: 0; }
.cl-dust span { position: absolute; bottom: -6%; left: var(--x,50%); color: var(--ember); opacity: 0;
  animation: ember-rise var(--d,14s) linear infinite; animation-delay: var(--dl,0s); }
.cl-dust span svg { display: block; width: var(--s,18px); height: var(--s,18px); }
@keyframes ember-rise { 0%{opacity:0;transform:translateY(0) rotate(-6deg) scale(.6)} 12%{opacity:.85} 80%{opacity:.4} 100%{opacity:0;transform:translateY(-94vh) translateX(var(--dx,20px)) rotate(8deg) scale(1)} }

.cl-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cl-eyebrow { font-family: var(--font-caps); letter-spacing: .42em; text-transform: uppercase; font-size: 12px;
  color: var(--gold-l); padding-left: .42em; text-shadow: 0 2px 18px rgba(255,176,96,.4); }

/* başlık + alt metin (zarfın ÜSTÜNDE) - sayfa açılır açılmaz belirir */
.cl-head { margin-bottom: clamp(24px, 5vh, 44px); animation: head-in 1s var(--ease) .25s both; transition: opacity .5s ease; }
.cl-head .cl-eyebrow { display: block; margin-bottom: 12px; }
@keyframes head-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* küçük ipucu (mühre dokun) */
.cl-hint { margin-top: 26px; font-family: var(--font-caps); letter-spacing: .26em; text-transform: uppercase; font-size: 11px;
  color: rgba(231,205,143,.72); animation: hint-pulse 2.4s ease-in-out infinite; transition: opacity .4s ease; }
@keyframes hint-pulse { 0%,100%{opacity:.45} 50%{opacity:1} }

/* zarf rüzgarla süzülerek gelir, sonra hafifçe salınır */
.env-float { animation: env-sway 6s ease-in-out 1.9s infinite; will-change: transform; }
@keyframes env-sway { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
/* uçuşta DÖNDÜRME yok → border-üçgen kenarları hep net (tırtık olmaz) */
.envelope.fly { animation: env-fly 1.7s cubic-bezier(.18,.7,.24,1) both; }
@keyframes env-fly {
  0%   { opacity: 0; transform: translate(-78vw, -6vh) scale(.62); }
  55%  { opacity: 1; }
  84%  { transform: translate(1.5%, 0) scale(1.03); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .envelope.fly { animation: none; } .env-float { animation: none; } }

/* ── ZARF - orijinal tema geometrisi: border-çizimli flap + pocket (yan boşluk YOK) ── */
.envelope { position: relative; --env-w: clamp(280px, 82vw, 360px); --env-h: calc(var(--env-w) * .64); --env-r: 6px;
  width: var(--env-w); height: var(--env-h); will-change: transform; }

/* zarf gövdesi (arka yüz) - V çentiğinde görünen "iç"; dış gölge buraya (filtre yok → pürüzsüz) */
.env-back { display: block; position: absolute; inset: 0; z-index: 0;
  border-radius: 0 0 var(--env-r) var(--env-r); background: var(--paper-2);
  box-shadow: 0 34px 54px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(184,146,58,.3) inset; }

/* içerideki ESKİTİLMİŞ mektup (şimdiki kart) - kapalıyken cep+kapak arkasında gizli */
.env-letter { position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 1;
  background-color: var(--paper);
  background-image:
    radial-gradient(130% 110% at 18% 8%, rgba(175,135,82,.13), transparent 55%),
    radial-gradient(120% 100% at 86% 94%, rgba(140,100,55,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 34%);
  border-radius: var(--env-r);
  box-shadow: inset 0 0 0 1px rgba(150,110,60,.4), inset 0 0 36px rgba(140,100,55,.2), 0 10px 26px rgba(0,0,0,.28);
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 20px 22px 0;
  transform: translateY(0); transition: transform 1.1s .55s var(--ease), box-shadow 1.1s ease; }
.envelope.open .env-letter { transform: translateY(calc(var(--env-h) / -1.7)); z-index: 2; }
.env-letter .el-orn { width: 22px; height: 22px; color: var(--wine); opacity: .85; }
.env-letter .el-orn svg { width: 100%; height: 100%; }
.el-couple { font-family: var(--font-script); font-size: 26px; line-height: 1; color: var(--wine); text-align: center; }
.el-sub { font-family: var(--font-b); font-style: italic; font-size: 12.5px; color: var(--ink-2); text-align: center; margin-bottom: 4px; }
.el-line { width: 78%; height: 5px; border-radius: 4px; background: rgba(90,55,35,.14); }
.el-line.short { width: 50%; }

/* ön cep - zarf rengi (içi=dışı: --paper-2); alt kıvrım hafif koyu (--paper-edge) → çizgi belli */
.env-pocket { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 3; pointer-events: none;
  border-left: calc(var(--env-w) / 2) solid var(--paper-2);
  border-right: calc(var(--env-w) / 2) solid var(--paper-2);
  border-bottom: calc(var(--env-h) / 2) solid var(--paper-edge);
  border-top: calc(var(--env-h) / 2) solid transparent; }

/* üst kapak - zarf rengi; hafif koyu kenar (--paper-edge) → kapalıyken kıvrım çizgileri görünür */
.env-flap { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 5; transform-origin: top; pointer-events: none;
  border-left: calc(var(--env-w) / 2) solid transparent;
  border-right: calc(var(--env-w) / 2) solid transparent;
  border-bottom: calc(var(--env-h) / 2) solid transparent;
  border-top: calc(var(--env-h) / 2) solid var(--paper-edge);
  transition: transform .8s var(--ease), z-index 0s linear .45s; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }

/* mum mührü (ŞİMDİKİ yuvarlak wax) */
.env-wax { position: absolute; z-index: 6; left: 50%; top: 48%; width: 70px; height: 70px;
  transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 38% 30%, #a9485c, var(--wine) 52%, var(--wine-d) 100%);
  box-shadow: 0 6px 16px rgba(50,12,22,.6), inset 0 2px 6px rgba(255,255,255,.25), 0 0 26px rgba(169,72,92,.5);
  border: 1px solid rgba(231,205,143,.45); transition: transform .5s var(--bounce), opacity .5s ease; }
.env-wax svg { width: 34px; height: 34px; color: #e8cf94; }
/* davet halkaları - kendi katmanında (will-change) + sadece zarf oturduktan SONRA → Firefox'ta da pürüzsüz */
.env-wax::before, .env-wax::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(231,205,143,.5); opacity: 0; pointer-events: none; will-change: transform, opacity;
  animation: wax-ring 2.8s ease-out 2.3s infinite; }
.env-wax::after { animation-delay: 3.7s; }
@keyframes wax-ring { 0% { opacity: .65; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
.envelope.open .env-wax::before, .envelope.open .env-wax::after { display: none; }
.envelope.open .env-wax { opacity: 0; transform: translate(-50%, 18px) scale(.4) rotate(18deg); }

.cl-open { margin-top: 40px; display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-caps); letter-spacing: .14em; font-size: 14px; color: #2a160f;
  padding: 15px 30px; border-radius: 100px;
  background: linear-gradient(120deg, var(--gold-l), var(--gold)); border: 1px solid rgba(255,240,200,.6);
  box-shadow: 0 18px 36px -14px rgba(184,146,58,.7), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .3s var(--ease), box-shadow .3s, opacity .5s; }
.cl-open svg { width: 18px; height: 18px; }
.cl-open:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -14px rgba(184,146,58,.85); }
.envelope.open ~ .cl-open { opacity: 0; pointer-events: none; transform: translateY(8px); }
.cl-foot { margin-top: 18px; font-family: var(--font-caps); letter-spacing: .26em; text-transform: uppercase;
  font-size: 10.5px; color: rgba(231,205,143,.6); }
.entry-brand { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-caps); letter-spacing: .3em; text-transform: uppercase; font-size: 10px; color: rgba(231,205,143,.45); }

/* ── 1. AŞAMA: davet kartı ── */
.cl-card { position: relative; z-index: 2; max-width: 440px; width: 100%; padding: 46px 38px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(64,40,30,.58), rgba(28,17,13,.62)); border: 1px solid rgba(231,205,143,.3);
  box-shadow: 0 44px 90px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(6px);
  animation: card-in .9s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.cl-card .cl-eyebrow { margin-bottom: 14px; }
.cl-card-orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin-bottom: 16px; }
.cl-card-orn .ln { width: 42px; height: 1px; background: var(--line); }
.cl-card-orn svg, .cl-card-orn .paw-ic { width: 18px; height: 18px; }
.cl-couple { font-family: var(--font-script); font-size: clamp(40px, 11vw, 60px); line-height: 1; color: var(--gold-l); text-shadow: 0 4px 24px rgba(255,176,96,.3); }
.cl-sub { font-family: var(--font-b); font-style: italic; font-size: 16px; color: #e9d8c4; margin-top: 12px; }
.cl-card .cl-open { margin-top: 30px; }

/* ── 2. AŞAMA: zarf açılma ekranı ── */
.opening { position: fixed; inset: 0; z-index: 69; display: flex; align-items: center; justify-content: center; padding: 28px;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease;
  background: radial-gradient(80% 60% at 50% 40%, rgba(120,70,40,.5), transparent 62%),
    linear-gradient(180deg, var(--night-1), var(--night-2) 55%, var(--night-3)); }
.opening.is-active { opacity: 1; visibility: visible; }
.opening.gone { opacity: 0; visibility: hidden; }

/* hero alt başlık (her temadaki gibi subtitle) */
.hero-title { font-family: var(--font-h); font-weight: 500; font-size: clamp(20px, 5vw, 27px); color: var(--on-page); margin-top: 14px; line-height: 1.4; }
.hero-title em { font-style: italic; color: var(--gold-l); }

/* içeride yağan/süzülen kalpler */
.bg-hearts { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-hearts .h { position: absolute; bottom: -6%; color: var(--wine); opacity: 0; animation: heart-rise var(--d,16s) linear infinite; animation-delay: var(--dl,0s); animation-play-state: paused; }
body.is-reading .bg-hearts .h { animation-play-state: running; }
.bg-hearts .h svg { display: block; width: var(--s,22px); height: var(--s,22px); }
@keyframes heart-rise { 0%{opacity:0;transform:translateY(0) translateX(0) rotate(-8deg) scale(.7)} 12%{opacity:var(--o,.16)} 82%{opacity:calc(var(--o,.16)*.7)} 100%{opacity:0;transform:translateY(-112vh) translateX(var(--dx,30px)) rotate(12deg) scale(1.05)} }

/* ════════════════ MEKTUP GÖVDESİ (okuma) ════════════════ */
.memory { position: relative; z-index: 1; max-width: 720px; margin: 0 auto;
  padding: 0 22px calc(96px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s var(--ease); }
.memory.is-visible { opacity: 1; transform: none; }

/* HERO */
.hero { text-align: center; padding: clamp(64px,12vh,120px) 0 40px; }
.hero-monogram { font-family: var(--font-caps); letter-spacing: .4em; text-transform: uppercase; font-size: 12px;
  color: var(--gold); padding-left: .4em; margin-bottom: 18px; }
.hero-divider { width: 1px; height: 46px; margin: 0 auto 22px; background: linear-gradient(var(--gold), transparent); }
.hero-couple { font-family: var(--font-script); font-size: clamp(46px, 12vw, 78px); line-height: .98; color: var(--gold-l);
  text-shadow: 0 4px 26px rgba(255,176,96,.28); }
.hero-since { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px;
  font-family: var(--font-caps); letter-spacing: .22em; text-transform: uppercase; font-size: 11px; color: var(--on-page-dim); }
.hero-since-line { width: 36px; height: 1px; background: var(--line); }
.hero-photo { margin: 34px auto 0; max-width: 460px; }
.hero-photo .frame { padding: 10px; background: var(--paper); border: 1px solid var(--paper-edge);
  box-shadow: 0 26px 50px -22px rgba(90,40,30,.4); border-radius: 4px; transform: rotate(-1.2deg); }
.hero-photo .frame img { border-radius: 2px; }
.hero-scroll { margin-top: 40px; font-family: var(--font-caps); letter-spacing: .26em; text-transform: uppercase;
  font-size: 10px; color: var(--on-page-dim); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0);opacity:.55} 50%{transform:translateY(5px);opacity:1} }

/* BLOKLAR - yükselerek belir */
.block { margin: 40px 0; }
.kas-rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease); }
.kas-rise.is-in { opacity: 1; transform: none; }
.block-head { text-align: center; margin-bottom: 26px; }
.block-eyebrow { font-family: var(--font-caps); letter-spacing: .3em; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.block-title { font-family: var(--font-h); font-size: clamp(26px, 6vw, 36px); color: var(--gold-l); margin-top: 6px; font-weight: 500; }
.block-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; color: var(--gold); }
.block-ornament-line { width: 50px; height: 1px; background: var(--line); }
.block-ornament svg, .paw-ic { width: 16px; height: 16px; }
.block-empty-hint { font-family: var(--font-script); font-size: 26px; color: var(--on-page-dim); opacity: .8; }

/* kart taban - ESKİTİLMİŞ fildişi kağıt (kullanıcı kart rengini korur) */
.message-card, .letter-paper, .day-counter-card, .tl-card, .gb-form, .surprise-card .message-card {
  background-color: var(--paper);
  background-image:
    radial-gradient(130% 110% at 18% 8%, rgba(175,135,82,.13), transparent 55%),
    radial-gradient(120% 100% at 86% 94%, rgba(140,100,55,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 34%);
  border: 1px solid var(--paper-edge);
  box-shadow: 0 22px 44px -26px rgba(90,40,30,.4), inset 0 0 30px rgba(140,100,55,.1); border-radius: 6px; }

/* gün sayacı */
.day-counter { text-align: center; }
.day-counter-card { max-width: 360px; margin: 0 auto; padding: 34px 26px; position: relative; }
.day-counter-eyebrow { font-family: var(--font-caps); letter-spacing: .3em; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.day-counter-num { font-family: var(--font-h); font-size: clamp(54px, 16vw, 80px); line-height: 1; color: var(--wine); margin: 8px 0; }
.day-counter-label { font-style: italic; color: var(--ink-2); }
.day-counter-foot { margin-top: 12px; font-family: var(--font-caps); letter-spacing: .18em; text-transform: uppercase; font-size: 10.5px; color: var(--ink-3); }

/* mesaj */
.message-card { max-width: 600px; margin: 0 auto; padding: 36px 30px; text-align: center; }
.message-icon { width: 26px; height: 26px; margin: 0 auto 16px; color: var(--wine); }
.message-icon svg { width: 100%; height: 100%; }
.message-text { font-family: var(--font-h); font-style: italic; font-size: clamp(19px,4.6vw,24px); line-height: 1.6; color: var(--ink); }
.note { text-align: center; } .note-text { font-family: var(--font-script); font-size: 30px; color: var(--gold-l);
  text-shadow: 0 3px 18px rgba(255,176,96,.22); }

/* MEKTUP bloğu - el yazısı his */
.letter-paper { max-width: 620px; margin: 0 auto; padding: 44px 40px 36px; position: relative; }
.letter-paper::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 1px;
  background: repeating-linear-gradient(var(--line-soft) 0 1px, transparent 1px 30px); opacity: .7; }
.letter-mark { font-family: var(--font-caps); letter-spacing: .26em; text-transform: uppercase; font-size: 11px;
  color: var(--gold); text-align: center; margin-bottom: 18px; }
.letter-to { font-family: var(--font-script); font-size: 30px; color: var(--wine); margin-bottom: 14px; }
.letter-body { font-size: 18px; line-height: 1.95; color: var(--ink); }
.letter-body p { margin-bottom: 1em; }
.letter-from { margin-top: 22px; text-align: right; }
.letter-from-sig { width: 100px; height: 16px; color: var(--gold); display: inline-block; }
.letter-from-name { font-family: var(--font-script); font-size: 27px; color: var(--wine); }

/* galeri slider */
.slider { position: relative; max-width: 620px; margin: 0 auto; overflow: hidden; border-radius: 6px; }
.slider-track { position: relative; }
.slide { display: none; }
.slide.is-active { display: block; animation: fade .6s ease; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.slide .frame { padding: 10px; background: var(--paper); border: 1px solid var(--paper-edge); box-shadow: 0 20px 40px -24px rgba(90,40,30,.45); }
.slide-cap { text-align: center; font-style: italic; color: var(--ink-2); margin-top: 10px; font-size: 14.5px; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.slider-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--wine);
  background: #fff; border: 1px solid var(--paper-edge); box-shadow: 0 8px 18px -10px rgba(90,40,30,.4); transition: .2s; }
.slider-arrow:hover { background: var(--wine); color: #fff; }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-edge); transition: .25s; }
.slider-dots .dot.is-active { background: var(--gold); width: 22px; border-radius: 99px; }

/* zaman çizelgesi */
.timeline-list { list-style: none; max-width: 620px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline-list::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-dot { position: absolute; left: -30px; top: 18px; width: 16px; height: 16px; color: var(--wine);
  background: var(--paper); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--page); }
.tl-dot svg, .tl-dot .paw-ic { width: 13px; height: 13px; }
/* yatay kart: foto SOLDA küçük çerçeveli, metin sağda */
.tl-card { display: flex; gap: 18px; align-items: flex-start; padding: 16px 20px; }
.tl-photo { flex: 0 0 auto; width: clamp(106px, 32%, 186px); margin: 0; }
.tl-photo .frame { padding: 5px; background: var(--paper); border: 1px solid var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--line); margin: 0; border-radius: 3px; }
.tl-photo .frame img { aspect-ratio: 5 / 4; object-fit: cover; display: block; border-radius: 1px; }
.tl-text { flex: 1; min-width: 0; }
.tl-date { display: inline-block; background: rgba(123,45,63,.09); color: var(--wine); padding: 4px 11px; border-radius: 99px;
  font-family: var(--font-caps); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.tl-title { font-family: var(--font-h); font-style: italic; font-size: 22px; color: var(--wine); margin: 9px 0 6px; font-weight: 500; }
.tl-desc { color: var(--ink-2); font-size: 15.5px; font-style: italic; }
@media (max-width: 560px) { .tl-card { flex-direction: column; } .tl-photo { width: 62%; } }

/* sürpriz - İMZA AN: mühürlü mini zarf */
.surprise { text-align: center; }
.seal-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; position: relative; cursor: pointer;
  background: none; border: 0; padding: 6px 4px; -webkit-tap-highlight-color: transparent; }
/* mini zarf gövdesi */
.seal-env { position: relative; width: 132px; height: 92px; display: block;
  animation: seal-breathe 4.2s ease-in-out infinite; transform-origin: 50% 80%; }
.seal-env-svg { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 14px 20px rgba(90,20,35,.22)); }
.me-flap { transform-origin: 50% 21.4%; transition: transform .5s var(--ease); } /* y=18 / viewBox 84 = tepe hinge ekseni */
/* mum mührü */
.seal-wax { position: absolute; left: 50%; top: 46%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  transform-origin: 50% 50%; }
.seal-wax-svg, .seal-crack { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-wax-svg { filter: drop-shadow(0 3px 5px rgba(90,20,35,.4)); }
.seal-crack { opacity: 0; transform: scale(.9); }
.me-wax-glow { animation: seal-glow 3.4s ease-in-out infinite; }
@keyframes seal-glow { 0%,100%{opacity:0} 50%{opacity:.65} }
@keyframes seal-breathe { 0%,100%{transform:rotate(-1.4deg) translateY(0)} 50%{transform:rotate(1.4deg) translateY(-2px)} }
/* açılışta yukarı çıkan küçük not */
.seal-note { position: absolute; left: 50%; top: 26px; width: 56px; height: 40px; margin-left: -28px;
  border-radius: 3px; background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--paper-edge); box-shadow: 0 6px 14px -6px rgba(90,20,35,.4);
  opacity: 0; transform: translateY(0) scale(.5); z-index: 1; }
.seal-note::before, .seal-note::after { content: ''; position: absolute; left: 10px; right: 10px; height: 1px;
  background: var(--paper-edge); }
.seal-note::before { top: 15px; }
.seal-note::after { top: 24px; right: 18px; }
.surprise-label { font-family: var(--font-caps); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.surprise-label svg { width: 15px; height: 15px; color: var(--wine); }
/* KIRILMA: mühür ölçeklenip kırılır/solar, kapak açılır, not çıkar - ~450ms */
.seal-wrap.is-gone .seal-env { animation: none; }
.seal-wrap.is-gone .me-flap { transform: rotateX(150deg); } /* fallback: dönmezse de bozulmaz */
.seal-wrap.is-gone .seal-wax { animation: seal-break .42s var(--ease) forwards; }
.seal-wrap.is-gone .seal-crack { animation: seal-crack .3s ease-out .04s forwards; }
.seal-wrap.is-gone .seal-note { animation: seal-pop .45s var(--ease) .08s forwards; }
@keyframes seal-break { 0%{transform:scale(1) rotate(0);opacity:1} 45%{transform:scale(1.18) rotate(-6deg);opacity:1} 100%{transform:scale(.5) rotate(10deg);opacity:0} }
@keyframes seal-crack { 0%{opacity:0;transform:scale(.7)} 35%{opacity:1} 100%{opacity:0;transform:scale(1.25)} }
@keyframes seal-pop { 0%{opacity:0;transform:translateY(0) scale(.5)} 35%{opacity:1;transform:translateY(-14px) scale(1)} 100%{opacity:0;transform:translateY(-30px) scale(.92)} }
.surprise-card { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .55s var(--ease), opacity .4s ease; }
.surprise-card.is-open { max-height: 1000px; opacity: 1; margin-top: 18px; }
.surprise-card .message-card { max-width: 520px; margin: 0 auto; padding: 32px 28px; }
.surprise-text { font-family: var(--font-h); font-style: italic; font-size: 20px; color: var(--ink); }

/* ZİYARETÇİ DEFTERİ */
.gb-list { max-width: 600px; margin: 0 auto 24px; display: flex; flex-direction: column; gap: 14px; }
.gb-entry { background-color: var(--paper);
  background-image: radial-gradient(130% 110% at 20% 6%, rgba(175,135,82,.1), transparent 58%), linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
  border: 1px solid var(--paper-edge); border-radius: 6px; padding: 16px 20px; box-shadow: 0 14px 30px -22px rgba(90,40,30,.35); }
.gb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.gb-head strong { font-family: var(--font-h); color: var(--wine); }
.gb-head time { font-size: 11px; color: var(--ink-3); }
.gb-entry p { font-size: 16px; color: var(--ink-2); }
.gb-form { max-width: 520px; margin: 0 auto; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.gb-form input, .gb-form textarea { width: 100%; font-family: var(--font-b); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--paper-edge); border-radius: 6px; padding: 12px 14px; resize: vertical; }
.gb-form input:focus, .gb-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.gb-form button { align-self: center; font-family: var(--font-caps); letter-spacing: .14em; font-size: 13px; color: #2a160f;
  padding: 13px 30px; border-radius: 100px; background: linear-gradient(120deg, var(--gold-l), var(--gold));
  box-shadow: 0 14px 28px -12px rgba(184,146,58,.7); transition: transform .25s; }
.gb-form button:hover { transform: translateY(-2px); }

/* FOOTER */
.footer { text-align: center; padding: 50px 0 20px; }
.footer-monogram { font-family: var(--font-caps); letter-spacing: .4em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-bottom: 14px; }
.footer-couple { font-family: var(--font-script); font-size: 42px; color: var(--gold-l); text-shadow: 0 3px 20px rgba(255,176,96,.25); }
.footer-since { font-family: var(--font-caps); letter-spacing: .2em; text-transform: uppercase; font-size: 10.5px; color: var(--on-page-dim); margin-top: 10px; }
.footer-counter { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 12px; color: var(--on-page-dim); }
.footer-counter svg { color: var(--gold); }

/* MÜZİK ÇALAR */
.player { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; z-index: 60; width: min(340px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 100px;
  background: linear-gradient(160deg, rgba(74,22,38,.95), rgba(45,12,22,.95)); backdrop-filter: blur(10px);
  border: 1px solid rgba(231,205,143,.22); box-shadow: 0 18px 40px -14px rgba(40,6,16,.6); color: #f7efe0; overflow: hidden;
  transform: translate(-50%, 180%); transition: transform .6s var(--ease) .3s; }
body.is-reading .player { transform: translate(-50%, 0); }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 3px; background: rgba(255,255,255,.14); }
.player-progress-fill { height: 100%; width: 0; background: var(--gold-l); }
.player-controls { display: flex; align-items: center; gap: 4px; }
.player-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #f7efe0; }
.player-btn svg { width: 16px; height: 16px; }
.player-play { background: var(--gold); color: #2a160f; }
.player-info { flex: 1; min-width: 0; }
.player-title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta { font-size: 10.5px; opacity: .65; }
.player-note svg { width: 16px; height: 16px; opacity: .6; }

/* önizleme (editör) */
.kas-ed-preview .entry { display: none; }

@media (max-width: 600px) {
  body { font-size: 17.5px; }
  .letter-paper { padding: 32px 24px; } .letter-paper::before { display: none; }
  .memory { padding: 0 16px 50px; }
}
/* ════════════════ İÇERİK - ETKİLEYİCİ OKUMA DENEYİMİ ════════════════ */
/* Hero: daha görkemli + ögeler sırayla süzülerek belirir */
.hero { padding-top: clamp(78px, 15vh, 150px); }
.hero-monogram { font-size: 13px; letter-spacing: .5em; }
.hero-couple { font-size: clamp(52px, 14vw, 92px); text-shadow: 0 6px 30px rgba(255,176,96,.3); }
.hero-title { font-size: clamp(21px, 5.2vw, 30px); }
.hero-photo { max-width: 500px; }
.hero-photo .frame { box-shadow: 0 30px 60px -22px rgba(90,40,30,.5), 0 0 0 1px var(--gold-soft) inset;
  animation: photo-float 7s ease-in-out infinite; animation-play-state: paused; }
body.is-reading .hero-photo .frame { animation-play-state: running; }
@keyframes photo-float { 0%,100%{transform:rotate(-1.5deg) translateY(0)} 50%{transform:rotate(-1deg) translateY(-9px)} }

.memory.is-visible .hero > * { animation: rise-in .9s var(--ease) both; }
.memory.is-visible .hero-divider { animation-delay: .12s }
.memory.is-visible .hero-couple  { animation-delay: .22s }
.memory.is-visible .hero-title   { animation-delay: .38s }
.memory.is-visible .hero-since   { animation-delay: .52s }
.memory.is-visible .hero-photo   { animation-delay: .66s }
.memory.is-visible .hero-scroll  { animation-delay: .8s }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Bölüm başlıkları biraz daha büyük & zarif */
.block-title { font-size: clamp(28px, 6.4vw, 40px); }

/* Mesaj: büyük dekoratif tırnak + iri italik */
.message-card { padding-top: 40px; }
.message-card .message-icon { display: none; }
.message-card::before { content: "\201C"; display: block; font-family: var(--font-h); font-size: 88px; line-height: .5;
  height: 46px; color: var(--gold); opacity: .42; }
.message-text { font-size: clamp(21px, 5vw, 27px); line-height: 1.65; }

/* Gün sayacı: sıcak ışıltılı rakam */
.day-counter-num { text-shadow: 0 4px 24px rgba(123,45,63,.18); }

/* Mektup: ilk harf büyük (drop cap) + imza akışı */
.letter-body > p:first-of-type::first-letter {
  font-family: var(--font-h); font-size: 3.4em; line-height: .72; float: left;
  margin: 8px 12px 0 0; color: var(--wine); }

@media (prefers-reduced-motion: reduce) {
  .cl-glow, .cl-dust span, .hero-scroll, .hero-photo .frame { animation: none; }
  .memory.is-visible .hero > * { animation: none; }
  .env-letter, .env-flap, .env-wax { transition: none; }
}

/* ════════════════ AÇIK PARŞÖMEN OKUMA - klasik mektup (Gül koyu, Mektup açık) ════════════════ */
/* Yazılar taban stilde koyu/şarap; krem kağıt kartlar parşömen zeminde yumuşak gölgeyle yükselir */
.message-card, .letter-paper, .day-counter-card, .tl-card, .gb-form, .gb-entry, .surprise-card .message-card {
  box-shadow: 0 20px 44px -26px rgba(120,75,40,.42), inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(160,120,60,.1); }
.hero-photo .frame { box-shadow: 0 26px 50px -24px rgba(120,75,40,.45), 0 0 0 1px var(--gold-soft) inset; }
.slide .frame, .tl-photo .frame { box-shadow: 0 16px 34px -22px rgba(120,75,40,.4); }
/* süzülen kalpler açık zeminde nazik */
.bg-hearts .h { color: var(--wine-l); }
