/* ============================================================
   TEMA: VINTAGE ANILAR - sepia + dusty rust + el yazısı
   Albüm açma intro + polaroid çerçeve + toz parçacıkları
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }

:root {
    --bg-cream:    #f5ede1;
    --bg-sepia:    #ebdcc0;
    --paper:       #fdf5e8;
    --paper-aged:  #f3e4cb;
    --ink:         #3a2415;
    --ink-2:       #5a3a25;
    --ink-3:       #7a5a3d;
    --muted:       #a08868;
    --rust:        #b85a3a;
    --rust-d:      #8c3f25;
    --rust-l:      #d18260;
    --rose-dust:   #c2877a;
    --gold-dim:    #a68a4d;
    --sepia:       #c9b48a;
    --line:        rgba(166,138,77,0.32);

    --font-tw:     'Special Elite', 'Courier New', monospace;
    --font-h:      'Cormorant Garamond', Georgia, serif;
    --font-b:      'Lora', Georgia, serif;
    --font-hand:   'Caveat', cursive;
    --font-caps:   'Cormorant SC', Georgia, serif;
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: var(--font-b); color: var(--ink); line-height: 1.7;
    /* Aged paper / tobacco - Romantik'in pembe-krem ailesinden net ayrı */
    background:
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(74, 47, 26, 0.22) 100%),
        radial-gradient(ellipse at 20% 0%,  rgba(184, 140, 70, 0.20), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(166, 110, 50, 0.18), transparent 60%),
        #e9d0a0;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Eski kâğıt grain overlay - daha güçlü */
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.18  0 0 0 0 0.08  0 0 0 0.1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.65; mix-blend-mode: multiply;
}
/* Köşelerde hafif yanık kenar (eski fotoğraf vignette) */
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(circle at 0% 0%,     rgba(58, 32, 12, 0.35), transparent 35%),
        radial-gradient(circle at 100% 0%,   rgba(58, 32, 12, 0.30), transparent 35%),
        radial-gradient(circle at 0% 100%,   rgba(58, 32, 12, 0.32), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(58, 32, 12, 0.35), transparent 35%);
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; color: inherit; background: 0; border: 0; padding: 0; }
::selection { background: var(--rust); color: var(--paper); }

/* ─── 1. ENTRY - albüm kapağı ─── */
.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.04); pointer-events: none; }
.entry-bg {
    position: absolute; inset: 0;
    background-image: none;
    background-size: cover; background-position: center;
    filter: brightness(0.35) saturate(0.7) sepia(0.5);
}
.entry-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(var(--kas-title-rgb),0.55), transparent 60%),
        radial-gradient(ellipse at 75% 85%, rgba(58,36,21,0.7), transparent 65%);
}

/* ═══ ESKİ FİLM efekti (girişin arkası): gren + çizikler + köşe karartma + titreme ═══ */
.film-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
/* film greni - SVG noise, kare kare zıplar (steps) */
.film-fx::before {
    content: ''; position: absolute; inset: -60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    opacity: .13; mix-blend-mode: overlay;
    animation: film-grain .9s steps(4) infinite;
}
/* sinema vinyeti + çok hafif ışık titremesi */
.film-fx::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(115% 95% at 50% 46%, transparent 55%, rgba(26,14,6,.55) 100%);
    animation: film-flicker 5.5s ease-in-out infinite;
}
@keyframes film-grain {
    0% { transform: translate(0,0); } 25% { transform: translate(-38px,22px); }
    50% { transform: translate(24px,-30px); } 75% { transform: translate(-20px,-14px); }
    100% { transform: translate(0,0); }
}
@keyframes film-flicker { 0%,100% { opacity: .92; } 48% { opacity: 1; } 52% { opacity: .85; } 60% { opacity: .98; } }
/* makara çizikleri - ince dikey çizgiler, ara ara görünüp kayar */
.film-scratch { position: absolute; top: -5%; bottom: -5%; width: 1px; opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(240,222,190,.5) 18%, rgba(240,222,190,.22) 52%, transparent);
    animation: film-scratch 7s linear infinite; }
.film-scratch.s1 { left: 22%; animation-delay: 0s; }
.film-scratch.s2 { left: 58%; animation-delay: 2.6s; animation-duration: 8.5s; }
.film-scratch.s3 { left: 81%; animation-delay: 5.1s; animation-duration: 6.2s; }
@keyframes film-scratch {
    0%, 88% { opacity: 0; transform: translateX(0) scaleY(.9); }
    90% { opacity: .8; transform: translateX(2px); }
    93% { opacity: .25; transform: translateX(-2px); }
    96% { opacity: .6; transform: translateX(1px) scaleY(1); }
    100% { opacity: 0; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .film-fx::before, .film-fx::after, .film-scratch { animation: none; }
    .film-scratch { opacity: 0; }
}

.dust-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.dust {
    position: absolute; top: -30px;
    width: 5px; height: 5px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 225, 150, 0.95), rgba(218, 175, 95, 0.5) 60%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 210, 130, 0.5);
    opacity: 0;
    animation: dust-drift 20s linear infinite;
}
.dust:nth-child(1)  { left:  4%; width: 6px; height: 6px; animation-duration: 22s; animation-delay:  0s; }
.dust:nth-child(2)  { left: 12%; width: 4px; height: 4px; animation-duration: 26s; animation-delay: -4s; }
.dust:nth-child(3)  { left: 20%; width: 8px; height: 8px; animation-duration: 24s; animation-delay: -8s; }
.dust:nth-child(4)  { left: 28%; width: 5px; height: 5px; animation-duration: 28s; animation-delay: -2s; }
.dust:nth-child(5)  { left: 36%; width: 7px; height: 7px; animation-duration: 23s; animation-delay: -12s; }
.dust:nth-child(6)  { left: 44%; width: 4px; height: 4px; animation-duration: 25s; animation-delay: -6s; }
.dust:nth-child(7)  { left: 52%; width: 9px; height: 9px; animation-duration: 27s; animation-delay: -10s; }
.dust:nth-child(8)  { left: 60%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: -3s; }
.dust:nth-child(9)  { left: 68%; width: 6px; height: 6px; animation-duration: 29s; animation-delay: -14s; }
.dust:nth-child(10) { left: 76%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: -9s; }
.dust:nth-child(11) { left: 84%; width: 7px; height: 7px; animation-duration: 22s; animation-delay: -15s; }
.dust:nth-child(12) { left: 92%; width: 5px; height: 5px; animation-duration: 26s; animation-delay: -7s; }
.dust:nth-child(13) { left: 8%;  width: 4px; height: 4px; animation-duration: 28s; animation-delay: -11s; }
.dust:nth-child(14) { left: 32%; width: 6px; height: 6px; animation-duration: 23s; animation-delay: -5s; }
.dust:nth-child(15) { left: 48%; width: 4px; height: 4px; animation-duration: 25s; animation-delay: -13s; }
.dust:nth-child(16) { left: 64%; width: 7px; height: 7px; animation-duration: 27s; animation-delay: -1s; }
.dust:nth-child(17) { left: 80%; width: 4px; height: 4px; animation-duration: 21s; animation-delay: -16s; }
.dust:nth-child(18) { left: 96%; width: 6px; height: 6px; animation-duration: 24s; animation-delay: -4s; }
@keyframes dust-drift {
    0%   { transform: translateY(-30px) translateX(0)    rotate(0); opacity: 0; }
    8%   { opacity: 0.9; }
    50%  { transform: translateY(50vh)   translateX(45px) rotate(180deg); opacity: 0.7; }
    92%  { opacity: 0.5; }
    100% { transform: translateY(110vh)  translateX(-35px) rotate(360deg); opacity: 0; }
}

.album {
    position: relative; z-index: 3;
    width: 100%; max-width: 380px;
    aspect-ratio: 3/4;
    background:
        radial-gradient(ellipse at 30% 25%, rgba(255,245,232,0.12), transparent 60%),
        linear-gradient(135deg, #8c3f25 0%, #6b2e1a 50%, #4a2415 100%);
    border-radius: 6px;
    padding: 50px 32px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    box-shadow:
        0 1px 0 rgba(243,228,203,0.18) inset,
        0 0 0 1px rgba(201,180,138,0.4) inset,
        0 60px 120px -30px rgba(0,0,0,0.65),
        0 20px 40px -10px rgba(0,0,0,0.45);
    color: #f3e4cb;
    overflow: hidden;
    animation: album-rise 1s var(--ease) .3s both;
}
.album::before {
    content: ''; position: absolute; inset: 16px;
    border: 1px solid rgba(201,180,138,0.45);
    border-radius: 3px; pointer-events: none;
}
.album::after {
    content: ''; position: absolute; inset: 22px;
    border-top: 1px solid rgba(201,180,138,0.22);
    border-bottom: 1px solid rgba(201,180,138,0.22);
    pointer-events: none;
}
@keyframes album-rise {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.album-spine {
    position: absolute; top: 24px; bottom: 24px; left: 8px;
    width: 4px;
    background: repeating-linear-gradient(180deg, transparent 0, transparent 6px, rgba(201,180,138,0.5) 6px, rgba(201,180,138,0.5) 9px);
}
.album-ribbon { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.album-ribbon-line { width: 32px; height: 1px; background: var(--sepia); opacity: 0.7; }
.album-ribbon-icon { color: var(--sepia); }
.album-ribbon-icon svg { width: 16px; height: 16px; display: block; }
.album-eyebrow {
    font-family: var(--font-tw); font-size: 11px;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: rgba(243,228,203,0.7); margin-bottom: 6px;
}
.album-couple {
    font-family: var(--font-h); font-style: italic; font-weight: 500;
    font-size: clamp(36px, 7vw, 50px); line-height: 1.05;
    margin: 6px 0 4px; color: var(--paper);
}
.album-amp {
    font-family: var(--font-hand); font-style: normal; font-weight: 600;
    color: var(--rust-l); margin: 0 4px;
}
.album-year {
    font-family: var(--font-tw); font-size: 13px;
    letter-spacing: 0.25em; color: var(--sepia);
    margin-bottom: 28px; padding-left: 0.25em;
}
.album-title {
    font-family: var(--font-hand);
    font-size: clamp(28px, 6vw, 38px);
    color: var(--rust-l); line-height: 1.15;
    margin-bottom: 32px; transform: rotate(-2deg);
}
.album-btn {
    min-height: 50px; padding: 0 30px;
    background: transparent; color: var(--paper);
    border: 1px solid var(--sepia); border-radius: 3px;
    font-family: var(--font-tw); font-size: 11px;
    letter-spacing: 0.35em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 12px;
    transition: background .2s ease, color .2s ease;
}
.album-btn:hover { background: var(--sepia); color: var(--ink); }
.album-btn svg { width: 12px; height: 12px; }
.album-foot {
    margin-top: 26px;
    font-family: var(--font-tw); font-size: 9px;
    letter-spacing: 0.4em; color: rgba(243,228,203,0.5);
    padding-left: 0.4em;
}
.entry-brand {
    position: absolute; bottom: 22px; left: 50%;
    transform: translateX(-50%); z-index: 3;
    font-family: var(--font-tw); font-size: 9.5px;
    letter-spacing: 0.5em; color: rgba(243,228,203,0.6);
}

/* ─── 2. OPENING - albüm 3D açılma ─── */
.opening {
    position: fixed; inset: 0; z-index: 95;
    display: flex; align-items: center; justify-content: center;
    background: #2a1810; opacity: 0;
    transition: opacity .5s ease; overflow: hidden;
    perspective: 1500px;
}
.opening.is-active { opacity: 1; }
.opening.is-done   { opacity: 0; pointer-events: none; }
.opening-bg {
    position: absolute; inset: 0;
    background-image: none;
    background-size: cover; background-position: center;
    filter: brightness(0.25) saturate(0.6) sepia(0.5);
    z-index: 0;
}

.book {
    position: relative; z-index: 2;
    width: min(420px, 80vw); aspect-ratio: 3/4;
    transform-style: preserve-3d;
    animation: book-in 1s var(--ease) both;
}
@keyframes book-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
.book-page {
    position: absolute; inset: 0;
    background: var(--paper-aged);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(166,138,77,0.3) inset, 0 20px 60px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px; color: var(--ink); overflow: hidden;
}
.book-page-letter {
    font-family: var(--font-hand);
    font-size: clamp(28px, 5vw, 36px);
    color: var(--rust); text-align: center;
    line-height: 1.3; transform: rotate(-3deg);
}
.book-page-stamp {
    margin-top: 24px;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px dashed var(--rust);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-tw); font-size: 9px;
    letter-spacing: 0.18em; color: var(--rust);
    text-transform: uppercase; transform: rotate(-12deg);
    opacity: 0.7; text-align: center; line-height: 1.2; padding: 8px;
}
.book-cover {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 25%, rgba(255,245,232,0.12), transparent 60%),
        linear-gradient(135deg, #8c3f25 0%, #6b2e1a 50%, #4a2415 100%);
    border-radius: 4px;
    transform-origin: left center;
    transform: rotateY(0);
    transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 5;
    box-shadow:
        0 1px 0 rgba(243,228,203,0.18) inset,
        0 0 0 1px rgba(201,180,138,0.4) inset,
        0 20px 60px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 30px; color: #f3e4cb; text-align: center;
}
.book-cover::before {
    content: ''; position: absolute; inset: 12px;
    border: 1px solid rgba(201,180,138,0.5); border-radius: 2px;
}
.book-cover-couple {
    font-family: var(--font-h); font-style: italic;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--paper); margin-bottom: 6px;
}
.book-cover-year {
    font-family: var(--font-tw); font-size: 11px;
    letter-spacing: 0.35em; color: var(--sepia);
    padding-left: 0.35em;
}
.book.is-open .book-cover { transform: rotateY(-160deg); }

/* ─── 3. MEMORY PAGE ─── */
.memory {
    position: relative;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    opacity: 0; transition: opacity .9s var(--ease);
    z-index: 1;
}
.memory.is-visible { opacity: 1; }

/* Yağan toz parçacıkları sayfa boyunca */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }

.block {
    position: relative;
    max-width: 760px; margin: 0 auto;
    padding: 56px 24px; z-index: 2;
}
@media (min-width: 768px) { .block { padding: 80px 32px; } }

.block-head { text-align: center; margin-bottom: 36px; }
.block-eyebrow {
    font-family: var(--font-tw);
    font-size: 11px; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--rust);
    margin-bottom: 12px; padding-left: 0.32em;
}
.block-title {
    font-family: var(--font-h); font-style: italic; font-weight: 500;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.15; color: var(--ink);
    margin: 0; letter-spacing: -0.01em;
}
.block-ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; max-width: 220px;
    margin: 16px auto 0; opacity: 0.65;
}
.block-ornament-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.block-ornament svg { width: 14px; height: 14px; color: var(--rust); flex-shrink: 0; }

/* Polaroid çerçeve (vintage'a özel) */
.polaroid {
    background: #fff;
    padding: 14px 14px 56px;
    box-shadow:
        0 1px 0 rgba(166,138,77,0.2) inset,
        0 10px 30px -8px rgba(58,36,21,0.4),
        0 24px 50px -16px rgba(58,36,21,0.3);
    position: relative;
    transition: transform .4s var(--ease);
}
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.85) contrast(0.95); }
.polaroid-caption {
    position: absolute;
    bottom: 14px; left: 14px; right: 14px;
    font-family: var(--font-hand);
    font-size: 18px;
    color: var(--ink-2);
    text-align: center;
    transform: rotate(-1deg);
}

/* ─── HERO blok (polaroid yığını) ─── */
.hero {
    position: relative; z-index: 2;
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 100px 24px 60px;
    overflow: hidden;
}
.hero-eyebrow {
    font-family: var(--font-tw);
    font-size: 11px; letter-spacing: 0.45em;
    text-transform: uppercase; color: var(--rust);
    margin-bottom: 18px; padding-left: 0.45em;
    animation: fade-up .9s var(--ease) .2s both;
}
.hero-couple {
    font-family: var(--font-h); font-style: italic; font-weight: 500;
    font-size: clamp(48px, 10vw, 84px);
    color: var(--ink); line-height: 1;
    margin: 0 0 8px; letter-spacing: -0.02em;
    animation: fade-up .9s var(--ease) .3s both;
}
.hero-couple em { font-family: var(--font-hand); font-style: normal; color: var(--rust); margin: 0 8px; }
.hero-title {
    font-family: var(--font-hand);
    font-size: clamp(28px, 5vw, 42px);
    color: var(--rust); line-height: 1.15;
    margin: 0 0 22px; transform: rotate(-1deg);
    animation: fade-up .9s var(--ease) .4s both;
}
.hero-since {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-tw); font-size: 11px;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 38px; padding-left: 0.4em;
    animation: fade-up .9s var(--ease) .5s both;
}
.hero-since-line { width: 30px; height: 1px; background: var(--gold-dim); }

/* Polaroid stack: 3 polaroid yan yana, hafif rotate */
.hero-stack {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    gap: -20px;
    max-width: 580px; width: 100%;
    animation: fade-up 1.1s var(--ease) .7s both;
}
.hero-stack .polaroid { width: 200px; flex-shrink: 0; }
.hero-stack .polaroid:nth-child(1) { transform: rotate(-6deg) translateX(20px); z-index: 1; }
.hero-stack .polaroid:nth-child(2) { transform: rotate(2deg)  translateY(-10px); z-index: 3; }
.hero-stack .polaroid:nth-child(3) { transform: rotate(5deg)  translateX(-20px); z-index: 2; }
@media (max-width: 600px) {
    .hero-stack .polaroid { width: 150px; }
}

@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-tw); font-size: 10px;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--muted); opacity: 0.7; padding-left: 0.4em;
}
.hero-scroll::before {
    content: ''; display: block; width: 1px; height: 24px;
    margin: 0 auto 8px;
    background: linear-gradient(180deg, transparent, var(--rust));
    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 ─── */
.day-counter { text-align: center; }
.day-counter-card {
    display: inline-flex; flex-direction: column;
    align-items: center; gap: 6px;
    padding: 40px 56px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 30px 60px -20px rgba(58,36,21,0.2);
    position: relative;
}
.day-counter-card::before {
    content: ''; position: absolute; inset: 10px;
    border: 1px solid rgba(166,138,77,0.3);
    border-radius: 2px; pointer-events: none;
}
.day-counter-card::after {
    /* Soluk vintage damgası */
    content: 'EST. 2009'; position: absolute;
    top: -14px; right: 16px;
    background: var(--bg-cream);
    padding: 0 10px;
    font-family: var(--font-tw); font-size: 9px;
    letter-spacing: 0.3em; color: var(--rust);
    transform: rotate(2deg);
}
.day-counter-eyebrow {
    font-family: var(--font-tw); font-size: 10px;
    letter-spacing: 0.5em; text-transform: uppercase;
    color: var(--rust); margin-bottom: 4px; padding-left: 0.5em;
}
.day-counter-num {
    font-family: var(--font-h); font-style: italic; font-weight: 500;
    font-size: clamp(64px, 14vw, 120px);
    line-height: 1; color: var(--rust);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin: 6px 0;
}
.day-counter-label {
    font-family: var(--font-hand);
    font-size: clamp(22px, 3.5vw, 28px);
    color: var(--ink); line-height: 1.3;
}
.day-counter-foot {
    margin-top: 18px;
    font-family: var(--font-tw); font-size: 10px;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--muted); padding-left: 0.4em;
}

/* ─── MESSAGE blok ─── */
.message-card {
    position: relative;
    padding: 46px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -24px rgba(58,36,21,0.22);
}
@media (min-width: 768px) { .message-card { padding: 60px 48px; } }
.message-card::before {
    content: ''; position: absolute; inset: 10px;
    border: 1px solid rgba(166,138,77,0.3); border-radius: 2px;
    pointer-events: none;
}
.message-icon { display: flex; justify-content: center; margin-bottom: 18px; color: var(--rust); }
.message-icon svg { width: 32px; height: 32px; }
.message-text {
    font-family: var(--font-h); font-style: italic;
    font-size: clamp(18px, 4vw, 22px);
    line-height: 1.7; color: var(--ink);
    text-align: center; margin: 0;
}
.message-sig {
    margin-top: 26px;
    font-family: var(--font-hand);
    font-size: 32px; color: var(--rust);
    text-align: center; line-height: 1;
}

/* ─── GALLERY (polaroid grid) ─── */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 720px; margin: 0 auto;
}
.gallery-grid .polaroid {
    transform: rotate(var(--rot, 0deg));
}
.gallery-grid .polaroid:nth-child(1) { --rot: -3deg; }
.gallery-grid .polaroid:nth-child(2) { --rot: 2deg; }
.gallery-grid .polaroid:nth-child(3) { --rot: -1deg; }
.gallery-grid .polaroid:nth-child(4) { --rot: 4deg; }
.gallery-grid .polaroid:nth-child(5) { --rot: -2deg; }
.gallery-grid .polaroid:nth-child(6) { --rot: 1deg; }
.gallery-grid .polaroid:hover { transform: rotate(0) translateY(-4px); z-index: 5; }
@media (max-width: 720px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ─── NOTE blok ─── */
.note { max-width: 520px; text-align: center; }
.note-text {
    font-family: var(--font-hand);
    font-size: clamp(26px, 5vw, 36px);
    line-height: 1.4; color: var(--rust);
    transform: rotate(-1deg);
}
.note-tape {
    /* Yapışkan bant efekti */
    position: relative;
    padding: 30px 30px;
    background: rgba(253,245,232,0.6);
}
.note-tape::before, .note-tape::after {
    content: ''; position: absolute;
    width: 70px; height: 18px;
    background: rgba(201,180,138,0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.note-tape::before { top: -6px; left: 20%; transform: rotate(-4deg); }
.note-tape::after  { bottom: -6px; right: 20%; transform: rotate(3deg); }

/* ─── LETTER blok (mektup paper) ─── */
.letter { max-width: 640px; }
.letter-paper {
    position: relative;
    padding: 44px 34px 38px;
    background:
        /* Yatay kağıt çizgileri (notebook line feel) */
        repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(var(--kas-title-rgb),0.08) 31px, rgba(var(--kas-title-rgb),0.08) 32px),
        var(--paper);
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.5) inset,
        0 1px 2px rgba(58,36,21,0.08),
        0 12px 28px -12px rgba(58,36,21,0.22),
        0 30px 60px -32px rgba(58,36,21,0.3);
}
@media (min-width: 768px) { .letter-paper { padding: 64px 56px 52px; } }
.letter-mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-tw); font-size: 10px;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--rust); margin-bottom: 24px; padding-left: 0.4em;
}
.letter-mark::before { content: ''; width: 24px; height: 1px; background: var(--gold-dim); }
.letter-date {
    font-family: var(--font-tw); font-size: 12px;
    color: var(--ink-3); margin-bottom: 6px;
    text-align: right;
}
.letter-to {
    font-family: var(--font-hand);
    font-size: clamp(32px, 5vw, 42px);
    color: var(--rust);
    margin-bottom: 18px; line-height: 1.1;
    transform: rotate(-1deg);
}
.letter-body {
    font-family: var(--font-b); font-style: italic;
    font-size: 15.5px; line-height: 2;
    color: var(--ink-2);
}
.letter-body p { margin: 0 0 14px; }
.letter-body p:last-child { margin-bottom: 0; }
.letter-from { margin-top: 30px; text-align: right; }
.letter-from-name {
    font-family: var(--font-hand);
    font-size: 30px; color: var(--rust);
    transform: rotate(-2deg);
    display: inline-block;
}

/* ─── TIMELINE (eski takvim yaprakları) ─── */
.timeline-list {
    list-style: none; margin: 0;
    padding: 0 0 0 36px; position: relative;
}
.timeline-list::before {
    content: ''; position: absolute;
    left: 13px; top: 14px; bottom: 14px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--rust) 0, var(--rust) 6px, transparent 6px, transparent 12px);
    opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 40px 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute; left: -36px; top: 6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--rust);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(var(--kas-title-rgb),0.25);
}
.tl-dot svg { width: 12px; height: 12px; color: var(--rust); }
.tl-card {
    display: flex; gap: 18px; flex-wrap: wrap;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 12px 28px -14px rgba(58,36,21,0.18);
}
.tl-photo { width: 130px; flex-shrink: 0; }
.tl-photo .polaroid { padding: 8px 8px 28px; }
.tl-photo .polaroid img { aspect-ratio: 4/3; }
.tl-photo .polaroid-caption { font-size: 13px; bottom: 6px; left: 8px; right: 8px; }
.tl-text { flex: 1; min-width: 200px; }
.tl-date {
    display: inline-block;
    font-family: var(--font-tw); font-size: 10px;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 10px;
    padding: 3px 12px 3px calc(12px + 0.32em);
    background: rgba(var(--kas-title-rgb),0.08);
    border: 1px solid rgba(var(--kas-title-rgb),0.18);
    border-radius: 2px;
}
.tl-title {
    font-family: var(--font-h); font-style: italic; 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-style: italic;
    font-size: 14.5px; line-height: 1.7;
    color: var(--ink-2); margin: 0;
}

/* ─── SURPRISE (eski madalyon orb) ─── */
.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-orb-wrap::before {
    content: ''; position: absolute;
    top: 4px; left: 50%; transform: translateX(-50%);
    width: 196px; height: 196px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--kas-title-rgb),0.2) 0%, transparent 66%);
    pointer-events: none;
}
.surprise-ring {
    position: absolute; top: 27px; left: 50%;
    transform: translateX(-50%);
    width: 150px; height: 150px;
    border: 2px dashed rgba(var(--kas-title-rgb),0.5);
    border-radius: 50%;
    animation: ring-spin 28s linear infinite;
    pointer-events: none;
}
.surprise-ring.r2 {
    top: 44px;
    width: 116px; height: 116px;
    border: 1.5px solid rgba(var(--kas-title-rgb),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.65; }
    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 32% 26%, var(--rust-l) 0%, var(--rust) 52%, var(--rust-d) 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 20px 48px -10px rgba(var(--kas-title-rgb),0.5),
        inset 0 2px 8px rgba(255,255,255,0.25),
        inset 0 -12px 22px rgba(0,0,0,0.22);
    transition: transform .4s var(--ease);
    color: #fff;
}
.surprise-orb-wrap:hover .surprise-orb { transform: scale(1.08); }
.surprise-orb svg { width: 44px; height: 44px; }
.surprise-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-hand);
    font-size: 24px; color: var(--rust);
    transform: rotate(-1deg);
}
.surprise-label svg { width: 19px; height: 19px; opacity: .85; }
.surprise-card {
    margin: 16px auto 0; max-width: 480px;
    display: none;
    animation: reveal-up .7s cubic-bezier(0.34, 1.4, 0.5, 1) 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-size: clamp(18px, 4vw, 21px);
    line-height: 1.7; color: var(--ink);
    text-align: center; margin: 0;
}

/* ─── GUESTBOOK (eski deftere yazılmış imza defteri) ─── */
.guestbook { max-width: 640px; }
.gb-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.gb-entry {
    padding: 20px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    position: relative;
}
.gb-entry::before {
    /* Çizgili defter kâğıdı çizgisi */
    content: ''; position: absolute;
    left: 16px; top: 12px; bottom: 12px;
    width: 1px; background: var(--rust); opacity: 0.4;
}
.gb-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px; padding-left: 14px;
}
.gb-head strong {
    font-family: var(--font-hand);
    font-size: 22px; color: var(--rust);
}
.gb-head time {
    font-family: var(--font-tw); font-size: 9.5px;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--muted); padding-left: 0.25em;
}
.gb-entry p {
    font-family: var(--font-b); font-style: italic;
    font-size: 14.5px; line-height: 1.7;
    color: var(--ink-2); margin: 0;
    padding-left: 14px;
}
.gb-form {
    display: flex; flex-direction: column; gap: 10px;
    padding: 20px;
    background: rgba(235,220,192,0.5);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.gb-form input, .gb-form textarea {
    width: 100%; padding: 11px 14px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: var(--font-b); font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}
.gb-form textarea { resize: vertical; min-height: 70px; }
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--rust); }
.gb-form button {
    align-self: flex-end;
    min-height: 44px; padding: 0 24px;
    background: var(--rust); color: var(--paper);
    border: 1px solid var(--rust-d); border-radius: 3px;
    font-family: var(--font-tw); font-size: 11px;
    letter-spacing: 0.32em; text-transform: uppercase;
    padding-left: calc(24px + 0.32em);
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 14px rgba(140,63,37,0.3);
    transition: background .2s var(--ease);
}
.gb-form button:hover { background: var(--rust-d); }

/* ─── FOOTER ─── */
.footer { text-align: center; padding: 60px 24px 40px; }
.footer-stamp {
    display: inline-block; margin-bottom: 16px;
    width: 76px; height: 76px;
    border-radius: 50%;
    border: 2px dashed var(--rust);
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--rust); transform: rotate(-8deg);
    font-family: var(--font-tw); font-size: 9px;
    letter-spacing: 0.18em; text-transform: uppercase;
    line-height: 1.2; padding: 8px;
    opacity: 0.85;
}
.footer-stamp svg { width: 18px; height: 18px; margin-bottom: 2px; }
.footer-couple {
    font-family: var(--font-hand);
    font-size: clamp(36px, 7vw, 46px);
    color: var(--rust); margin: 14px 0 8px; line-height: 1;
    transform: rotate(-1deg);
}
.footer-since {
    font-family: var(--font-tw); font-size: 10.5px;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 24px; padding-left: 0.4em;
}
.footer-counter {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px 8px calc(16px + 0.22em);
    background: var(--paper);
    border: 1px solid var(--line); border-radius: 3px;
    font-family: var(--font-tw); font-size: 10.5px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-2);
}
.footer-counter-num { font-weight: 700; color: var(--rust); font-variant-numeric: tabular-nums; }
.footer-brand {
    margin-top: 32px;
    font-family: var(--font-tw); font-size: 9.5px;
    letter-spacing: 0.5em; text-transform: uppercase;
    color: var(--muted); opacity: 0.7; padding-left: 0.5em;
}

/* ═══ STICKY MÜZİK PLAYER (vintage radyo hissi) ═══ */
/* ortalı, yuvarlak yüzen pill (full-width değil) - diğer temalarla aynı düzen */
.player {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    width: min(360px, calc(100% - 32px));
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    border-radius: 100px; overflow: hidden;
    background: linear-gradient(180deg, rgba(245,237,225,0.96) 0%, rgba(235,220,192,0.96) 100%);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gold-dim); box-shadow: 0 18px 40px -14px rgba(58,36,21,0.5);
    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(var(--kas-title-rgb),0.15);
}
.player-progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--rust), var(--rust-l));
    transition: width .2s linear;
}
.player-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.player-btn {
    width: 30px; height: 30px; border-radius: 50%;
    color: var(--rust);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.player-btn:hover { background: rgba(var(--kas-title-rgb),0.1); }
.player-btn svg { width: 16px; height: 16px; }
.player-btn.player-play {
    width: 34px; height: 34px;
    background: linear-gradient(180deg, var(--rust), var(--rust-d));
    color: var(--paper); border: 1px solid var(--rust-d);
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -4px rgba(140,63,37,0.45);
}
.player-btn.player-play:hover { background: linear-gradient(180deg, var(--rust-l), var(--rust)); }
.player-btn.player-play svg { width: 14px; height: 14px; }
.player-info { flex: 1; min-width: 0; }
.player-title {
    font-family: var(--font-h); font-style: italic;
    font-size: 14px; font-weight: 500; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-meta {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-tw); font-size: 10px;
    letter-spacing: 0.22em; color: var(--muted);
    margin-top: 2px; padding-left: 0.22em;
    font-variant-numeric: tabular-nums;
}
.player-meta span:nth-child(2) { opacity: 0.5; }
.player-note { flex-shrink: 0; color: var(--rust); opacity: 0.7; }
.player-note svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
    .player-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === Düzenlenebilir renkler: bg / başlık(rust) / metin(ink) / kart(paper) === */
body.kas-tpl-vintage-anilar {
    --kas-bg: #e9d0a0; --kas-bg-rgb: 233,208,160;
    --kas-title: #b85a3a; --kas-title-rgb: 184,90,58;
    --kas-text: #3a2415; --kas-text-rgb: 58,36,21;
    --kas-card: #fdf5e8; --kas-card-rgb: 253,245,232;
    --rust: var(--kas-title); --rust-d: var(--kas-title); --rust-l: var(--kas-title); --rose-dust: var(--kas-title);
    --ink: var(--kas-text); --ink-2: var(--kas-text);
    --paper: var(--kas-card); --paper-aged: var(--kas-card);
    background:
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(74,47,26,0.22) 100%),
        radial-gradient(ellipse at 20% 0%, rgba(184,140,70,0.20), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(166,110,50,0.18), transparent 60%),
        var(--kas-bg);
    background-attachment: fixed;
}
