:root {
    color-scheme: dark;
    --paper: #0b0f19;
    --paper-deep: #080b12;
    --paper-light: #161c2d;
    --wine: #e88698;
    --wine-dark: #fbf5ee;
    --rose: #f29cb0;
    --rose-pale: rgba(230, 140, 160, .22);
    --gold: #dfb872;
    --ink: #e8ded2;
    --muted: #a69a8e;
    --rule: rgba(223, 184, 114, .25);
    --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
    --sans: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
}

::selection {
    background: rgba(223, 184, 114, .35);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(223, 184, 114, .35);
    color: #ffffff;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--paper);
    -webkit-tap-highlight-color: transparent !important;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 15% 10%, rgba(75, 45, 110, .32), transparent 45rem),
        radial-gradient(ellipse at 85% 65%, rgba(35, 60, 115, .35), transparent 50rem),
        radial-gradient(circle at 50% 25%, rgba(220, 185, 130, .05), transparent 35rem),
        #0b0f19;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Gökyüzünde parıldayan narin yıldızlar (abartısız, zarif) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, .8) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 22% 28%, rgba(255, 230, 180, .75) 50%, transparent 100%),
        radial-gradient(1px 1px at 42% 10%, rgba(255, 255, 255, .6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 68% 18%, rgba(255, 230, 180, .85) 50%, transparent 100%),
        radial-gradient(1px 1px at 84% 35%, rgba(255, 255, 255, .7) 50%, transparent 100%),
        radial-gradient(1px 1px at 18% 72%, rgba(255, 255, 255, .65) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 58% 82%, rgba(255, 240, 200, .75) 50%, transparent 100%),
        radial-gradient(1px 1px at 88% 78%, rgba(255, 255, 255, .6) 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 32% 55%, rgba(220, 235, 255, .8) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 92% 14%, rgba(255, 240, 200, .8) 50%, transparent 100%),
        radial-gradient(1px 1px at 4% 88%, rgba(255, 255, 255, .6) 50%, transparent 100%);
    opacity: .75;
    animation: stars-twinkle 6s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
    0% { opacity: .55; }
    100% { opacity: .9; }
}

button,
[role="button"] {
    color: inherit;
    font: inherit;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    min-height: 100vh;
    margin-inline: auto;
    padding: 26px clamp(18px, 5vw, 78px) 22px;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--rule);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.wordmark-symbol {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(223, 184, 114, .64);
    border-radius: 50%;
    color: var(--rose);
    background: rgba(22, 28, 45, .65);
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1;
    box-shadow: inset 0 0 0 4px rgba(22, 28, 45, .56);
}

.wordmark-copy {
    display: grid;
    gap: 1px;
}

.eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.45;
    text-transform: uppercase;
}

.wordmark-names {
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.3;
}

.wordmark-names span {
    color: var(--gold);
    font-style: italic;
}



.story-layout {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: start;
    gap: clamp(26px, 4.5vw, 68px);
    padding-block: clamp(30px, 4vw, 58px) 36px;
}

.story-panel {
    position: relative;
    min-width: 0;
    padding: clamp(27px, 3.8vw, 54px) clamp(24px, 4vw, 54px) clamp(28px, 4vw, 50px);
    border: 1px solid rgba(223, 184, 114, .32);
    background: linear-gradient(155deg, rgba(22, 28, 46, .86), rgba(15, 19, 32, .92));
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.story-panel::before,
.story-panel::after {
    position: absolute;
    width: 21px;
    height: 21px;
    border-color: rgba(223, 184, 114, .65);
    content: "";
    pointer-events: none;
}

.story-panel::before {
    top: 9px;
    left: 9px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.story-panel::after {
    right: 9px;
    bottom: 9px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow-rule {
    display: inline-block;
    width: 25px;
    height: 1px;
    flex: 0 0 25px;
    background: var(--gold);
}

.story-heading h1 {
    margin: 22px 0 17px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(43px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: -.052em;
    line-height: .99;
}

.story-heading h1 em,
.tree-panel-heading h2 em {
    color: var(--rose);
    font-weight: 400;
}

.story-lede {
    max-width: 39ch;
    margin: 0;
    color: #d8cec0;
    font-family: var(--serif);
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.55;
}

.story-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 21px 0 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.story-date span {
    color: var(--gold);
    font-size: 13px;
}

.letter-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 24px 0 20px;
    color: var(--gold);
}

.letter-divider > span:not(.divider-heart) {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--rule));
}

.letter-divider > span:last-child {
    transform: rotate(180deg);
}

.divider-heart {
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1;
}

.letter-copy,
.noscript-letter {
    display: none;
    color: #544746;
    font-size: 14px;
    line-height: 1.78;
}

.letter-copy.is-revealed {
    display: block;
    position: relative;
    margin-top: 22px;
    padding: 20px 22px 18px;
    border: 1px solid rgba(173, 139, 85, .38);
    background: linear-gradient(145deg, #fffdf9, #f8f0e5);
    box-shadow: 0 12px 28px rgba(71, 42, 35, .09), inset 0 0 0 4px rgba(255, 255, 255, .42);
    animation: note-arrive .7s cubic-bezier(.2, .75, .25, 1) both;
}

.letter-copy.is-revealed::before {
    display: block;
    margin: 0 0 13px;
    color: var(--gold);
    content: "BURAK'TAN SERMİN'E";
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

@keyframes note-arrive {
    from {
        opacity: 0;
        transform: translateY(12px) rotate(-.5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.letter-copy p,
.noscript-letter p {
    margin: 0 0 12px;
}

.letter-copy .letter-ending {
    margin-top: 16px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.55;
}

.letter-signoff {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
    font-style: italic;
    letter-spacing: .05em;
}

.noscript-letter {
    display: block;
}

.tree-panel {
    min-width: 0;
}

.tree-panel-heading {
    margin: 0 0 17px 7px;
}

.tree-panel-heading h2 {
    margin: 10px 0 0;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(27px, 3.1vw, 41px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.tree-frame {
    position: relative;
    padding: clamp(8px, 1.2vw, 14px);
    border: 1px solid rgba(223, 184, 114, .32);
    background: rgba(18, 23, 38, .84);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tree-frame::before {
    position: absolute;
    z-index: 2;
    inset: 5px;
    border: 1px solid rgba(223, 184, 114, .25);
    content: "";
    pointer-events: none;
}

.tree-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1100 / 680;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 85%, rgba(85, 45, 95, .35), transparent 55%),
        linear-gradient(175deg, #0e1220 0%, #151b2e 55%, #1a1e36 100%);
}

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

#canvas.hand {
    cursor: pointer;
}

.tree-caption {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 8px 4px;
}

.tree-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tree-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 30px;
    background: rgba(20, 26, 44, .8);
    border: 1px solid rgba(223, 184, 114, .32);
    color: var(--ink);
    font-size: clamp(13px, 1.4vw, 14.5px);
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    transition: all .35s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-pill-icon {
    font-size: 18px;
    animation: status-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes status-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

.tree-status-pill.is-ready {
    border-color: rgba(255, 117, 151, .85);
    background: linear-gradient(135deg, rgba(46, 22, 38, .9), rgba(20, 26, 46, .92));
    color: #fffaf4;
    box-shadow: 0 0 28px rgba(255, 117, 151, .5), 0 0 16px rgba(223, 184, 114, .35);
    animation: ready-glow 2s ease-in-out infinite alternate;
}

@keyframes ready-glow {
    0% { transform: translateY(0); box-shadow: 0 0 18px rgba(255, 117, 151, .35); }
    100% { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 117, 151, .65), 0 0 18px rgba(223, 184, 114, .45); }
}

.tree-progress-bar {
    opacity: 0;
    visibility: hidden;
    height: 6px;
    width: 100%;
    transition: opacity .4s ease, visibility .4s ease;
}

.tree-progress-wrap.is-active .tree-progress-bar {
    opacity: 1;
    visibility: visible;
}

.tree-progress-track {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    position: relative;
}

.tree-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #dfb872, #ff7597, #dfb872);
    background-size: 200% 100%;
    animation: shimmer-progress 2s linear infinite;
    transition: width .45s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 0 12px rgba(255, 117, 151, .6);
}

@keyframes shimmer-progress {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.tree-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.timer-card {
    display: none;
    grid-template-columns: minmax(215px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 28px;
    padding: 24px clamp(21px, 3.5vw, 43px);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: linear-gradient(90deg, rgba(22, 28, 46, .75), rgba(15, 19, 32, .55));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timer-copy h2 {
    margin: 7px 0 3px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(24px, 2.7vw, 34px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.timer-copy > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.timer-readout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.time-unit {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 1px;
    padding: 3px 8px;
    border-left: 1px solid var(--rule);
    text-align: center;
}

.time-unit:first-child {
    border-left: 0;
}

.digit {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(223, 184, 114, .35);
    font-family: var(--serif);
    font-size: clamp(27px, 3.3vw, 43px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.unit-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* ── Koleksiyonumuz (Sermin İçin Hazırlanan Diğer Sayfalar) ── */
.collection-section {
    margin: 36px 0 20px;
    padding: clamp(26px, 3.5vw, 40px) clamp(20px, 4vw, 44px);
    border: 1px solid rgba(223, 184, 114, .25);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20, 26, 44, .75) 0%, rgba(12, 16, 28, .85) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.collection-header {
    text-align: center;
    margin-bottom: 26px;
}

.collection-kicker-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.collection-kicker-line {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.collection-kicker-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.collection-title {
    margin: 10px 0 6px;
    color: #fffaf4;
    font-family: var(--serif);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.collection-subtitle {
    margin: 0;
    color: #c4b6a5;
    font-size: 14px;
    line-height: 1.5;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.collection-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(223, 184, 114, .22);
    border-radius: 14px;
    background: rgba(22, 28, 48, .65);
    color: var(--ink);
    text-decoration: none;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 117, 151, .6);
    background: rgba(30, 38, 64, .85);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 117, 151, .2);
}

.collection-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 117, 151, .12);
    border: 1px solid rgba(255, 117, 151, .35);
    font-size: 24px;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.collection-card:hover .collection-card-icon {
    transform: scale(1.08);
    background: rgba(255, 117, 151, .24);
    border-color: var(--rose);
}

.collection-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.collection-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.collection-card-badge {
    color: var(--gold);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.collection-card-tag {
    color: #a49688;
    font-family: var(--sans);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(223, 184, 114, .2);
    background: rgba(14, 18, 30, .4);
}

.collection-card-title {
    margin: 2px 0 4px;
    color: #ffffff;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.collection-card-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.collection-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--rose);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s ease;
}

.collection-card:hover .collection-card-cta {
    color: #ffb8c9;
}

.collection-card-arrow {
    transition: transform .2s ease;
}

.collection-card:hover .collection-card-arrow {
    transform: translateX(4px);
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding-top: 22px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: .035em;
}

.footer-flourish {
    color: var(--gold);
    font-size: 11px;
}

.browser-error {
    display: none;
    max-width: 650px;
    margin: 28px auto;
    padding: 15px 18px;
    border: 1px solid rgba(111, 36, 55, .3);
    color: var(--wine-dark);
    background: var(--paper-light);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .page-shell {
        width: min(100%, 800px);
    }

    .story-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-top: 30px;
    }

    .story-panel {
        padding: clamp(30px, 6vw, 48px);
    }

    .story-heading h1 {
        font-size: clamp(47px, 8vw, 70px);
    }

    .tree-panel-heading {
        margin-left: 2px;
    }

    .tree-panel-heading h2 br {
        display: none;
    }

    .tree-panel-heading h2 em {
        display: block;
    }

    .tree-frame {
        padding: 13px;
    }

    .timer-card {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .timer-readout {
        border-top: 1px solid var(--rule);
        padding-top: 15px;
    }
}

@media (max-width: 600px) {
    .page-shell {
        padding: 17px 15px 18px;
    }

    .masthead {
        align-items: center;
        gap: 10px;
        padding-bottom: 15px;
    }

    .wordmark {
        gap: 9px;
    }

    .wordmark-symbol {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 17px;
    }

    .wordmark .eyebrow {
        font-size: 10px;
        letter-spacing: .13em;
    }

    .wordmark-names {
        font-size: 18px;
    }

    .story-layout {
        gap: 27px;
        padding-block: 21px 26px;
    }

    .story-panel {
        padding: 30px 22px 28px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: .15em;
    }

    .story-heading h1 {
        margin: 20px 0 14px;
        font-size: clamp(40px, 12vw, 58px);
    }

    .story-lede {
        font-size: 17px;
    }

    .letter-divider {
        margin: 21px 0 17px;
    }

    .letter-copy,
    .noscript-letter {
        font-size: 13px;
        line-height: 1.75;
    }

    .letter-copy.is-revealed {
        margin-top: 18px;
        padding: 17px 16px 15px;
    }

    .tree-panel-heading {
        margin-bottom: 12px;
    }

    .tree-panel-heading h2 {
        font-size: 31px;
    }

    .tree-frame {
        padding: 8px;
    }

    .tree-caption {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 12px 3px 3px;
    }

    .tree-hint {
        font-size: 12px;
    }

    .grow-button {
        width: 100%;
        min-height: 48px;
        font-size: 13px;
    }

    .timer-card {
        gap: 16px;
        padding: 21px 14px;
    }

    .timer-copy h2 {
        font-size: 27px;
    }

    .timer-readout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 12px;
        padding-top: 14px;
    }

    .time-unit:nth-child(3) {
        border-left: 0;
    }

    .time-unit {
        padding: 4px 5px;
    }

    .digit {
        font-size: 34px;
    }

    .page-footer {
        padding-top: 17px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .page-shell {
        padding-inline: 12px;
    }

    .wordmark .eyebrow {
        letter-spacing: .09em;
    }

    .story-panel {
        padding-inline: 19px;
    }
}

/* ── Yaprak Girdabı ve Birleşme Tuvali (Petal Vortex Canvas) ── */
#coalesce-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

/* ── Gerçekçi Aşk Mektubu Objesi (SVG & Vektörel) ── */
.letter-envelope-btn {
    position: absolute;
    left: 23%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 12px;
    outline: none !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
    opacity: 0;
    transition: opacity .3s ease;
    will-change: transform, opacity;
}

.letter-envelope-btn * {
    pointer-events: none;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
    -webkit-user-select: none;
}

.letter-envelope-btn.is-visible {
    display: flex;
    opacity: 1;
    animation: envelope-arrive .6s cubic-bezier(.2, .75, .25, 1) both, envelope-float 4.4s ease-in-out .6s infinite;
}

/* "Bana Tıkla" Çağrı Rozeti */
.letter-callout-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff4d79, #e87a90);
    border: 1px solid rgba(255, 235, 200, .7);
    color: #ffffff;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(255, 77, 121, .5), 0 0 10px rgba(223, 184, 114, .4);
    animation: callout-bounce 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

.callout-star {
    font-size: 12px;
    color: #fff2cc;
    animation: star-spin 3s linear infinite;
    will-change: transform;
}

@keyframes callout-bounce {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -5px, 0); }
}

@keyframes star-spin {
    0% { transform: rotate3d(0, 0, 1, 0deg); }
    100% { transform: rotate3d(0, 0, 1, 360deg); }
}

/* Mektup Arkası Işık Dalgaları (Beacon Wave) */
.letter-envelope-btn.is-visible::before,
.letter-envelope-btn.is-visible::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    width: 140px;
    height: 140px;
    margin-left: -70px;
    margin-top: -70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 117, 151, .6);
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
    animation: beacon-wave 2.8s cubic-bezier(.2, .8, .2, 1) infinite;
}

.letter-envelope-btn.is-visible::after {
    animation-delay: 1.4s;
    border-color: rgba(223, 184, 114, .55);
}

@keyframes beacon-wave {
    0% { transform: scale3d(.6, .6, 1); opacity: 0; }
    35% { opacity: .85; }
    100% { transform: scale3d(2.4, 2.4, 1); opacity: 0; }
}

.envelope-art {
    position: relative;
    width: clamp(120px, 13vw, 150px);
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .45));
    transition: transform .25s cubic-bezier(.2, .8, .25, 1);
    will-change: transform;
}

.envelope-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.svg-letter-paper {
    transition: transform .3s cubic-bezier(.2, .8, .25, 1);
    will-change: transform;
}

.svg-wax-seal {
    transition: transform .3s ease;
    will-change: transform;
}

/* 'Bana tıkla' etiketi */
.env-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(18, 23, 40, .85);
    border: 1px solid rgba(223, 184, 114, .65);
    color: #fbeee2;
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 12px rgba(223, 184, 114, .25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: all .25s ease;
    will-change: transform;
}

.env-tag-star {
    color: var(--gold);
    font-size: 10px;
    text-shadow: 0 0 6px rgba(223, 184, 114, .6);
}

/* Hover ve Odaklanma Etkileşimleri */
.letter-envelope-btn:hover .envelope-art,
.letter-envelope-btn:focus-visible .envelope-art {
    transform: scale(1.06) rotate(1deg);
}

.letter-envelope-btn:hover .svg-letter-paper,
.letter-envelope-btn:focus-visible .svg-letter-paper {
    transform: translateY(-9px);
}

.letter-envelope-btn:hover .svg-wax-seal,
.letter-envelope-btn:focus-visible .svg-wax-seal {
    transform: translate(100px, 84px) scale(1.08);
}

.letter-envelope-btn:hover .env-tag,
.letter-envelope-btn:focus-visible .env-tag {
    background: var(--wine);
    color: #ffffff;
    border-color: var(--rose);
    box-shadow: 0 8px 24px rgba(232, 134, 152, .5), 0 0 16px rgba(232, 134, 152, .4);
    transform: scale(1.04);
}

.letter-envelope-btn:hover .env-tag .env-tag-star,
.letter-envelope-btn:focus-visible .env-tag .env-tag-star {
    color: #fff2cc;
}

/* Animasyonlar */
@keyframes envelope-arrive {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(.65);
    }
    65% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
}

@keyframes envelope-float {
    0%, 100% {
        transform: translate3d(-50%, -50%, 0) rotate(-1.5deg);
    }
    50% {
        transform: translate3d(-50%, calc(-50% - 6px), 0) rotate(1.2deg);
    }
}

/* ── Gökyüzü Teması ile Uyumlu Parıltılı Aşk Mektubu Pop-up Modal ── */
.letter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 10, 18, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 16px;
    transition: opacity .25s ease, visibility .25s ease;
}

.letter-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.letter-modal {
    position: relative;
    width: min(92vw, 560px);
    max-height: 88vh;
    overflow-y: auto;
    padding: clamp(32px, 5.5vw, 48px) clamp(24px, 5vw, 44px) clamp(36px, 6vw, 52px);
    border: 1px solid rgba(223, 184, 114, .45);
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 85% 10%, rgba(95, 45, 120, .28), transparent 50%),
        radial-gradient(ellipse at 15% 90%, rgba(35, 65, 130, .25), transparent 50%),
        linear-gradient(165deg, rgba(20, 26, 44, .96) 0%, rgba(14, 18, 32, .97) 55%, rgba(18, 22, 38, .98) 100%);
    box-shadow: 
        0 35px 85px rgba(0, 0, 0, .75), 
        0 0 35px rgba(223, 184, 114, .12),
        inset 0 0 0 1px rgba(255, 255, 255, .06), 
        inset 0 0 0 4px rgba(18, 23, 38, .85),
        inset 0 0 0 5px rgba(223, 184, 114, .25);
    transform: translate3d(0, 20px, 0) scale(.96);
    transition: transform .28s cubic-bezier(.2, .75, .25, 1);
    will-change: transform;
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 184, 114, .35) transparent;
}

.letter-modal::-webkit-scrollbar {
    width: 6px;
}

.letter-modal::-webkit-scrollbar-thumb {
    background: rgba(223, 184, 114, .35);
    border-radius: 999px;
}

.letter-modal-overlay.is-open .letter-modal {
    transform: translate3d(0, 0, 0) scale(1);
}

/* Kapat Butonu */
.letter-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 5;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(223, 184, 114, .38);
    border-radius: 50%;
    color: var(--gold);
    background: rgba(24, 30, 52, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.letter-modal-close:hover {
    border-color: var(--rose);
    color: #ffffff;
    background: var(--wine);
    box-shadow: 0 0 16px rgba(232, 134, 152, .55);
    transform: rotate(90deg);
}

/* Başlık */
.letter-modal-header {
    text-align: center;
    margin-top: 4px;
    padding-inline: 20px;
}

.letter-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--gold);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(223, 184, 114, .35);
}

.letter-modal-header h3 {
    margin: 0;
    color: #fbf5ee;
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.15;
    text-shadow: 0 0 18px rgba(251, 245, 238, .2);
}

.letter-modal-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 18px 0 22px;
    color: var(--gold);
}

.letter-modal-divider > span:not(.divider-heart) {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(223, 184, 114, .6), transparent);
}

.divider-heart {
    color: #ff6b8b;
    font-size: 15px;
    text-shadow: 0 0 12px rgba(255, 107, 139, .6);
}

/* Mektup Gövdesi */
.letter-modal-body {
    color: #eee4d6;
    font-family: var(--serif);
    font-size: clamp(14.5px, 1.55vw, 16px);
    line-height: 1.88;
    letter-spacing: .01em;
}

.letter-modal-body p {
    margin: 0 0 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.letter-proposal-line {
    margin: 24px 0 !important;
    padding: 14px 18px;
    border-left: 3px solid #ff7597;
    border-radius: 4px;
    background: rgba(255, 117, 151, .09);
    color: #ffe6ee;
    font-size: clamp(15.5px, 1.7vw, 17.5px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.8;
    box-shadow: inset 0 0 12px rgba(255, 117, 151, .05);
}

.letter-proposal-line em {
    font-style: normal;
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #ff7597;
    text-shadow: 0 0 12px rgba(255, 117, 151, .4);
}

.letter-modal-ending {
    margin-top: 26px !important;
    color: #f7b2a9;
    font-family: var(--serif);
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.55;
    text-align: right;
}

.letter-modal-signoff {
    display: inline-block;
    margin-top: 4px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    letter-spacing: .06em;
    text-shadow: 0 0 10px rgba(223, 184, 114, .3);
}

/* ── Responsive: Mektup ve modal ── */
@media (max-width: 980px) {
    .letter-envelope-btn {
        left: 23%;
        gap: 8px;
    }

    .envelope-art {
        width: 120px;
    }

    .env-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 600px) {
    .letter-envelope-btn {
        left: 24%;
        gap: 6px;
        padding: 4px;
    }

    .envelope-art {
        width: 96px;
    }

    .env-tag {
        font-size: 10px;
        padding: 4px 10px;
        gap: 4px;
    }

    .env-tag-star {
        font-size: 8px;
    }

    .letter-callout-pill {
        font-size: 9px;
        padding: 4px 10px;
        letter-spacing: .08em;
    }

    .collection-section {
        margin: 24px 0 16px;
        padding: 20px 16px;
    }

    .collection-card {
        padding: 16px 16px;
        gap: 14px;
    }

    .collection-card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .letter-modal {
        width: 96vw;
        max-height: 92vh;
        padding: 24px 18px 36px;
        border-radius: 8px;
    }

    .letter-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
