
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --pink: #f4a9c7;
    --dark-pink: #d77da5;
    --purple: #b7a1e9;
    --blue: #b5d9ec;
    --cream: #fff9f4;
    --text: #76556c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: #fff0f5;
    padding: 30px 16px;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 15%, #ffe0eb, transparent 35%),
        radial-gradient(circle at 90% 80%, #e5ddff, transparent 40%),
        linear-gradient(145deg, #fff4f7, #f1edff);
}

.decorations {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.decoration {
    position: absolute;
    top: -40px;
    animation: falling linear forwards;
    opacity: .7;
}

@keyframes falling {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.page {
    max-width: 620px;
    width: 100%;
    margin: auto;
    position: relative;
}

.top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #b47d9e;
}

.top p {
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 700;
}

.top span {
    font-size: 20px;
}

.hero,
.bleach-card,
.surprise-card {
    border-radius: 28px;
    padding: 38px 25px;
    text-align: center;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 15px 45px rgba(177, 128, 162, .12);
    position: relative;
    overflow: hidden;
}

.hero {
    background: linear-gradient(145deg, #fffafd, #ffe8f1);
}

.hero-decoration {
    font-size: 48px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    50% { transform: translateY(-8px); }
}

.small-label {
    color: #c17fa2;
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 700;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.hero h1 {
    font-size: clamp(38px, 8vw, 52px);
    color: #a65f87;
    margin-top: 16px;
}

.pink-heart {
    color: #e78caf;
    font-size: 40px;
    margin: 5px 0;
    animation: heartbeat 1.8s infinite;
}

@keyframes heartbeat {
    50% { transform: scale(1.18); }
}

.hero > p {
    color: #9d8295;
    line-height: 1.8;
    font-size: 14px;
    margin: 10px 0 25px;
}

.button {
    border: none;
    border-radius: 30px;
    padding: 13px 22px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.button:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
}

.pink-button {
    color: #814b6b;
    background: linear-gradient(110deg, #ffd0e2, #f7b6d0);
    box-shadow: 0 6px 18px #eeb4ce55;
}

.purple-button {
    color: #69528d;
    background: linear-gradient(110deg, #e5d9ff, #c8b7f4);
}

.hero-bottom {
    margin-top: 28px;
    color: #d58eae;
    letter-spacing: 8px;
}

.hidden {
    display: none !important;
}

.letter-section {
    margin-top: 22px;
    animation: appear .7s ease;
}

@keyframes appear {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.paper {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    padding: 32px 27px;
    border-radius: 8px 8px 25px 8px;
    box-shadow: 0 12px 35px #98758a22;
    text-align: left;
    border: 1px solid #f7e4e8;
}

.paper-decoration {
    position: absolute;
    right: 20px;
    top: 12px;
    color: #f1a6c2;
    font-size: 30px;
}

.paper h2 {
    font-size: 27px;
    color: #b36d92;
    margin: 18px 0;
}

.paper p {
    color: #816d7a;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 14px;
}

.paper-signature {
    text-align: right;
    color: #c0789e;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1.7;
    margin-top: 22px;
}

.paper-flower {
    font-size: 26px;
    margin-top: 12px;
}

.photo-decoration {
    margin-top: 22px;
    min-height: 185px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #e8e0ff, #ffe5ee, #fff3dc);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 35px #98758a18;
}

.photo-center {
    text-align: center;
    padding: 25px;
}

.photo-center > span {
    color: #c18bb0;
    font-size: 22px;
}

.photo-center h2 {
    color: #936a9e;
    font-size: 25px;
    margin: 10px 0;
}

.photo-center p {
    color: #9a8199;
    font-size: 12px;
}

.flower {
    position: absolute;
    font-size: 34px;
    animation: float 3s ease-in-out infinite;
}

.flower-one {
    top: 15px;
    left: 20px;
}

.flower-two {
    right: 20px;
    top: 22px;
    animation-delay: .5s;
}

.flower-three {
    bottom: 12px;
    left: 50%;
    font-size: 26px;
}

.bleach-card {
    margin-top: 22px;
    background: linear-gradient(145deg, #f7f2ff, #eee8ff);
    border-color: #e7dcff;
}

.sword {
    font-size: 39px;
    color: #a38bd6;
    margin-bottom: 15px;
    text-shadow: 0 5px 20px #a38bd655;
}

.bleach-card h2 {
    font-size: 26px;
    color: #76619f;
    margin: 14px 0;
}

.anime-decoration {
    display: flex;
    justify-content: center;
    gap: 22px;
    color: #a68bd7;
    margin: 18px 0;
    font-size: 21px;
}

.quote {
    padding: 24px 18px;
    min-height: 115px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid #e3d8f8;
    display: grid;
    place-items: center;
}

.quote p {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    line-height: 1.7;
    color: #75638d;
    transition: opacity .2s;
}

.bleach-card .button {
    margin-top: 20px;
}

.counter {
    display: block;
    color: #a998c2;
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 13px;
}

.surprise-card {
    margin-top: 22px;
    background: linear-gradient(145deg, #fffaf0, #fff0e9);
}

.surprise-illustration {
    position: relative;
    display: inline-block;
    margin: 8px 0 22px;
}

.gift {
    font-size: 65px;
    display: block;
    animation: float 3s infinite;
}

.sparkle {
    position: absolute;
    color: #e6a6bd;
    font-size: 21px;
}

.sparkle-one {
    top: -10px;
    left: -20px;
}

.sparkle-two {
    right: -20px;
    top: 0;
}

.sparkle-three {
    right: -26px;
    bottom: 0;
}

.surprise-card h2 {
    color: #a87583;
    font-size: 26px;
    margin: 13px 0 20px;
}

.secret-message {
    background: #fff9fc;
    border: 1px dashed #e8b4cc;
    padding: 23px;
    border-radius: 20px;
    margin-top: 23px;
    animation: appear .6s ease;
}

.secret-heart {
    font-size: 39px;
    margin-bottom: 10px;
    animation: heartbeat 1.5s infinite;
}

.secret-message h3 {
    color: #b26e91;
    font-size: 23px;
    margin-bottom: 12px;
}

.secret-message p {
    color: #927b8c;
    font-size: 13px;
    line-height: 1.8;
}

.secret-extra {
    margin-top: 12px;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 32px 10px 12px;
    color: #a88a9c;
    font-size: 11px;
    line-height: 2;
}

.footer-hearts {
    color: #dc98b7;
    font-size: 19px;
    letter-spacing: 8px;
    margin-bottom: 12px;
}

footer span {
    color: #bb8caa;
}

@media (max-width: 480px) {
    body {
        padding: 22px 12px;
    }

    .hero, .bleach-card, .surprise-card {
        padding: 32px 19px;
    }

    .paper {
        padding: 27px 20px;
    }

    .photo-center h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
