:root {
    --background: #02050b;
    --background-blue: #07101d;
    --card: rgba(8, 15, 27, 0.78);
    --card-border: rgba(255, 255, 255, 0.14);
    --gold: #ffd28b;
    --gold-dark: #b77927;
    --red: #f24b50;
    --blue: #145cff;
    --blue-light: #55a2ff;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --box-black: #171719;
    --box-light: #363538;
    --velvet: #090b12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    background: var(--background);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    border: 0;
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================================
   ARKA PLAN
================================ */

.site-background {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    pointer-events: none;
}

.background-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(18, 46, 85, 0.38),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 75%,
            rgba(102, 15, 31, 0.14),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #01040a 0%,
            #050b15 42%,
            #02040a 100%
        );
}

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(255, 178, 83, 0.8);
    animation: starTwinkle ease-in-out infinite;
}

@keyframes starTwinkle {
    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.45);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

.blur-heart {
    position: absolute;
    color: #d84948;
    line-height: 1;
    opacity: 0.22;
    filter: blur(4px);
    animation: backgroundHeartFloat 8s ease-in-out infinite alternate;
}

.heart-bg-1 {
    top: 32%;
    left: 5%;
    font-size: 74px;
}

.heart-bg-2 {
    top: 48%;
    right: 6%;
    font-size: 94px;
    animation-delay: -3s;
}

.heart-bg-3 {
    bottom: 20%;
    left: 14%;
    font-size: 44px;
    animation-delay: -5s;
}

.heart-bg-4 {
    bottom: 31%;
    right: 18%;
    font-size: 35px;
    animation-delay: -7s;
}

@keyframes backgroundHeartFloat {
    from {
        transform: translateY(-15px) rotate(-5deg);
    }

    to {
        transform: translateY(20px) rotate(7deg);
    }
}

.rose-petal {
    position: absolute;
    width: 65px;
    height: 26px;
    border-radius: 100% 0 100% 0;
    background:
        linear-gradient(
            145deg,
            #8f071b,
            #3e030c
        );
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
    opacity: 0.72;
    transform: rotate(-18deg);
}

.petal-1 {
    left: 3%;
    top: 61%;
}

.petal-2 {
    right: 4%;
    top: 64%;
    transform: rotate(25deg);
}

.petal-3 {
    left: 10%;
    top: 78%;
    transform: rotate(38deg);
}

.petal-4 {
    right: 10%;
    top: 83%;
    transform: rotate(-30deg);
}

/* ================================
   MÜZİK BUTONU
================================ */

.music-button {
    position: fixed;
    top: 24px;
    right: 26px;
    z-index: 100;
    display: flex;
    height: 44px;
    padding: 0 18px;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    border: 1px solid rgba(255, 190, 87, 0.42);
    border-radius: 30px;
    background: rgba(2, 6, 13, 0.75);
    box-shadow:
        0 0 20px rgba(255, 174, 65, 0.08),
        inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.music-button.visible {
    opacity: 1;
    visibility: visible;
}

.music-note {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.music-button > span {
    font-size: 12px;
    font-weight: 600;
}

.music-bars {
    display: flex;
    height: 18px;
    align-items: flex-end;
    gap: 2px;
}

.music-bars i {
    display: block;
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
}

.music-button.playing .music-bars i {
    animation: musicBar 0.8s ease-in-out infinite alternate;
}

.music-button.playing .music-bars i:nth-child(2) {
    animation-delay: 0.2s;
}

.music-button.playing .music-bars i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes musicBar {
    to {
        height: 16px;
    }
}

/* ================================
   ŞİFRE EKRANI
================================ */

.password-screen {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    min-height: 100vh;
    padding: 30px 20px;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease,
        transform 0.8s ease;
}

.password-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.07);
}

.password-card {
    position: relative;
    width: min(560px, 100%);
    padding: 52px 42px 36px;
    text-align: center;
    border: 1px solid rgba(174, 200, 234, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(10, 20, 36, 0.94),
            rgba(4, 9, 18, 0.91)
        );
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.top-heart {
    position: relative;
    display: inline-block;
    margin-bottom: 17px;
    color: var(--gold);
    font-size: 37px;
    line-height: 1;
    filter:
        drop-shadow(0 0 7px rgba(255, 209, 135, 0.8))
        drop-shadow(0 0 20px rgba(255, 177, 76, 0.38));
    animation: heartPulse 1.6s ease-in-out infinite;
}

.small-heading,
.section-mini-title {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.password-card h1 {
    margin-bottom: 14px;
    color: #ffe2ae;
    font-family: "Great Vibes", cursive;
    font-size: clamp(44px, 6vw, 58px);
    font-weight: 400;
    text-shadow: 0 0 20px rgba(255, 190, 90, 0.18);
}

.password-description {
    max-width: 430px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.8;
}

.password-input-area {
    position: relative;
}

.password-input-area input {
    width: 100%;
    height: 61px;
    padding: 0 57px 0 57px;
    color: white;
    font-size: 14px;
    outline: none;
    border: 1px solid rgba(174, 200, 234, 0.2);
    border-radius: 14px;
    background: rgba(1, 5, 12, 0.48);
    transition: 0.3s ease;
}

.password-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.password-input-area input:focus {
    border-color: rgba(255, 200, 116, 0.52);
    box-shadow: 0 0 0 4px rgba(255, 197, 105, 0.06);
}

.password-input-area input.error {
    border-color: #f34f55;
    animation: inputShake 0.4s ease;
}

.lock-icon,
.show-password {
    position: absolute;
    top: 50%;
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    transform: translateY(-50%);
}

.lock-icon {
    left: 17px;
}

.show-password {
    right: 17px;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    cursor: pointer;
}

.lock-icon svg,
.show-password svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-error {
    min-height: 23px;
    margin: 10px 0 3px;
    color: #ff4d52;
    font-size: 11px;
}

.open-surprise-button {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #17100a;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    background:
        linear-gradient(
            90deg,
            #ffd99a,
            #eeb45d,
            #ffe1a9
        );
    box-shadow:
        0 12px 30px rgba(231, 167, 70, 0.21),
        inset 0 1px rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: 0.25s ease;
}

.open-surprise-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 40px rgba(231, 167, 70, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.8);
}

.spark-icon {
    font-size: 19px;
}

@keyframes inputShake {
    25% {
        transform: translateX(-7px);
    }

    50% {
        transform: translateX(7px);
    }

    75% {
        transform: translateX(-4px);
    }
}

@keyframes heartPulse {
    0%,
    100% {
        transform: scale(1);
    }

    18% {
        transform: scale(1.17);
    }

    35% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ================================
   KARŞILAMA EKRANI
================================ */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    visibility: hidden;
    opacity: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    background: #010308;
    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.welcome-screen.active {
    visibility: visible;
    opacity: 1;
}

.welcome-screen.leaving {
    opacity: 0;
}

.welcome-screen h2 {
    padding: 0 20px;
    color: #ffe1ad;
    font-family: "Great Vibes", cursive;
    font-size: clamp(44px, 7vw, 65px);
    font-weight: 400;
    text-align: center;
}

.welcome-heart {
    position: relative;
    display: flex;
    width: 85px;
    height: 85px;
    align-items: center;
    justify-content: center;
}

.welcome-heart::before,
.welcome-heart::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 207, 126, 0.25);
    border-radius: 50%;
    animation: heartWave 1.8s ease-out infinite;
}

.welcome-heart::after {
    animation-delay: 0.7s;
}

.welcome-heart span {
    color: var(--gold);
    font-size: 40px;
    filter: drop-shadow(0 0 18px var(--gold));
    animation: heartPulse 1.3s ease-in-out infinite;
}

@keyframes heartWave {
    from {
        opacity: 0.75;
        transform: scale(0.4);
    }

    to {
        opacity: 0;
        transform: scale(1.45);
    }
}

/* ================================
   ANA İÇERİK
================================ */

.main-content {
    display: none;
}

.main-content.active {
    display: block;
}

.ring-section {
    position: relative;
    min-height: 100vh;
    padding: 80px 20px 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ring-section-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1080px;
    text-align: center;
}

.ring-section-heading {
    margin-bottom: 15px;
    color: #ffe4b5;
    font-family: "Great Vibes", cursive;
    font-size: clamp(42px, 6vw, 62px);
    font-weight: 400;
}

/* ================================
   KALP ŞEKLİNDE YÜZÜK KUTUSU
================================ */

.heart-box-stage {
    position: relative;
    width: 560px;
    height: 600px;
    margin: 0 auto;
    perspective: 1500px;
}

.heart-box-wrapper {
    position: absolute;
    left: 50%;
    bottom: 135px;
    width: 390px;
    height: 330px;
    opacity: 0;
    transform:
        translateX(-50%)
        translateY(110px)
        scale(0.55);
    transform-style: preserve-3d;
}

.main-content.active .heart-box-wrapper {
    animation:
        heartBoxEntrance 1.4s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.5s
        forwards;
}

@keyframes heartBoxEntrance {
    0% {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(110px)
            scale(0.55);
    }

    65% {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(-14px)
            scale(1.04);
    }

    82% {
        transform:
            translateX(-50%)
            translateY(5px)
            scale(0.98);
    }

    100% {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(0)
            scale(1);
    }
}

/*
 Kalp şekli clip-path ile oluşturuluyor.
 Alt nokta ve üst yuvarlak bölgeler,
 referans görseldeki kutuya yakındır.
*/

.heart-box-base {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 6;
    width: 350px;
    height: 245px;
    transform: translateX(-50%);
    filter: drop-shadow(0 30px 25px rgba(0, 0, 0, 0.5));
}

.base-outer-frame {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            #454447 0%,
            #28272a 45%,
            #141416 100%
        );
    clip-path: polygon(
        50% 12%,
        62% 2%,
        78% 2%,
        91% 11%,
        99% 26%,
        99% 57%,
        94% 73%,
        82% 85%,
        50% 100%,
        18% 85%,
        6% 73%,
        1% 57%,
        1% 26%,
        9% 11%,
        22% 2%,
        38% 2%
    );
    border-radius: 36px;
}

.base-outer-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    background:
        linear-gradient(
            145deg,
            #2e2d30,
            #17171a
        );
    clip-path: inherit;
    border-radius: inherit;
}

.base-inner-velvet {
    position: absolute;
    inset: 19px 21px 29px;
    z-index: 2;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 35%,
            #202334 0%,
            #11131e 42%,
            #07080d 100%
        );
    clip-path: polygon(
        50% 10%,
        62% 1%,
        78% 1%,
        91% 12%,
        98% 27%,
        98% 59%,
        92% 73%,
        80% 84%,
        50% 98%,
        20% 84%,
        8% 73%,
        2% 59%,
        2% 27%,
        9% 12%,
        22% 1%,
        38% 1%
    );
    border-radius: 30px;
    box-shadow: inset 0 12px 30px rgba(0, 0, 0, 0.8);
}

.base-front-face {
    position: absolute;
    left: 50%;
    bottom: 4px;
    z-index: 12;
    width: 342px;
    height: 114px;
    background:
        linear-gradient(
            180deg,
            #343336 0%,
            #242326 45%,
            #151517 100%
        );
    clip-path: polygon(
        0 0,
        100% 0,
        97% 55%,
        87% 76%,
        50% 100%,
        13% 76%,
        3% 55%
    );
    border-radius: 0 0 46px 46px;
    transform: translateX(-50%);
    box-shadow:
        inset 0 8px 12px rgba(255, 255, 255, 0.035),
        inset 0 -15px 20px rgba(0, 0, 0, 0.34);
}

.base-highlight {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 210px;
    height: 4px;
    border-radius: 50%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            transparent
        );
    transform: translateX(-50%);
}

.velvet-row {
    position: absolute;
    left: 50%;
    width: 290px;
    height: 54px;
    border-radius: 50%;
    background:
        linear-gradient(
            180deg,
            #272a39,
            #0c0e16
        );
    box-shadow:
        inset 0 9px 14px rgba(255, 255, 255, 0.025),
        0 -4px 10px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
}

.row-one {
    top: 49px;
}

.row-two {
    top: 91px;
}

.row-three {
    top: 132px;
}

.ring-slot {
    position: absolute;
    left: 50%;
    top: 100px;
    z-index: 4;
    width: 92px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    filter: blur(2px);
    transform: translateX(-50%);
}

/* Kutu kapağı */

.heart-box-lid {
    position: absolute;
    left: 50%;
    bottom: 195px;
    z-index: 11;
    width: 360px;
    height: 310px;
    transform:
        translateX(-50%)
        rotateX(0deg);
    transform-origin: center bottom;
    transform-style: preserve-3d;
}

.heart-lid-shell {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            #4a494c 0%,
            #28272a 45%,
            #111113 100%
        );
    clip-path: polygon(
        50% 100%,
        4% 54%,
        0 33%,
        5% 14%,
        18% 2%,
        34% 0,
        50% 12%,
        66% 0,
        82% 2%,
        95% 14%,
        100% 33%,
        96% 54%
    );
    border-radius: 48px 48px 32px 32px;
    filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.35));
    backface-visibility: hidden;
}

.lid-border {
    position: absolute;
    inset: 10px;
    background:
        linear-gradient(
            145deg,
            #29292c,
            #121215
        );
    clip-path: inherit;
    border-radius: inherit;
}

.lid-inner-velvet {
    position: absolute;
    inset: 22px 25px 19px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 54%,
            #0d1b35 0%,
            #070b15 49%,
            #020307 100%
        );
    clip-path: polygon(
        50% 98%,
        5% 54%,
        1% 34%,
        7% 16%,
        19% 5%,
        34% 2%,
        50% 14%,
        66% 2%,
        81% 5%,
        93% 16%,
        99% 34%,
        95% 54%
    );
    border-radius: 43px 43px 27px 27px;
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.92),
        inset 0 8px 12px rgba(255, 255, 255, 0.025);
}

.blue-led {
    position: absolute;
    top: 52px;
    left: 50%;
    z-index: 4;
    width: 26px;
    height: 11px;
    border-radius: 50%;
    background: #dff5ff;
    box-shadow:
        0 0 7px #ffffff,
        0 0 16px #58aaff,
        0 0 28px #095cff;
    transform: translateX(-50%);
}

.blue-light-cone {
    position: absolute;
    top: 55px;
    left: 50%;
    width: 220px;
    height: 225px;
    opacity: 0.82;
    background:
        linear-gradient(
            180deg,
            rgba(39, 119, 255, 0.62),
            rgba(15, 69, 196, 0.24) 54%,
            transparent 100%
        );
    clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
    filter: blur(13px);
    transform: translateX(-50%);
}

/* Kutu açılma */

.heart-box-wrapper.opened .heart-box-lid {
    animation:
        heartLidOpen 1.7s
        cubic-bezier(0.65, 0, 0.2, 1)
        forwards;
}

@keyframes heartLidOpen {
    0% {
        transform:
            translateX(-50%)
            translateY(0)
            rotateX(0deg);
    }

    35% {
        transform:
            translateX(-50%)
            translateY(-7px)
            rotateX(-22deg);
    }

    75% {
        transform:
            translateX(-50%)
            translateY(-28px)
            rotateX(-82deg);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(-47px)
            rotateX(-105deg);
    }
}

/* Kutu açıkken ışığı güçlü göster */

.heart-box-wrapper.opened .blue-led {
    animation: ledPulse 1.4s ease-in-out infinite;
}

.heart-box-wrapper.opened .blue-light-cone {
    animation: blueLightPulse 2.3s ease-in-out infinite;
}

@keyframes ledPulse {
    50% {
        box-shadow:
            0 0 11px #ffffff,
            0 0 25px #65b4ff,
            0 0 45px #075aff;
    }
}

@keyframes blueLightPulse {
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.1);
    }
}

/* Yüzük */

.ring-jewel {
    position: absolute;
    left: 50%;
    top: 72px;
    z-index: 9;
    width: 105px;
    height: 150px;
    opacity: 0;
    transform:
        translateX(-50%)
        translateY(50px)
        scale(0.72);
}

.silver-ring-band {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 79px;
    height: 92px;
    border: 7px solid #f1f2f5;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        inset 2px 0 2px white,
        inset -2px 0 2px rgba(91, 99, 115, 0.7),
        0 0 10px rgba(225, 238, 255, 0.42);
    transform: translateX(-50%);
}

.silver-ring-band::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-left: 2px solid white;
    border-radius: 50%;
    opacity: 0.6;
}

.diamond-holder {
    position: absolute;
    top: 45px;
    left: 50%;
    z-index: 4;
    width: 61px;
    height: 28px;
    transform: translateX(-50%);
}

.holder-arm {
    position: absolute;
    bottom: 0;
    width: 5px;
    height: 27px;
    border-radius: 4px;
    background: linear-gradient(#ffffff, #aeb5c0);
    transform-origin: bottom;
}

.arm-left {
    left: 10px;
    transform: rotate(-19deg);
}

.arm-right {
    right: 10px;
    transform: rotate(19deg);
}

.arm-center {
    left: 50%;
    transform: translateX(-50%);
}

.diamond-stone {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 7;
    width: 64px;
    height: 61px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #c8edff 18%,
            #ffffff 36%,
            #9fd1eb 56%,
            #ffffff 77%,
            #c8ecff 100%
        );
    clip-path: polygon(
        18% 8%,
        82% 8%,
        100% 33%,
        72% 100%,
        28% 100%,
        0 33%
    );
    filter:
        drop-shadow(0 0 7px white)
        drop-shadow(0 0 17px rgba(167, 222, 255, 0.85));
    transform: translateX(-50%);
}

.diamond-line {
    position: absolute;
    background: rgba(54, 117, 153, 0.43);
}

.diamond-line-1 {
    top: 18px;
    left: 5px;
    width: 54px;
    height: 1px;
}

.diamond-line-2 {
    top: 8px;
    left: 32px;
    width: 1px;
    height: 48px;
    transform: rotate(24deg);
}

.diamond-line-3 {
    top: 17px;
    left: 13px;
    width: 36px;
    height: 1px;
    transform: rotate(-30deg);
}

.diamond-line-4 {
    top: 17px;
    right: 13px;
    width: 36px;
    height: 1px;
    transform: rotate(30deg);
}

.diamond-spark {
    position: absolute;
    top: -22px;
    left: 50%;
    width: 105px;
    height: 105px;
    opacity: 0;
    transform:
        translateX(-50%)
        scale(0.2);
}

.diamond-spark::before,
.diamond-spark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 15px white;
    transform: translate(-50%, -50%);
}

.diamond-spark::before {
    width: 2px;
    height: 105px;
}

.diamond-spark::after {
    width: 105px;
    height: 2px;
}

.heart-box-wrapper.opened .ring-jewel {
    animation:
        ringRise 1.55s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.8s
        forwards,
        ringFloating 3.5s
        ease-in-out
        2.35s
        infinite;
}

.heart-box-wrapper.opened .diamond-spark {
    animation:
        diamondSparkle 2.4s
        ease-in-out
        1.8s
        infinite;
}

@keyframes ringRise {
    0% {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(50px)
            scale(0.72);
    }

    60% {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(-88px)
            scale(1.13)
            rotate(3deg);
    }

    80% {
        transform:
            translateX(-50%)
            translateY(-67px)
            scale(0.98)
            rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(-76px)
            scale(1);
    }
}

@keyframes ringFloating {
    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(-76px)
            rotate(-1deg);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-86px)
            rotate(1deg);
    }
}

@keyframes diamondSparkle {
    0%,
    18%,
    100% {
        opacity: 0;
        transform:
            translateX(-50%)
            scale(0.2)
            rotate(0deg);
    }

    43% {
        opacity: 1;
        transform:
            translateX(-50%)
            scale(1)
            rotate(45deg);
    }

    65% {
        opacity: 0;
        transform:
            translateX(-50%)
            scale(1.4)
            rotate(90deg);
    }
}

/* Kutunun altındaki gölge */

.box-shadow {
    position: absolute;
    left: 50%;
    bottom: -28px;
    z-index: 1;
    width: 420px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.68);
    filter: blur(20px);
    transform: translateX(-50%);
}

/* Kutu çevresindeki ışık */

.box-ambient-light {
    position: absolute;
    left: 50%;
    bottom: 35px;
    z-index: 0;
    width: 440px;
    height: 390px;
    opacity: 0;
    border-radius: 50%;
    background:
        radial-gradient(
            ellipse,
            rgba(31, 91, 195, 0.2),
            rgba(10, 31, 74, 0.08) 43%,
            transparent 72%
        );
    filter: blur(16px);
    transform: translateX(-50%) scale(0.5);
}

.heart-box-wrapper.opened .box-ambient-light {
    animation: ambientLightOpen 1.4s ease 0.7s forwards;
}

@keyframes ambientLightOpen {
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* Kutuyu aç butonu */

.open-box-button {
    position: absolute;
    left: 50%;
    bottom: 36px;
    display: flex;
    min-width: 190px;
    height: 54px;
    padding: 0 27px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffd69a;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 186, 78, 0.7);
    border-radius: 40px;
    background:
        linear-gradient(
            145deg,
            rgba(9, 18, 33, 0.95),
            rgba(2, 7, 15, 0.95)
        );
    box-shadow:
        0 0 22px rgba(255, 174, 59, 0.09),
        inset 0 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0;
    transform:
        translateX(-50%)
        translateY(15px);
    transition: 0.3s ease;
}

.main-content.active .open-box-button {
    animation: openButtonReveal 0.7s ease 1.9s forwards;
}

.open-box-button:hover {
    color: white;
    border-color: #ffd18c;
    box-shadow:
        0 0 30px rgba(255, 174, 59, 0.17),
        inset 0 1px rgba(255, 255, 255, 0.1);
    transform:
        translateX(-50%)
        translateY(-3px);
}

.open-box-button.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.button-heart {
    color: #ff4b4e;
    font-size: 17px;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes openButtonReveal {
    to {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(0);
    }
}

/* Ok işareti */

.open-arrow {
    position: absolute;
    left: 42px;
    bottom: 45px;
    width: 100px;
    height: 70px;
    color: white;
    opacity: 0;
    transform: rotate(12deg);
}

.main-content.active .open-arrow {
    animation: arrowReveal 0.7s ease 2.2s forwards;
}

.open-arrow.hidden {
    opacity: 0 !important;
    visibility: hidden;
}

.arrow-line {
    position: absolute;
    left: 0;
    top: 20px;
    width: 70px;
    height: 35px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    border-radius: 0 0 0 40px;
    transform: rotate(-12deg);
}

.arrow-head {
    position: absolute;
    right: 0;
    bottom: 2px;
    font-size: 25px;
}

@keyframes arrowReveal {
    to {
        opacity: 0.8;
    }
}

/* ================================
   SEVGİ MESAJI
================================ */

.love-message {
    max-width: 750px;
    margin: -20px auto 0;
    opacity: 0;
    transform: translateY(30px);
}

.love-message.visible {
    animation: loveMessageReveal 1s ease forwards;
}

@keyframes loveMessageReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
}

.title-decoration > span {
    color: var(--gold);
    font-size: 31px;
    filter: drop-shadow(0 0 9px rgba(255, 196, 97, 0.65));
}

.love-message h2 {
    min-height: 90px;
    color: #ffe1a9;
    font-family: "Great Vibes", cursive;
    font-size: clamp(64px, 9vw, 92px);
    font-weight: 400;
    line-height: 1;
    text-shadow:
        0 0 18px rgba(255, 195, 92, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

.love-message p {
    max-width: 610px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.9;
}

.love-message strong {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 500;
}

/* ================================
   NAVİGASYON KARTLARI
================================ */

.story-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 850px;
    margin: 42px auto 0;
    opacity: 0;
    transform: translateY(30px);
}

.story-navigation.visible {
    animation: navCardsReveal 0.9s ease forwards;
}

@keyframes navCardsReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-nav-card {
    display: flex;
    min-height: 120px;
    padding: 20px 13px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.23);
    transition: 0.3s ease;
}

.story-nav-card:hover {
    border-color: rgba(255, 200, 116, 0.33);
    background: rgba(255, 255, 255, 0.065);
    transform: translateY(-6px);
}

.story-nav-card > span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

.nav-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.nav-icon svg {
    width: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.infinity-icon {
    font-size: 45px;
    font-weight: 300;
}

/* ================================
   YÜZEN KALPLER
================================ */

.floating-hearts {
    position: fixed;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    color: #e84949;
    filter: drop-shadow(0 0 8px rgba(238, 67, 69, 0.4));
    animation: floatingHeart linear forwards;
}

@keyframes floatingHeart {
    0% {
        opacity: 0;
        transform:
            translateY(0)
            translateX(0)
            rotate(0deg)
            scale(0.6);
    }

    15% {
        opacity: 0.7;
    }

    80% {
        opacity: 0.35;
    }

    100% {
        opacity: 0;
        transform:
            translateY(-115vh)
            translateX(var(--move-x))
            rotate(360deg)
            scale(1.25);
    }
}

/* ================================
   ALT İÇERİK ALANLARI
================================ */

.content-section {
    padding: 110px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.content-container {
    width: min(1080px, 100%);
    margin: 0 auto;
    text-align: center;
}

.content-container h2 {
    margin-bottom: 15px;
    color: #ffe1ad;
    font-family: "Great Vibes", cursive;
    font-size: clamp(50px, 7vw, 75px);
    font-weight: 400;
}

.content-container > p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

/* Sayaç */

.love-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    max-width: 840px;
    margin: 45px auto 0;
}

.counter-card {
    padding: 30px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.counter-card strong {
    display: block;
    margin-bottom: 7px;
    color: white;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 500;
}

.counter-card span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Anılar */

.memories-section {
    background: rgba(255, 255, 255, 0.015);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.memory-card {
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
    overflow: hidden;
}

.memory-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background:
        radial-gradient(
            circle,
            rgba(45, 80, 135, 0.22),
            transparent 65%
        );
}

.memory-placeholder span {
    color: #e84a4d;
    font-size: 37px;
    animation: heartPulse 1.6s ease-in-out infinite;
}

.memory-placeholder small {
    color: rgba(255, 255, 255, 0.45);
}

/* Aşk mektubu */

.love-letter-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 45px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.014)
        );
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.letter-heart {
    display: block;
    margin-bottom: 10px;
    color: #e84b4e;
    font-size: 32px;
    animation: heartPulse 1.6s ease-in-out infinite;
}

.love-letter-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.love-letter-card strong {
    display: block;
    margin-top: 22px;
    color: var(--gold);
    font-family: "Great Vibes", cursive;
    font-size: 33px;
    font-weight: 400;
}

/* Final */

.forever-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forever-symbol {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 70px;
    line-height: 1;
}

.replay-button {
    margin-top: 30px;
    padding: 14px 25px;
    color: #ffdda3;
    font-size: 12px;
    border: 1px solid rgba(255, 197, 102, 0.38);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: 0.3s ease;
}

.replay-button:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
}

/* ================================
   MOBİL
================================ */

@media screen and (max-width: 820px) {

    .password-card {
        padding: 43px 24px 31px;
    }

    .music-button {
        top: 15px;
        right: 15px;
        padding: 0 13px;
    }

    .music-button > span:not(.music-bars) {
        display: none;
    }

    .ring-section {
        padding-top: 75px;
    }

    .heart-box-stage {
        width: 360px;
        height: 500px;
    }

    .heart-box-wrapper {
        bottom: 120px;
    }

    .main-content.active .heart-box-wrapper {
        animation-name: mobileHeartBoxEntrance;
    }

    @keyframes mobileHeartBoxEntrance {
        0% {
            opacity: 0;
            transform:
                translateX(-50%)
                translateY(100px)
                scale(0.35);
        }

        65% {
            opacity: 1;
            transform:
                translateX(-50%)
                translateY(-10px)
                scale(0.78);
        }

        100% {
            opacity: 1;
            transform:
                translateX(-50%)
                translateY(0)
                scale(0.74);
        }
    }

    .open-box-button {
        bottom: 20px;
    }

    .open-arrow {
        display: none;
    }

    .love-message {
        margin-top: -15px;
    }

    .love-message h2 {
        min-height: 67px;
        font-size: 59px;
    }

    .love-message p {
        font-size: 12px;
    }

    .story-navigation {
        grid-template-columns: repeat(2, 1fr);
    }

    .love-counter {
        grid-template-columns: repeat(2, 1fr);
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-card {
        height: 100%;
    }
}

@media screen and (max-width: 430px) {

    .password-screen {
        padding: 15px;
    }

    .password-card h1 {
        font-size: 42px;
    }

    .password-description {
        font-size: 12px;
    }

    .ring-section-heading {
        font-size: 43px;
    }

    .heart-box-stage {
        width: 300px;
        height: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .heart-box-wrapper {
        bottom: 105px;
    }

    .main-content.active .heart-box-wrapper {
        animation-name: smallMobileHeartBoxEntrance;
    }

    @keyframes smallMobileHeartBoxEntrance {
        0% {
            opacity: 0;
            transform:
                translateX(-50%)
                translateY(100px)
                scale(0.3);
        }

        65% {
            opacity: 1;
            transform:
                translateX(-50%)
                translateY(-8px)
                scale(0.67);
        }

        100% {
            opacity: 1;
            transform:
                translateX(-50%)
                translateY(0)
                scale(0.63);
        }
    }

    .story-navigation {
        gap: 10px;
    }

    .story-nav-card {
        min-height: 105px;
    }

    .title-decoration {
        gap: 7px;
    }

    .title-decoration > span {
        font-size: 21px;
    }

    .content-section {
        padding: 75px 17px;
    }

    .love-letter-card {
        padding: 45px 22px;
    }
}

/* Hareket azaltma tercihi */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.memory-card img {
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.memory-card:hover img {
    transform: scale(1.08);
}