/* ============================================================
   TEMA: GÜL BAHÇESİ - dark, romantik; gerçek gül animasyonları
   entry → pop kaplama açılışı → bloklar SIRAYLA. Motif: gül.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
/* html'e arka plan VERİLMEZ. CSS kuralı: html'in kendi arka planı varsa body'ninki
   artık tuvale yayılmaz, yalnızca body kutusunun içinde boyanır - kutu bitince
   altta html'in rengi görünür ve ekranın ortasında KESKİN BİR ÇİZGİ oluşur.
   html boş bırakılınca body'nin zemini tüm tuvali (iOS safe alan dâhil) kaplar. */

/* PANELDEN DEĞİŞEN RENKLER (--kas-*): editördeki "Tema Renkleri" bölümü bu üç
   değişkeni besler. Eskiden burada sabit değerler vardı; tema custom_colors ile
   üç renk sunuyor görünse de skin hiçbirini okumadığı için pickerlar hiçbir işe
   yaramıyordu - üstelik paylaşım kartı aynı renkleri uyguladığı için kart ile
   sayfa birbirini tutmuyordu. */
:root {
    --sky-1: #1d0410; --sky-2: #160309; --sky-3: #220512;
    --cream: var(--kas-card, #2a0814);
    --rose: var(--kas-title, #ff4d6d); --rose-l: #ff8095; --rose-d: #c0162f; --rose-deep:#7c0c1f; --gold: #e7cd8f;
    --ink: var(--kas-text, #f7e6ea); --ink-2: #d9bcc4; --ink-3: #b58f9a; --muted: #8d6975;
    --line: rgba(231,205,143, 0.34); --line-soft: rgba(231,205,143, 0.18);
    --font-h: 'Playfair Display', Georgia, serif; --font-b: 'Cormorant Garamond', Georgia, serif;
    --font-caps: 'Playfair Display', serif; --font-script:'Great Vibes', cursive;
    --ease: cubic-bezier(0.22, 1, 0.36, 1); --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}
body {
    font-family: var(--font-b); color: var(--ink); line-height: 1.7; font-size: 19px;
    /* tek-bütün koyu zemin: viewport'a sabit + NEREDEYSE HOMOJEN (üst-alt kontrastı yok → bant yok) */
    background-color: #1a0410;
    background-image:
        radial-gradient(135% 100% at 50% -10%, rgba(150,22,44,0.22), transparent 70%),
        linear-gradient(180deg, #1e0512 0%, #1a0410 60%, #170310 100%);
    background-attachment: fixed; background-size: cover;
    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(--rose); color: #fff; }

/* ═══ SAHNE - bokeh + GERÇEK düşen güller (3B tumbling) ═══ */
.yard { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.42; }
.glow.g1 { width: 46vw; height: 46vw; left: -10vw; top: 2vh;   background: radial-gradient(circle, rgba(255,77,109,0.5), transparent 66%); animation: glow-float 30s ease-in-out infinite; }
.glow.g2 { width: 42vw; height: 42vw; right: -12vw; top: 40vh; background: radial-gradient(circle, rgba(124,12,31,0.55), transparent 66%); animation: glow-float 38s ease-in-out infinite -8s; }
.glow.g3 { width: 50vw; height: 42vw; left: 26vw; bottom: 4vh; background: radial-gradient(circle, rgba(231,205,143,0.22), transparent 66%); animation: glow-float 34s ease-in-out infinite -16s; }
@keyframes glow-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(2vw,-2vh) scale(1.1); } }

.roses { position: absolute; inset: 0; overflow: hidden; }
.rosef { position: absolute; top: -10%; perspective: 600px; will-change: transform; animation: rose-fall 14s linear infinite; }
@keyframes rose-fall { from { transform: translateY(-12vh); } to { transform: translateY(116vh); } }
.rosef-i { display: block; width: var(--sz,34px); height: var(--sz,34px); background: var(--img, url('/gorseller/themes/gul-bahcesi/dusen-gul-1.webp')) center/contain no-repeat;
    transform-style: preserve-3d; filter: drop-shadow(0 4px 7px rgba(0,0,0,0.45)); animation: rose-tumble var(--tb,7s) ease-in-out infinite; }
@keyframes rose-tumble {
    0%   { transform: translateX(-18px) rotateX(0deg)   rotateY(0deg)   rotateZ(-18deg); }
    50%  { transform: translateX(18px)  rotateX(180deg) rotateY(170deg) rotateZ(18deg); }
    100% { transform: translateX(-18px) rotateX(360deg) rotateY(330deg) rotateZ(-18deg); }
}

/* ═══ giriş amblemi - tatlı minik kalp ═══ */
.entry-shell { margin: 14px auto 24px; width: 86px; height: 86px; display: flex; align-items: center; justify-content: center; border-radius: 50%; position: relative; z-index: 2;
    background: radial-gradient(circle at 34% 28%, #ff8aa0, var(--rose-d) 55%, var(--rose-deep)); color: #fff;
    box-shadow: 0 16px 30px -10px rgba(0,0,0,0.6), inset 0 -8px 16px rgba(60,0,10,0.4), inset 0 3px 8px rgba(255,255,255,0.45);
    animation: shell-beat 2.6s ease-in-out infinite; }
.entry-shell svg { width: 40px; height: 40px; }
@keyframes shell-beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

/* ═══ ENTRY - bol güllü ═══ */
.entry { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.entry.is-leaving { opacity: 0; transform: scale(1.05); pointer-events: none; }
.entry-roses { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.entry-roses img { position: absolute; width: var(--w,120px); filter: drop-shadow(0 8px 16px rgba(0,0,0,0.55)); opacity: .95; }
.entry-card {
    position: relative; z-index: 5; width: 100%; max-width: 470px; padding: 58px 38px 56px;
    background: radial-gradient(ellipse at 30% 12%, rgba(192,22,47,0.4), transparent 60%), linear-gradient(160deg, rgba(46,10,22,0.9) 0%, rgba(30,5,14,0.88) 100%);
    backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 2px solid rgba(231,205,143, 0.42); border-radius: 28px; text-align: center; color: var(--ink);
    box-shadow: 0 30px 70px -28px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: entry-rise 1s var(--bounce) .3s both;
}
@keyframes entry-rise { from { opacity: 0; transform: translateY(28px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ec-side { position: absolute; top: 30px; width: 76px; opacity: .92; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)); pointer-events: none; z-index: 1; }
.ec-l { left: 10px; transform: rotate(-16deg); }
.ec-r { right: 10px; transform: rotate(16deg); }
.entry-orn { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 230px; margin: 0 auto 30px; }
.entry-orn .ln { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.entry-orn svg { width: 20px; height: 20px; color: var(--rose); }
.entry-eyebrow { font-family: var(--font-caps); font-size: 12px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding-left: 0.34em; }
.entry-couple { font-family: var(--font-script); font-weight: 400; font-size: clamp(48px, 9vw, 74px); color: #fff; line-height: 1; margin: 0 0 4px; text-shadow: 0 0 30px rgba(255,77,109,0.3); }
.entry-amp { color: var(--rose); margin: 0 4px; }
.entry-sub { font-family: var(--font-h); font-style: italic; font-weight: 500; font-size: clamp(18px, 3vw, 24px); color: var(--ink-2); margin: 0 0 26px; }
.entry-btn { min-height: 54px; padding: 0 32px; background: linear-gradient(180deg, var(--rose-d), var(--rose-deep)); color: #fff; border: 0; border-radius: 30px; font-family: var(--font-caps); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 14px 28px -10px rgba(140,15,36,0.7), 0 0 0 1px rgba(231,205,143,0.45); transition: transform .25s var(--bounce), box-shadow .25s var(--ease); }
.entry-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 40px -12px rgba(140,15,36,0.8), 0 0 0 1px var(--gold); }
.entry-btn svg { width: 16px; height: 16px; }
.entry-foot { margin-top: 22px; font-family: var(--font-caps); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); padding-left: 0.28em; }
.entry-brand { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; font-family: var(--font-caps); font-size: 11px; font-weight: 500; letter-spacing: 0.34em; color: rgba(247,230,234,0.4); }

/* ═══ OPENING - ekranı boşluksuz kaplayan POP güller ═══ */
.opening { position: fixed; inset: 0; z-index: 110; overflow: hidden; pointer-events: none; }
.opening.is-done { display: none; }
.op-veil { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(192,22,47,.55), rgba(18,2,9,.92)); opacity: 0; transition: opacity .45s ease; }
.opening.is-filling .op-veil { opacity: 1; }
.opening.is-clearing .op-veil { opacity: 0; transition-delay: .3s; }
.pop-roses { position: absolute; inset: 0; }
.pop-rose { position: absolute; object-fit: contain; transform: translate(-50%, -50%) scale(0) rotate(var(--r,0deg)); opacity: 0; will-change: transform, opacity;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.55)); transition: transform .5s var(--bounce), opacity .35s ease; }
.opening.is-filling .pop-rose { transform: translate(-50%, -50%) scale(1) rotate(var(--r,0deg)); opacity: 1; transition: transform .85s var(--ease), opacity .6s ease; transition-delay: var(--in,0s); }
.opening.is-clearing .pop-rose { transform: translate(-50%, -50%) scale(0) rotate(var(--r,0deg)); opacity: 0; transition: transform .6s var(--ease), opacity .5s ease; transition-delay: var(--out,0s); }

/* ═══ MEMORY ═══ */
.memory { position: relative; z-index: 5; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity .9s var(--ease); }
.memory.is-visible { opacity: 1; }
.block { position: relative; max-width: 760px; margin: 0 auto; padding: 56px 24px; z-index: 5; }
@media (min-width: 768px) { .block { padding: 80px 32px; } }
.block-head { text-align: center; margin-bottom: 36px; }
.block-eyebrow { font-family: var(--font-caps); font-size: 12px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding-left: 0.34em; }
.block-title { font-family: var(--font-script); font-weight: 400; font-size: clamp(42px, 8vw, 64px); line-height: 1; color: #fff; margin: 0; }
.block-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 240px; margin: 14px auto 0; }
.block-ornament-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.block-ornament svg, .paw-ic { width: 20px; height: 20px; color: var(--rose); flex-shrink: 0; }

.frame { position: relative; padding: 9px; background: linear-gradient(135deg, #fff, #ffe9ee); border-radius: 18px; border: 1px solid rgba(231,205,143,0.5); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); transition: transform .4s var(--bounce), box-shadow .4s var(--ease); overflow: hidden; }
.frame img { border-radius: 11px; width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.frame:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8); }
.frame.frame-sm { padding: 6px; border-radius: 14px; }
.frame.frame-sm img { aspect-ratio: 4/3; border-radius: 9px; }

.hero { position: relative; z-index: 5; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 24px 60px; overflow: hidden; }
.hero-eyebrow { font-family: var(--font-caps); font-size: 12px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; padding-left: 0.34em; animation: fade-up .9s var(--ease) .2s both; }
.hero-divider { width: 60px; height: 2px; border-radius: 2px; background: var(--gold); margin: 0 auto 26px; animation: scale-x .8s var(--ease) .3s both; }
@keyframes scale-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-couple { font-family: var(--font-script); font-weight: 400; font-size: clamp(62px, 13vw, 116px); color: #fff; line-height: 1; margin: 0 0 12px; text-shadow: 0 0 40px rgba(255,77,109,0.3); animation: fade-up .9s var(--ease) .4s both; }
.hero-couple .amp { color: var(--rose); }
.hero-title { font-family: var(--font-h); font-style: italic; font-weight: 500; margin: 0 0 24px; line-height: 1.1; color: var(--ink); animation: fade-up .9s var(--ease) .5s both; }
.hero-title em { display: block; font-style: italic; font-size: clamp(20px, 3.6vw, 30px); color: var(--ink-2); }
.hero-since { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-caps); font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 38px; padding-left: 0.26em; animation: fade-up .9s var(--ease) .6s both; }
.hero-since-line { width: 28px; height: 1px; background: var(--gold); }
.hero-photo { max-width: 330px; width: 80%; animation: fade-up 1.1s var(--bounce) .7s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: var(--font-caps); font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); padding-left: 0.26em; }
.hero-scroll::before { content: ''; display: block; width: 1px; height: 24px; margin: 0 auto 8px; background: linear-gradient(180deg, transparent, var(--rose)); animation: pulse-line 2.4s ease-in-out infinite; }
@keyframes pulse-line { 0%, 100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(0.4); opacity: 0.2; } }

.day-counter { text-align: center; }
.day-counter-card { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 44px 56px; background: rgba(46,10,22,0.66); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 26px 50px -26px rgba(0,0,0,0.6); position: relative; }
.day-counter-star { color: var(--rose); margin-bottom: 6px; }
.day-counter-star svg, .day-counter-star .paw-ic { width: 32px; height: 32px; }
.day-counter-eyebrow { font-family: var(--font-caps); font-size: 11px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; padding-left: 0.34em; }
.day-counter-num { font-family: var(--font-h); font-weight: 700; font-size: clamp(64px, 14vw, 120px); line-height: 1; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 6px 0; text-shadow: 0 0 40px rgba(255,77,109,0.35); }
.day-counter-label { font-family: var(--font-script); font-weight: 400; font-size: clamp(28px, 4.4vw, 40px); color: var(--rose-l); line-height: 1.2; }
.day-counter-foot { margin-top: 16px; font-family: var(--font-caps); font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); padding-left: 0.26em; }

.message-card { position: relative; padding: 46px 32px; background: rgba(46,10,22,0.66); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 26px 50px -26px rgba(0,0,0,0.6); }
@media (min-width: 768px) { .message-card { padding: 60px 48px; } }
.message-icon { display: flex; justify-content: center; margin-bottom: 16px; color: var(--rose); }
.message-icon svg, .message-icon .paw-ic { width: 38px; height: 38px; }
.message-text { font-family: var(--font-h); font-style: italic; font-weight: 500; font-size: clamp(21px, 4.2vw, 28px); line-height: 1.6; color: var(--ink); text-align: center; margin: 0; }

.slider { position: relative; max-width: 560px; margin: 0 auto; }
.slider-track { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 20px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.slide.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.slide .frame { width: 100%; height: 100%; padding: 10px; }
.slide .frame img { height: 100%; aspect-ratio: auto; }
.slide-cap { position: absolute; left: 28px; bottom: 26px; font-family: var(--font-script); font-weight: 400; font-size: 36px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.7); z-index: 3; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 26px; }
.slider-arrow { width: 42px; height: 42px; border-radius: 50%; background: rgba(46,10,22,0.85); border: 1px solid var(--line); color: var(--rose-l); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -8px rgba(0,0,0,0.6); transition: all .2s var(--bounce); }
.slider-arrow:hover { background: var(--rose); color: #fff; border-color: var(--rose); transform: scale(1.08); }
.slider-arrow svg { width: 15px; height: 15px; }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(231,205,143,0.35); cursor: pointer; transition: all .3s var(--ease); }
.dot.is-active { width: 30px; border-radius: 6px; background: var(--rose); }

.note { max-width: 540px; text-align: center; }
.note-text { font-family: var(--font-script); font-weight: 400; font-size: clamp(30px, 6vw, 48px); line-height: 1.35; color: var(--rose-l); }
.note-text::before, .note-text::after { display: inline-block; font-family: var(--font-h); color: var(--gold); opacity: 0.7; font-size: .8em; line-height: 0; vertical-align: -0.15em; margin: 0 0.06em; }
.note-text::before { content: '“'; } .note-text::after { content: '”'; }

.letter { max-width: 640px; }
.letter-paper { position: relative; padding: 44px 34px 38px; background: rgba(46,10,22,0.66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 26px 50px -26px rgba(0,0,0,0.6); }
@media (min-width: 768px) { .letter-paper { padding: 60px 52px 50px; } }
.letter-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-caps); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; padding-left: 0.3em; }
.letter-mark::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.letter-to { font-family: var(--font-script); font-weight: 400; font-size: clamp(40px, 6vw, 56px); color: var(--rose-l); margin-bottom: 16px; line-height: 1; }
.letter-body { font-family: var(--font-b); font-size: 19px; line-height: 1.9; color: var(--ink-2); }
.letter-body p { margin: 0 0 14px; } .letter-body p:last-child { margin-bottom: 0; }
.letter-from { margin-top: 26px; text-align: right; }
.letter-from-name { font-family: var(--font-script); font-weight: 400; font-size: 42px; color: var(--rose-l); }

.timeline-list { list-style: none; margin: 0; padding: 0 0 0 38px; position: relative; }
.timeline-list::before { content: ''; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--rose) 0%, var(--rose-d) 50%, var(--gold) 100%); opacity: 0.6; }
.tl-item { position: relative; padding: 0 0 40px 24px; } .tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -38px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 2px solid var(--rose); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.6); }
.tl-dot svg, .tl-dot .paw-ic { width: 15px; height: 15px; color: var(--rose); }
.tl-card { display: flex; gap: 18px; flex-wrap: wrap; padding: 18px; background: rgba(46,10,22,0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 38px -22px rgba(0,0,0,0.6); }
.tl-photo { width: 130px; flex-shrink: 0; } .tl-text { flex: 1; min-width: 200px; }
.tl-date { display: inline-block; font-family: var(--font-caps); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; padding: 3px 13px; background: rgba(255,77,109, 0.14); border: 1px solid var(--line); border-radius: 20px; }
.tl-title { font-family: var(--font-h); font-weight: 600; font-size: clamp(20px, 4vw, 24px); line-height: 1.25; color: var(--ink); margin: 0 0 6px; }
.tl-desc { font-family: var(--font-b); font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 0; }

.surprise { text-align: center; padding: 50px 24px; }
.surprise-orb-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 24px; padding: 44px; cursor: pointer; }
.surprise-ring { position: absolute; top: 27px; left: 50%; transform: translateX(-50%); width: 150px; height: 150px; border: 3px dashed rgba(231,205,143,0.5); border-radius: 50%; animation: ring-spin 28s linear infinite; pointer-events: none; }
.surprise-ring.r2 { top: 44px; width: 116px; height: 116px; border: 2px solid rgba(255,77,109,0.45); animation: ring-pulse 2.8s ease-out infinite; }
@keyframes ring-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes ring-pulse { 0% { transform: translateX(-50%) scale(0.78); opacity: 0.75; } 100% { transform: translateX(-50%) scale(1.5); opacity: 0; } }
.surprise-orb { position: relative; z-index: 1; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ff8aa0 0%, var(--rose-d) 45%, var(--rose-deep) 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 22px 44px -12px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,0.4); transition: transform .4s var(--bounce); color: #fff; }
.surprise-orb-wrap:hover .surprise-orb { transform: scale(1.08) rotate(-4deg); }
.surprise-orb svg, .surprise-orb .paw-ic { width: 52px; height: 52px; }
.surprise-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-script); font-weight: 400; font-size: 34px; color: var(--rose-l); }
.surprise-label svg { width: 22px; height: 22px; }
.surprise-card { margin: 16px auto 0; max-width: 480px; display: none; animation: reveal-up .7s var(--bounce) both; }
.surprise-card.is-open { display: block; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.surprise-text { font-family: var(--font-h); font-style: italic; font-weight: 500; font-size: clamp(21px, 4.2vw, 27px); line-height: 1.6; color: var(--ink); text-align: center; margin: 0; }

/* ===== İMZA AN: GERÇEK GÜL + YAPRAK PATLAMASI ===== */
.rose-surprise .rose-pop-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 16px; padding: 46px 30px 6px; cursor: pointer; background: none; border: 0; }
.rose-surprise .rose-pop-wrap::before { content: ''; position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,128,149,0.32) 0%, rgba(255,128,149,0) 66%); pointer-events: none; animation: rose-halo 4.5s ease-in-out infinite; }
@keyframes rose-halo { 0%,100% { opacity: .55; transform: translateX(-50%) scale(.9); } 50% { opacity: 1; transform: translateX(-50%) scale(1.1); } }
.rose-pop-img { position: relative; z-index: 1; width: clamp(140px, 42vw, 184px); height: auto; filter: drop-shadow(0 22px 34px rgba(124,12,31,0.6)); animation: rose-sway 5.5s ease-in-out infinite; transform-origin: 50% 72%; }
@keyframes rose-sway { 0%,100% { transform: scale(1) rotate(-2.5deg); } 50% { transform: scale(1.05) rotate(2.5deg); } }
.rose-pop-wrap:hover .rose-pop-img { animation-play-state: paused; transform: scale(1.07) translateY(-4px); transition: transform .4s var(--ease); }
/* yaprak patlaması (gerçek düşen-gül görselleri) */
.rose-burst { position: absolute; top: 112px; left: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.rb-petal { position: absolute; left: 0; top: 0; width: var(--sz, 22px); height: auto; transform: translate(-50%, -50%) scale(0); opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 4px 7px rgba(0,0,0,0.42)); }
/* yaprak KONFETİ patlaması (gerçek düşen-gül görselleri, yerçekimiyle düşer) */
.rose-pop-wrap.is-gone .rb-petal { animation: petal-confetti .9s ease-out var(--dl, 0ms) forwards; }
@keyframes petal-confetti {
    0%  { transform: translate(-50%, -50%) scale(.2) rotate(0deg); opacity: 0; }
    14% { opacity: 1; transform: translate(calc(-50% + var(--tx, 0px) * 0.4), calc(-50% + var(--ty, 0px) * 0.3)) scale(1.1) rotate(calc(var(--rot, 180deg) * 0.3)); }
    78% { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(1) rotate(var(--rot, 180deg)); opacity: 0; }
}
/* tıklayınca gül HEMEN küçülüp kaybolur */
.rose-pop-wrap.is-gone .rose-pop-img { animation: rose-shrink-out .4s var(--bounce) forwards; }
@keyframes rose-shrink-out {
    0%   { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(36deg); opacity: 0; }
}
.rose-pop-wrap.is-gone::before { opacity: 0; transition: opacity .4s ease; }
.rose-ic { width: 22px; height: 22px; color: var(--rose); }

@media (prefers-reduced-motion: reduce) {
    .rose-pop-img, .rose-surprise .rose-pop-wrap::before { animation: none; }
}

.guestbook { max-width: 640px; }
.gb-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.gb-entry { padding: 20px 24px; background: rgba(46,10,22,0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 32px -20px rgba(0,0,0,0.6); }
.gb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.gb-head strong { font-family: var(--font-script); font-weight: 400; font-size: 24px; color: var(--rose-l); }
.gb-head time { font-family: var(--font-caps); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gb-entry p { font-family: var(--font-b); font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.gb-form { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: rgba(46,10,22,0.5); border: 1px solid var(--line-soft); border-radius: 20px; }
.gb-form input, .gb-form textarea { width: 100%; padding: 12px 16px; background: rgba(20,3,10,0.6); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 12px; font-family: var(--font-b); font-size: 17px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.gb-form input::placeholder, .gb-form textarea::placeholder { color: var(--muted); }
.gb-form textarea { resize: vertical; min-height: 72px; }
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255,77,109,0.16); }
.gb-form button { align-self: flex-end; min-height: 46px; padding: 0 26px; background: linear-gradient(180deg, var(--rose-d), var(--rose-deep)); color: #fff; border: 0; border-radius: 24px; font-family: var(--font-caps); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; box-shadow: 0 8px 20px -8px rgba(140,15,36,0.6); transition: transform .2s var(--bounce); }
.gb-form button:hover { transform: translateY(-2px) scale(1.03); }

.footer { text-align: center; padding: 60px 24px 40px; }
.footer-star { color: var(--rose); margin-bottom: 12px; }
.footer-star svg, .footer-star .paw-ic { width: 38px; height: 38px; }
.footer-couple { font-family: var(--font-script); font-weight: 400; font-size: clamp(50px, 10vw, 76px); color: #fff; margin: 0 0 8px; line-height: 1; }
.footer-since { font-family: var(--font-caps); font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; padding-left: 0.28em; }
.footer-counter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: rgba(46,10,22,0.7); border: 1px solid var(--line); border-radius: 24px; font-family: var(--font-caps); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.footer-counter svg { color: var(--rose); }
.footer-counter-num { color: var(--rose-l); font-weight: 700; font-variant-numeric: tabular-nums; }
.footer-brand { margin-top: 30px; font-family: var(--font-caps); font-size: 11px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); padding-left: 0.34em; }

/* ortalı, yuvarlak yüzen pill (full-width değil) - safe-area + alt ilerleme çubuğu */
.player { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: min(340px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-radius: 100px; overflow: hidden;
  background: rgba(26,3,9,0.94); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6);
  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,77,109,0.16); }
.player-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--rose-d), var(--rose-l)); }
.player-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.player-btn { width: 30px; height: 30px; border-radius: 50%; color: var(--rose-l); display: flex; align-items: center; justify-content: center; }
.player-btn svg { width: 16px; height: 16px; }
.player-btn.player-play { width: 34px; height: 34px; background: linear-gradient(180deg, var(--rose-d), var(--rose-deep)); color: #fff; }
.player-info { flex: 1; min-width: 0; }
.player-title { font-family: var(--font-h); font-style: italic; font-weight: 500; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta { font-family: var(--font-caps); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 1px; }
.player-note { flex-shrink: 0; color: var(--rose); } .player-note svg { width: 18px; height: 18px; }

.vignette { position: absolute; inset: 0; background: radial-gradient(135% 115% at 50% 32%, transparent 64%, rgba(0,0,0,0.36) 100%); }

.kas-rise { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.kas-rise.is-in { opacity: 1; transform: none; }
.kas-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--rose-l), var(--rose-d)); box-shadow: 0 0 10px rgba(255,77,109,0.5); border-radius: 0 3px 3px 0; transition: width .12s linear; opacity: 0; }
body.is-reading .kas-progress { opacity: 1; }

@media (max-width: 560px) {
    .entry-roses img { width: calc(var(--w, 120px) * 0.56) !important; }
    .ec-side { width: 54px; top: 16px; }
    .entry-shell { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
