
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --paper: #f8f0e4;
    --paper2: #fffaf1;
    --ink: #352a27;
    --muted: #81716a;
    --rose: #b45d69;
    --rose-dark: #914653;
    --line: #d9c8b5;
    --night: #090e27;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
    --hand: 'Caveat', cursive;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.paper-page {
    background:
        radial-gradient(ellipse at 20% 5%, #fff9ed 0, transparent 40%),
        radial-gradient(ellipse at 90% 90%, #ead9c5 0, transparent 40%),
        var(--paper);
    position: relative;
    overflow-x: hidden;
}

.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .15;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.entry-wrap {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 44px 20px;
}

.letter-card {
    background: rgba(255, 250, 241, .88);
    border: 1px solid #e2d2bd;
    box-shadow: 0 22px 70px #59402a18, 0 3px 9px #59402a0b;
    position: relative;
}

.entry-card {
    width: min(100%, 620px);
    padding: clamp(36px, 7vw, 72px);
    text-align: center;
    transform: rotate(-.35deg);
    transition: transform .7s ease, opacity .7s ease, box-shadow .7s ease;
}

.entry-card:before,
.entry-card:after {
    content: '';
    position: absolute;
    width: 78px;
    height: 20px;
    background: #d8b8a080;
    top: -9px;
    left: calc(50% - 39px);
    transform: rotate(-2deg);
    box-shadow: 0 1px 2px #5a392015;
}

.entry-card:after {
    width: 32px;
    height: 32px;
    border: 1px solid #cdb59d;
    background: transparent;
    border-radius: 50%;
    top: auto;
    left: auto;
    right: 18px;
    bottom: 18px;
    box-shadow: none;
}

.entry-decoration {
    position: absolute;
    top: 8%;
    left: 12%;
    font-size: 54px;
    color: #bd8a83;
    opacity: .48;
    transform: rotate(-20deg);
}

.eyebrow {
    font-size: .67rem;
    letter-spacing: .2em;
    font-weight: 700;
    color: var(--rose);
    margin: 0 0 20px;
}

.entry-card h1,
.section-heading h1,
.universe-title h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 0;
}

.entry-card h1 em,
.section-heading h1 em,
.universe-title h1 em {
    font-weight: 400;
    color: var(--rose);
    font-style: italic;
}

.intro {
    max-width: 410px;
    margin: 22px auto 32px;
    color: #76665f;
    line-height: 1.8;
    font-size: .95rem;
}

.password-form {
    text-align: left;
    max-width: 410px;
    margin: 0 auto;
}

.password-form label {
    display: block;
    font-size: .8rem;
    color: #6f5c54;
    margin-bottom: 9px;
}

.input-row {
    display: flex;
    gap: 9px;
}

.input-row input {
    min-width: 0;
    flex: 1;
    width: 100%;
    background: #fffdf8;
    border: 1px solid #d8c5b1;
    border-radius: 2px;
    padding: 14px 15px;
    letter-spacing: .22em;
    outline: none;
    color: var(--ink);
}

.input-row input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px #b45d691a;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 13px 19px;
    cursor: pointer;
    font-size: .79rem;
    font-weight: 600;
    letter-spacing: .025em;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible {
    outline: 3px solid #c17c84;
    outline-offset: 4px;
}

.button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.button-dark {
    background: #40302e;
    color: #fff8ef;
}

.button-dark:hover {
    background: #624542;
}

.button-outline {
    border-color: #c8b5a1;
    color: #4a3935;
    background: #fff9ef88;
}

.button-outline:hover {
    background: #fffaf4;
}

.button-rose {
    background: var(--rose);
    color: white;
}

.button-rose:hover {
    background: var(--rose-dark);
}

.form-message {
    min-height: 24px;
    font-size: .8rem;
    color: var(--rose-dark);
    margin: 13px 0 0;
    line-height: 1.5;
}

.tiny-stamp {
    margin: 28px auto 0;
    border: 1px solid #cba9a0;
    color: var(--rose);
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: .78rem;
    transform: rotate(0deg);
}

.handwritten {
    font-family: var(--hand);
    font-size: 1.45rem;
    color: #99716b;
    margin: 13px 0 0;
}

.floating-note {
    position: absolute;
    font-family: var(--hand);
    font-size: 1.35rem;
    line-height: 1.05;
    color: #9c756e;
    transform: rotate(-9deg);
    padding: 15px 20px;
    background: #fff6dfb8;
    box-shadow: 0 5px 20px #4930220b;
}

.note-left {
    left: 5%;
    bottom: 17%;
}

.note-right {
    right: 5%;
    top: 18%;
    transform: rotate(8deg);
}

.entry-card.is-opening {
    transform: scale(1.025) rotate(0);
    box-shadow: 0 30px 90px #59402a35;
}

.page-success:after {
    content: '';
    position: fixed;
    inset: 0;
    margin: auto;
    width: clamp(10rem, 40vw, 28rem);
    height: clamp(10rem, 40vw, 28rem);
    display: block;
    pointer-events: none;
    background: #b45d6950;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='%23000' d='M50 86 8 45C-7 30 4 5 25 5c12 0 20 7 25 17C55 12 63 5 75 5c21 0 32 25 17 40Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='%23000' d='M50 86 8 45C-7 30 4 5 25 5c12 0 20 7 25 17C55 12 63 5 75 5c21 0 32 25 17 40Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    animation: heartBloom 2.8s ease forwards;
    z-index: 5;
}

@keyframes heartBloom {
    0% {
        opacity: 0;
        transform: scale(.2);
    }
    30% {
        opacity: .5;
    }
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

.page-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px clamp(20px, 5vw, 72px);
    gap: 20px;
}

.page-header .eyebrow {
    margin: 0;
    text-align: right;
    font-size: .61rem;
}

.wordmark {
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: .05em;
}

.wordmark span {
    color: var(--rose);
    font-size: .9em;
}

.album-main,
.finale-main {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 24px 75px;
}

.section-heading {
    text-align: center;
    margin: 15px auto 40px;
    max-width: 680px;
}

.section-heading .eyebrow {
    margin-bottom: 13px;
}

.section-heading h1 {
    font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.7;
    margin: 18px auto 0;
}

.album-stage {
    perspective: 1800px;
    max-width: 880px;
    margin: 0 auto;
}

.album-book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    min-height: 435px;
    padding: 18px 20px;
    background: #63483c;
    border: 8px solid #795a4a;
    border-radius: 5px;
    box-shadow: 0 24px 50px #3c261f30, 0 4px 0 #a58168 inset;
    transform-style: preserve-3d;
    transition: transform .35s ease;
}

.album-book:before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #00000012 0%, transparent 5%, transparent 95%, #00000012);
}

.album-spine {
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 18px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #b99a7c, #5e4336 48%, #c3a184);
    z-index: 2;
    box-shadow: 0 0 9px #26171166;
}

.album-page-left,
.album-page-right {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(120deg, #f5ead8, #fff8ed 52%, #eee0ce);
    padding: 22px 20px;
    border: 1px solid #d5c1a8;
    box-shadow: inset 0 0 25px #8c674414;
}

.album-page-left {
    border-radius: 3px 0 0 3px;
}

.album-page-right {
    border-radius: 0 3px 3px 0;
}

.polaroid {
    position: relative;
    width: min(100%, 275px);
    padding: 12px 12px 16px;
    background: #fffdf7;
    box-shadow: 0 9px 22px #49322420;
    border: 1px solid #e7ded1;
    transform: rotate(-2deg);
    align-self: center;
}

.polaroid-1,
.polaroid-3 {
    transform: rotate(2.3deg);
}

.polaroid-2 {
    transform: rotate(-1.7deg);
}

.polaroid-0 {
    transform: rotate(-2.5deg);
}

.photo-frame {
    height: 215px;
    background: #e9dfd1;
    overflow: hidden;
    position: relative;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #9a8171;
    background: linear-gradient(145deg, #eee2d2, #f8eee0);
}

.photo-placeholder span {
    font-size: 2.5rem;
    color: #bd8b88;
}

.photo-placeholder small {
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: .65rem;
}

.photo-placeholder em {
    font-family: var(--hand);
    font-size: 1.35rem;
}

.polaroid h3 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 500;
    margin: 12px 2px 5px;
}

.polaroid > p {
    font-family: var(--hand);
    font-size: 1.08rem;
    color: #8c7167;
    margin: 0 2px;
    line-height: 1.15;
}

.photo-number {
    position: absolute;
    right: 13px;
    bottom: 12px;
    font-size: .56rem;
    color: #a99b8b;
    letter-spacing: .1em;
}

.album-last-note {
    text-align: center;
    color: #94776a;
    padding: 20px;
}

.album-last-note > span {
    font-size: 2.3rem;
    color: #bc8884;
}

.album-last-note p {
    font-family: var(--hand);
    font-size: 1.4rem;
    margin: 12px 0;
}

.album-last-note h2 {
    font-family: var(--serif);
    font-size: 2.7rem;
    line-height: 1.1;
    font-weight: 400;
    color: #493733;
    margin: 0 0 15px;
}

.album-last-note h2 em {
    color: var(--rose);
}

.album-last-note small {
    font-family: var(--hand);
    font-size: 1.2rem;
}

.turn-forward {
    transform: rotateY(-3deg) translateX(3px);
}

.turn-back {
    transform: rotateY(3deg) translateX(-3px);
}

.album-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 25px auto 0;
}

.page-count {
    font-family: var(--serif);
    font-size: .9rem;
    color: #80665b;
    letter-spacing: .1em;
}

.album-hint {
    text-align: center;
    color: #927e71;
    font-size: .75rem;
    margin: 18px 0 28px;
}

.center-action {
    text-align: center;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(20px, 5vw, 72px);
    border-top: 1px solid #cbb9a66b;
    color: #8b756a;
    font-size: .72rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer span {
    font-family: var(--hand);
    font-size: 1.2rem;
}

/* ========================================
   BİZİM EVRENİMİZ
   ======================================== */

.universe-page {
    background:
        radial-gradient(ellipse at 50% 45%, #192653 0, #0b1230 45%, #070b1c 100%);
    color: #f9f1e8;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.universe-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 25%, #b45d6922, transparent 32%),
        radial-gradient(ellipse at 78% 70%, #6878cf20, transparent 34%);
}

.starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.background-star {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff8dc;
    opacity: .3;
    box-shadow: 0 0 8px #c7d5ff;
    animation: twinkle var(--duration) ease-in-out var(--delay) infinite alternate;
}

@keyframes twinkle {
    to {
        opacity: .95;
        transform: scale(1.8);
    }
}

.universe-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 27px clamp(20px, 5vw, 72px);
}

.wordmark-light {
    color: #fff2e6;
}

.wordmark-light span {
    color: #e6a2ae;
}

.universe-header .eyebrow {
    color: #aebbe9;
    margin: 0;
    text-align: right;
    font-size: .61rem;
}

.universe-main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 70px;
}

.universe-title {
    text-align: center;
}

.universe-title .eyebrow {
    color: #c2c9f5;
    margin-bottom: 14px;
}

.universe-title h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    color: #fff7ed;
}

.universe-title h1 em {
    color: #e5a8b5;
}

.universe-title > p:last-child {
    color: #bac3e1;
    font-size: .9rem;
    margin: 18px 0 0;
}

.constellation {
    height: clamp(390px, 52vw, 560px);
    min-height: 0;
    max-width: 920px;
    position: relative;
    margin: 10px auto 0;
}

.constellation:before {
    content: '';
    position: absolute;
    inset: 12% 7%;
    border: 1px solid #b7c3ff14;
    border-radius: 50%;
    transform: rotate(-13deg);
}

.constellation:after {
    content: '';
    position: absolute;
    inset: 20% 16%;
    border: 1px solid #b7c3ff10;
    border-radius: 50%;
    transform: rotate(22deg);
}

.memory-star {
    position: absolute;
    z-index: 1;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    color: #fff4cb;
    cursor: pointer;
    padding: 10px;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 44px;
}

.star-core {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
    filter: drop-shadow(0 0 8px #a9b8ff);
    transition: transform .25s ease, color .25s ease;
}

.memory-star:before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #a9b8ff12;
    filter: blur(9px);
    transition: background .25s ease;
}

.memory-star:hover .star-core,
.memory-star:focus-visible .star-core {
    transform: scale(1.5);
    color: #fff;
}

.memory-star.is-discovered .star-core {
    color: #f2b9c4;
    filter: drop-shadow(0 0 12px #f2a5b8);
}

.star-label {
    font-size: .68rem;
    color: #c3cbed;
    white-space: nowrap;
    text-shadow: 0 2px 8px #060a20;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-count {
    text-align: center;
    font-size: .75rem;
    letter-spacing: .08em;
    color: #9caad6;
    margin: -3px 0 26px;
}

.universe-next {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.button-starlight {
    background: #f4e8d8;
    color: #272747;
}

.button-starlight:hover {
    background: #fff8ed;
}

.site-footer-dark {
    border-color: #9da9e51a;
    color: #aeb8dc;
}

.memory-modal[hidden],
.closing-scene[hidden] {
    display: none;
}

.memory-modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 22px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: #05091bd9;
    backdrop-filter: blur(7px);
}

.memory-card {
    position: relative;
    z-index: 1;
    width: min(100%, 490px);
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    padding: 43px 38px 35px;
    background: linear-gradient(135deg, #fff8ed, #f0e2cf);
    color: #3c302f;
    text-align: center;
    border: 1px solid #d8c2a6;
    box-shadow: 0 30px 90px #0007;
    animation: cardIn .35s ease both;
    outline: none;
}

.memory-card:before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid #d9c6af;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    color: #8b7166;
    cursor: pointer;
}

.memory-sparkle {
    font-size: 2rem;
    color: #b45d69;
}

.memory-card .eyebrow {
    font-size: .59rem;
    margin: 12px 0 15px;
}

.memory-card h2 {
    font: 400 2rem var(--serif);
    margin: 0 0 16px;
}

.memory-card > p:not(.eyebrow) {
    font: 1.15rem/1.65 var(--hand);
    color: #796259;
    margin: 0 auto 25px;
    max-width: 360px;
}

.modal-open {
    overflow: hidden;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   SON MEKTUP
   ======================================== */

.finale-main {
    padding-top: 12px;
}

.final-letter {
    width: min(100%, 720px);
    margin: 0 auto;
    position: relative;
    min-height: 280px;
    perspective: 1000px;
}

.letter-seal {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 57px;
    height: 57px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #a74f5d;
    color: #fff0e6;
    border: 4px double #d9a8a0;
    box-shadow: 0 4px 14px #6d393326;
    transition: opacity .4s, transform .4s;
}

.letter-inside {
    background: linear-gradient(135deg, #fff9ed, #f0e2cf);
    border: 1px solid #ddc9b0;
    box-shadow: 0 18px 45px #5a3b251c;
    padding: clamp(32px, 6vw, 60px);
    position: relative;
    overflow: hidden;
    transform-origin: top center;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1), box-shadow .7s;
}

.letter-inside:before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid #d7c2a8;
    pointer-events: none;
}

.letter-inside:after {
    content: '';
    position: absolute;
    right: 26px;
    bottom: 3px;
    width: 6rem;
    height: 6rem;
    background: #b45d690b;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='%23000' d='M50 86 8 45C-7 30 4 5 25 5c12 0 20 7 25 17C55 12 63 5 75 5c21 0 32 25 17 40Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='%23000' d='M50 86 8 45C-7 30 4 5 25 5c12 0 20 7 25 17C55 12 63 5 75 5c21 0 32 25 17 40Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
}

.letter-inside h2 {
    font: 400 2rem var(--serif);
    margin: 0 0 20px;
}

.letter-copy {
    font: 1.05rem/1.95 var(--serif);
    color: #65524b;
    opacity: .15;
    filter: blur(3px);
    transform: translateY(12px);
    transition: opacity .9s ease .35s, filter .9s ease .35s, transform .9s ease .35s;
}

.letter-copy p {
    margin: 0 0 17px;
}

.letter-signature {
    text-align: right;
    position: relative;
    z-index: 1;
}

.is-open .letter-inside {
    transform: rotateX(0);
    box-shadow: 0 24px 55px #5a3b2525;
}

.is-open .letter-copy {
    opacity: 1;
    filter: none;
    transform: none;
}

.is-open .letter-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
}

.finale-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px auto 0;
}

.closing-scene {
    position: relative;
    text-align: center;
    padding: 45px 20px 15px;
    animation: cardIn .7s ease both;
}

.closing-heart {
    font-size: 4.4rem;
    color: var(--rose);
    animation: heartbeat 1.4s ease-in-out infinite;
}

.closing-scene h2 {
    font: italic 400 clamp(2.3rem, 5vw, 3.7rem) var(--serif);
    margin: 0 0 10px;
}

.closing-scene p {
    color: #806b60;
    margin: 0 0 25px;
}

.closing-scene .text-link {
    display: block;
    margin: 20px auto 0;
    font-size: .8rem;
    color: #8c6c65;
}

.closing-visible {
    display: block;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.12);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.08);
    }
}

/* ========================================
   TABLET VE MOBİL
   ======================================== */

@media (max-width: 700px) {
    .entry-decoration {
        left: 4%;
        top: 4%;
        font-size: 35px;
    }

    .floating-note {
        font-size: 1.05rem;
        padding: 10px 12px;
    }

    .note-left {
        left: 2%;
        bottom: 6%;
    }

    .note-right {
        right: 2%;
        top: 7%;
    }

    .entry-card {
        padding: 44px 23px;
    }

    .entry-card h1 {
        font-size: clamp(2.35rem, 11vw, 3.5rem);
    }

    .input-row {
        flex-direction: column;
    }

    .input-row .button {
        width: 100%;
    }

    .page-header {
        padding: 20px;
        align-items: flex-start;
    }

    .page-header .eyebrow {
        max-width: 190px;
        line-height: 1.6;
    }

    .album-main,
    .finale-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .album-book {
        min-height: 370px;
        padding: 10px 9px;
        border-width: 5px;
    }

    .album-spine {
        width: 10px;
        top: 5px;
        bottom: 5px;
    }

    .album-page-left,
    .album-page-right {
        padding: 10px 8px;
    }

    .polaroid {
        padding: 7px 7px 13px;
        width: 100%;
    }

    .photo-frame {
        height: clamp(140px, 39vw, 220px);
    }

    .polaroid h3 {
        font-size: .84rem;
        margin-top: 9px;
    }

    .polaroid > p {
        font-size: .95rem;
    }

    .polaroid:before {
        width: 43px;
        left: calc(50% - 21px);
    }

    .album-controls {
        gap: 12px;
    }

    .album-controls .button {
        padding: 12px 11px;
        font-size: .7rem;
    }

    .page-count {
        font-size: .75rem;
    }

    .album-last-note h2 {
        font-size: 1.9rem;
    }

    .album-last-note small {
        font-size: 1rem;
    }

    .universe-header {
        padding: 20px;
    }

    .universe-header .eyebrow {
        max-width: 190px;
        line-height: 1.6;
    }

    .universe-main {
        padding: 22px 12px 32px;
    }

    .universe-title {
        margin-bottom: 10px;
    }

    /* iPhone ekranında yıldızlar için yeterli dikey alan */
    .constellation {
        height: 600px;
        min-height: 600px;
        max-height: none;
        margin-top: 20px;
        overflow: visible;
    }

    .star-label {
        font-size: .58rem;
        max-width: 95px;
    }

    .memory-star {
        padding: 6px;
        min-width: 40px;
    }

    .discover-count {
        margin: 10px 0 26px;
        line-height: 1.6;
    }

    .universe-next {
        position: relative;
        margin: 24px 0 30px;
    }

    .memory-card {
        padding: 38px 24px 28px;
        max-height: calc(100vh - 44px);
        max-height: calc(100dvh - 44px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-footer {
        padding: 20px;
        align-items: flex-start;
    }

    .site-footer span {
        max-width: 140px;
        text-align: right;
    }

    .letter-inside {
        padding: 35px 27px;
    }

    .letter-copy {
        font-size: .98rem;
    }

    .section-heading {
        margin-bottom: 30px;
    }
}

@media (max-width: 390px) {
    .album-book {
        min-height: 330px;
    }

    .photo-frame {
        height: 128px;
    }

    .polaroid h3 {
        font-size: .76rem;
    }

    .polaroid > p {
        font-size: .85rem;
    }

    .album-controls {
        gap: 7px;
    }

    .album-controls .button {
        padding: 11px 8px;
    }

    .page-count {
        letter-spacing: 0;
    }

    /* 390px ve altındaki ekranlarda da 600px alanı koru */
    .constellation {
        height: 600px;
        min-height: 600px;
    }

    .star-label {
        max-width: 80px;
        font-size: .53rem;
    }
}

/* ========================================
   EVREN SAYFASINA ÖZEL KAYDIRMA GÜVENLİĞİ
   ======================================== */

html:has(body.universe-page) {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.universe-page {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
}

body.universe-page .universe-glow {
    pointer-events: none;
}

body.universe-page .universe-main {
    height: auto;
    min-height: 0;
}

body.universe-page .universe-next {
    flex-shrink: 0;
}

body.universe-page .site-footer {
    position: relative;
}

/* Anı penceresi açıkken arka planın kaymasını önle */
body.universe-page.modal-open {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
