
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #100b10;
    color: #fff5f0;
    font-family: Georgia, "Times New Roman", serif;
}

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 45%,
        rgba(119, 35, 65, 0.28), transparent 55%),
        radial-gradient(circle at 15% 20%,
        rgba(175, 119, 75, 0.09), transparent 30%);
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 55px 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eyebrow {
    color: #d9b58b;
    font: 11px Arial, sans-serif;
    letter-spacing: 4px;
    margin-bottom: 22px;
}

h1 {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: normal;
    letter-spacing: -1px;
}

h1 span {
    color: #e5a2a8;
}

.subtitle {
    margin-top: 18px;
    color: #c6b6bc;
    font-size: 16px;
    line-height: 1.7;
}

.envelope-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    margin-top: 58px;
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
}

.envelope {
    position: relative;
    width: 180px;
    height: 120px;
    background: #873e51;
    border-radius: 4px;
    box-shadow: 0 15px 50px #0008;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.6s ease;
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: #a95668;
    border-radius: 4px;
}

.letter {
    position: absolute;
    z-index: 1;
    left: 15px;
    right: 15px;
    bottom: 8px;
    height: 95px;
    background: #fff0df;
    color: #713648;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 16px;
    transition: transform 0.8s ease;
}

.letter-heart {
    color: #b94c67;
    font-size: 20px;
}

.envelope-front {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: #99475c;
    clip-path: polygon(0 0, 50% 65%, 100% 0, 100% 100%, 0 100%);
    border-radius: 4px;
}

.envelope-flap {
    position: absolute;
    z-index: 3;
    inset: 0;
    background: #c07180;
    clip-path: polygon(0 0, 100% 0, 50% 58%);
    transform-origin: top center;
    transition: transform 0.6s ease;
}

.envelope-seal {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    color: #ffe6df;
    font-size: 23px;
    transition: opacity 0.3s ease;
}

.hint {
    margin-top: 22px;
    font: 12px Arial, sans-serif;
    letter-spacing: 1px;
    color: #bfa9b0;
    animation: pulse 2s infinite;
}

.reveal-message {
    max-width: 400px;
    margin-top: 35px;
    animation: fadeUp 0.9s ease both;
}

.reveal-message h2 {
    font-size: 27px;
    font-weight: normal;
    color: #f0c6c2;
}

.reveal-message p {
    color: #c6b6bc;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 14px;
}

.continue-button {
    margin-top: 25px;
    padding: 14px 24px;
    border: 1px solid #b77c86;
    border-radius: 30px;
    background: #793747;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.continue-button:hover {
    background: #a64e63;
    transform: translateY(-2px);
}

.continue-button span {
    margin-left: 8px;
}

.footer {
    position: absolute;
    bottom: 20px;
    color: #897780;
    font: 11px Arial, sans-serif;
    letter-spacing: 1px;
}

.envelope-button.opened .envelope {
    animation: none;
}

.envelope-button.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-button.opened .letter {
    transform: translateY(-65px);
}

.envelope-button.opened .envelope-seal {
    opacity: 0;
}

[hidden] {
    display: none !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .subtitle {
        font-size: 14px;
    }

    .envelope-button {
        margin-top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.birthday-message {
    position: relative;
    width: min(700px, 100%);
    margin: 35px auto 0;
    padding: 35px 24px;
    text-align: center;
    animation: birthdayFadeUp 1s ease both;
}

.birthday-message .glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.birthday-message .glow-one {
    background: #a23f60;
    top: 0;
    left: -100px;
}

.birthday-message .glow-two {
    background: #bd8950;
    right: -100px;
    bottom: 0;
}

.birthday-message .top-label {
    font: 11px Arial, sans-serif;
    letter-spacing: 3px;
    color: #d7b58c;
}

.birthday-message .heart {
    margin-top: 24px;
    font-size: 42px;
    color: #e4a1ad;
    animation: birthdayHeartbeat 2s infinite;
}

.birthday-message .birthday-title {
    margin-top: 18px;
    font-size: clamp(38px, 7vw, 64px);
    font-weight: normal;
    line-height: 1.15;
    color: #fff4ee;
}

.birthday-message .birthday-title span {
    display: block;
    color: #e3b98e;
    font-style: italic;
}

.birthday-message .intro {
    margin-top: 20px;
    color: #cbbbc1;
    font-size: 16px;
    line-height: 1.8;
}

.birthday-message .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 28px 0;
    color: #c68c96;
}

.birthday-message .divider span {
    width: 65px;
    height: 1px;
    background: #69414d;
}

.birthday-message .birthday-letter {
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: 28px;
    border: 1px solid #60404b;
    border-radius: 8px;
    background: rgba(255, 244, 238, 0.035);
    box-shadow: 0 20px 80px #0003;
}

.birthday-message .letter-heading {
    margin-bottom: 20px;
    font-size: 23px;
    font-style: italic;
    color: #e3b98e;
}

.birthday-message .birthday-letter p:not(.letter-heading) {
    margin-top: 16px;
    color: #d4c3c8;
    font-size: 15px;
    line-height: 1.9;
}

.birthday-message .signature {
    color: #e6b5bd !important;
    font-size: 18px !important;
    font-style: italic;
}

.birthday-message .bottom-text {
    margin-top: 30px;
    color: #9e858e;
    font: 11px Arial, sans-serif;
    letter-spacing: 1px;
}

@keyframes birthdayFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes birthdayHeartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.13); }
}

@media (max-width: 480px) {
    .birthday-message {
        padding: 25px 18px;
    }

    .birthday-message .birthday-letter {
        padding: 22px 18px;
    }

    .birthday-message .birthday-letter p:not(.letter-heading) {
        font-size: 14px;
    }
}
.next-page-button {
    display: block;
    margin: 25px auto 0;
    padding: 14px 28px;
    border: 1px solid #d7a0aa;
    border-radius: 30px;
    background: linear-gradient(135deg, #8f435b, #bd7184);
    color: #fff4ee;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.next-page-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #bd718455;
}

/* ===== SOFT VINTAGE ROMANCE THEME ===== */

body {
    background: linear-gradient(135deg, #f9e9e5, #f5dce0, #f8eee5);
    color: #79515b;
}

.background-glow {
    background:
        radial-gradient(ellipse at 50% 45%, rgba(196, 124, 142, 0.18), transparent 55%),
        radial-gradient(circle at 15% 20%, rgba(229, 185, 142, 0.18), transparent 30%);
}

.eyebrow,
.birthday-message .top-label {
    color: #ad7885;
}

h1 {
    color: #79515b;
}

h1 span,
.birthday-message .birthday-title span {
    color: #bd788a;
}

.subtitle,
.reveal-message p {
    color: #99727a;
}

/* Envelope */
.envelope {
    background: #bd788a;
    box-shadow: 0 15px 50px #79515b25;
}

.envelope-back {
    background: #d49aa5;
}

.envelope-front {
    background: #bd788a;
}

.envelope-flap {
    background: #d9a4ad;
}

.letter {
    background: #fff8f1;
    color: #79515b;
}

.letter-heart {
    color: #bd788a;
}

.envelope-seal {
    color: #fff8f1;
}

.hint {
    color: #ad7885;
}

/* Buttons */
.continue-button,
.next-page-button {
    border: 1px solid #c58a98;
    background: #bd788a;
    color: #fffaf7;
    box-shadow: 0 8px 25px #bd788a25;
}

.continue-button:hover,
.next-page-button:hover {
    background: #a96175;
    box-shadow: 0 10px 25px #bd788a35;
}

/* Birthday Message */
.birthday-message .glow-one {
    background: #d99aaa;
}

.birthday-message .glow-two {
    background: #e5bd96;
}

.birthday-message .heart {
    color: #bd788a;
}

.birthday-message .birthday-title {
    color: #79515b;
}

.birthday-message .intro,
.birthday-message .birthday-letter p:not(.letter-heading) {
    color: #99727a;
}

.birthday-message .divider {
    color: #bd788a;
}

.birthday-message .divider span {
    background: #d9b5bc;
}

.birthday-message .birthday-letter {
    border: 1px solid #e7cbd0;
    background: rgba(255, 250, 247, 0.65);
    box-shadow: 0 20px 60px #79515b12;
}

.birthday-message .letter-heading {
    color: #bd788a;
}

.birthday-message .signature {
    color: #a96175 !important;
}

.birthday-message .bottom-text {
    color: #ad858e;
}

.footer {
    color: #ad858e;
}
