/* ... existing styles ... */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Great Vibes', cursive;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

/* =========================================
   Cover Layer
   ========================================= */
#cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #021B35, #000000);
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
    transform: translateY(0);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 1);
}

#snowCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    /* Foreground snow: above Cover(10), Letter(1), below Fog(20) */
    pointer-events: none;
}

#fogCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: crosshair;
    touch-action: none;
}

.card-container {
    z-index: 10;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    pointer-events: none;
}

/* =========================================
   Letter Layer (Cold Theme)
   ========================================= */
#letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Slightly Lighter Starry Night Background */
    background: radial-gradient(circle at 50% 40%, #1a2a6c, #0d1b36);

    transform: scale(0.9);
    opacity: 0.5;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.2s;
    overflow: hidden;
}

body.open #cover {
    transform: translateY(-100%);
}

body.open #letter {
    transform: scale(1);
    opacity: 1;
}

/* =========================================
   Fairy Lights / Lightrope
   ========================================= */
.lightrope {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    margin: -15px 0 0 0;
    padding: 0;
    pointer-events: none;
    width: 100%;
    top: 0;
    left: 0;
}

/* Refined Fairy Lights - Smaller, Magical Bokeh style */
.lightrope li {
    position: relative;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 8px;
    /* Smaller */
    height: 8px;
    /* Round */
    border-radius: 50%;
    margin: 15px;
    /* Spacing */
    display: inline-block;
    background: #fff;
    /* Core white */
    box-shadow: 0px 0px 10px 2px #00f7a5;
    /* Glow */
    animation-name: flash-1;
    animation-duration: 3s;
}

.lightrope li:nth-child(2n) {
    box-shadow: 0px 0px 10px 2px #00ffff;
    animation-name: flash-2;
    animation-duration: 4s;
}

.lightrope li:nth-child(4n) {
    box-shadow: 0px 0px 10px 2px #f70094;
    animation-name: flash-3;
    animation-duration: 5s;
}

/* Remove the "wire" */
.lightrope li:before,
.lightrope li:after {
    content: none;
}

/* Add a very thin wire via border-top on container? No, let them float or use pseudo elements for wire if needed.
   Let's create a thin wire using a before element on the ul. */
.lightrope:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 0;
    border-radius: 50%;
    /* Arc the wire? Hard with straight lights. Keep straight for now. */
}

/* Reference Image Colors: White, Cyan, Purple */
@keyframes flash-1 {

    0%,
    100% {
        box-shadow: 0px 0px 10px 2px #ffffff;
        background: #ffffff;
    }

    50% {
        box-shadow: 0px 0px 5px 1px rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.4);
    }
}

@keyframes flash-2 {

    0%,
    100% {
        box-shadow: 0px 0px 10px 2px #00ffff;
        background: #00ffff;
    }

    50% {
        box-shadow: 0px 0px 5px 1px rgba(0, 255, 255, 0.5);
        background: rgba(0, 255, 255, 0.4);
    }
}

@keyframes flash-3 {

    0%,
    100% {
        box-shadow: 0px 0px 10px 2px #d500f9;
        background: #d500f9;
    }

    50% {
        box-shadow: 0px 0px 5px 1px rgba(213, 0, 249, 0.5);
        background: rgba(213, 0, 249, 0.4);
    }
}

/* Common Styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.glow-text {
    font-size: 4rem;
    font-weight: normal;
    animation: glow-anim 2s ease-in-out infinite alternate;
}

.sub-text {
    font-size: 2rem;
    margin-top: 10px;
}

/* Premium Glassmorphism Card like the first page, but distinct */
/* Reference Image Style - Thin, Elegant, Glowing */
.letter-content {
    background: rgba(30, 45, 70, 0.3);
    /* Lighter, clearer glass tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Thin, subtle glowing border */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);

    color: #fff;
    padding: 60px 40px;
    max-width: 600px;
    width: 85%;
    border-radius: 30px;
    /* Larger radius as seen in image */
    text-align: center;
    position: relative;
    z-index: 10;
}

.letter-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: #fff;
    /* Strong Cyan/White Neon Glow to match image */
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #00ffff;
}

.letter-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    /* Shadow for legibility */
}

.letter-content .signature {
    margin-top: 40px;
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes glow-anim {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #e6b800;
        opacity: 0.9;
    }

    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #ffdd44, 0 0 30px #ffdd44, 0 0 40px #ffdd44;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .glow-text {
        font-size: 3rem;
    }

    .sub-text {
        font-size: 1.5rem;
    }

    .card {
        padding: 30px 15px;
        margin: 0 10px;
    }

    .letter-content {
        padding: 20px;
    }

    .letter-content h2 {
        font-size: 2.5rem;
    }

    .lightrope {
        white-space: normal;
    }

    .lightrope li {
        margin: 10px;
    }
}