* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sour Gummy', sans-serif;
    overflow: hidden;
    height: 100vh;
    background-image: url('../assets/media/images/val-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* dreamy bokeh overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;

    /* soft pastel dots */
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35) 0 10px, transparent 12px),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .25) 0 8px, transparent 10px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, .28) 0 12px, transparent 14px),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .22) 0 9px, transparent 11px),
        radial-gradient(circle at 10% 85%, rgba(255, 255, 255, .18) 0 7px, transparent 9px);

    filter: blur(0.2px);
    opacity: .9;
    animation: bokehFloat 14s ease-in-out infinite alternate;
}

@keyframes bokehFloat {
    from {
        transform: translateY(0px) translateX(0px);
    }

    to {
        transform: translateY(-18px) translateX(12px);
    }
}


.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.opening-message {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    line-height: 1.8;
    max-width: 900px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    z-index: 10;
}

.opening-message .line,
.love-message {
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

.opening-message .line {
    display: block;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    font-size: 2.5rem;
    margin: 0;
}

.opening-message .line.show {
    animation: lineFadeIn 0.8s ease-in forwards;
}

.opening-message .line.fade-out {
    animation: lineFadeOut 0.8s ease-out forwards;
}

@keyframes lineFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes lineFadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.valentine-question {
    display: none;
    text-align: center;
    color: white;
}

.valentine-question.show {
    display: block;
    animation: fadeIn 1s ease-in;
}

.valentine-question .valentine-characters {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.valentine-question h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

.button-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 18px 54px;
    font-size: 1.6rem;
    font-family: 'Sour Gummy', sans-serif;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    cursor: pointer;

    /* softer, cute vibe */
    font-weight: 800;
    text-transform: none; /* <- removes the "shouty" look */
    letter-spacing: 0.02em;

    /* glassy look */
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* depth */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* YES: soft strawberry milk */
.btn-yes {
    background: linear-gradient(135deg,
        rgba(255, 160, 205, 0.95),
        rgba(255, 220, 236, 0.92)
    );
    color: #fff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.75);
}

/* NO: soft lavender (still cute, not harsh) */
.btn-no {
    background: linear-gradient(135deg,
        rgba(186, 170, 255, 0.95),
        rgba(255, 210, 233, 0.88)
    );
    color: #fff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.75);
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
    filter: brightness(1.03);
}

.btn:active {
    transform: translateY(0px) scale(0.98);
}

.response-screen {
    display: none;
    text-align: center;
    color: white;
}

.response-screen.show {
    display: block;
    animation: fadeIn 1s ease-in;
}

/* Letter screen will use the same fadeIn animation as other response screens */

.response-screen img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

#nextBtn {
    margin-top: 20px;
}

.response-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

.response-screen p {
    font-size: 1.5rem;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

/* Gifts Screen */
#giftsScreen h2 {
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

#giftsScreen p {
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

.gifts-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.gift-item {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.gift-item img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.gift-item:hover img {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.gift-item:active {
    transform: translateY(-5px) scale(0.98);
}

@media (max-width: 768px) {
    .gifts-container {
        gap: 20px;
    }
    
    .gift-item img {
        max-width: 150px;
    }
}

/* Sparkles */
.sparkle {
    transform-origin: center;
}

/* Letter Screen */
#letterScreen {
    position: relative;
}

.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    color: #ff1744;
    animation: floatHeart 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.floating-heart:nth-child(1) {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    top: 8%;
    right: 8%;
    animation-delay: 0.5s;
}

.floating-heart:nth-child(3) {
    top: 45%;
    left: 2%;
    animation-delay: 1s;
}

.floating-heart:nth-child(4) {
    top: 55%;
    right: 5%;
    animation-delay: 1.5s;
}

.floating-heart:nth-child(5) {
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

.floating-heart:nth-child(6) {
    bottom: 12%;
    right: 15%;
    animation-delay: 2.5s;
}

.floating-heart:nth-child(7) {
    top: 25%;
    left: 2%;
    animation-delay: 0.3s;
}

.floating-heart:nth-child(8) {
    bottom: 25%;
    right: 2%;
    animation-delay: 1.8s;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.2);
    }
}

.letter-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-family: 'Sour Gummy', sans-serif;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    z-index: 9999 !important;
    transition: all 0.3s ease;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.letter-content h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    text-align: center;
}

.letter-text {
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: center;
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

/* Music Screen */
#musicScreen h2 {
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.music-player-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-player-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.music-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(255, 160, 205, 0.4),
        rgba(255, 220, 236, 0.35)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

.sad-zobby-popup {
    position: fixed;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    animation: popupDisappear 1.5s ease-out forwards;
}

.sad-zobby-popup img {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
}

@keyframes popupDisappear {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(10px);
    }
}

/* Rose Garden Screen - hidden until gift 3 is clicked */
#roseGardenScreen {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#roseGardenScreen.show {
    display: flex;
    animation: fadeIn 1s ease-in;
}

#roseGardenScreen h2 {
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.garden-instruction {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Sour Gummy', sans-serif;
}

.garden-container {
    position: relative;
    width: 96%;
    max-width: calc(100vw - 48px);
    height: calc(100vh - 200px);
    min-height: 420px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    padding: 30px;
    cursor: crosshair;
    overflow: hidden;
}

.rose-garden {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rose {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.rose.grown {
    opacity: 1;
    animation: roseGrow 0.6s ease-out forwards;
}

.rose-emoji {
    font-size: 3rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: roseFloat 3s ease-in-out infinite;
}

.rose-message {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Sour Gummy', sans-serif;
    text-align: center;
    white-space: nowrap;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: messageFadeIn 0.5s ease-out 0.3s forwards, messageFloat 3s ease-in-out 0.8s infinite;
}

@keyframes roseGrow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes roseFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-5deg);
    }
    75% {
        transform: translateY(-4px) rotate(5deg);
    }
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hidden {
    display: none !important;
}
