* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffe0ec, #fff5f9);
    transition: 0.5s ease;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

.hidden {
    display: none;
}

/* Glassmorphism */
.glass-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Lock Screen */
#lock-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    padding: 12px;
    border-radius: 30px;
    border: none;
    margin-top: 20px;
    width: 100%;
}

button {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: #ff4d88;
    color: white;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 900px;
    margin: auto;
}

.hero {
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.small {
    padding: 20px;
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode */
.dark {
    background: linear-gradient(135deg, #141e30, #243b55);
    color: white;
}

.dark .glass-card {
    background: rgba(255, 255, 255, 0.08);
}

/* Floating background hearts */
.background-hearts::before {
    content: "sup dumbass";
    position: fixed;
    top: 0;
    left: 0;
    font-size: 50px;
    opacity: 0.05;
    width: 100%;
    text-align: center;
}

/* Theme button */
.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
}

.game-section {
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 30px;
}

.game-container {
    position: relative;
    height: 400px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
}

#basket {
    position: absolute;
    bottom: 10px;
    font-size: 40px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.1s;
}

.heart {
    position: absolute;
    font-size: 25px;
    animation: fall linear;
}

@keyframes fall {
    from { top: -30px; }
    to { top: 100%; }
}

#score {
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight: bold;
}

#winMessage {
    margin-top: 20px;
    font-size: 18px;
    color: #ff4d88;
}

/* Overlay */
#celebrationOverlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.4);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#celebrationOverlay.active {
    opacity: 1;
    pointer-events: all;
}

.love-letter {
    max-width: 500px;
    text-align: center;
    animation: popIn 0.8s ease forwards;
}

@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0.8;
    animation: confettiFall 3s linear forwards;
    z-index: 999;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
.love-letter {
    transform: scale(0.9);
    transition: all 0.5s ease;
}

#celebrationOverlay.active .love-letter {
    transform: scale(1);
}

/* Story Section Improvements */
.story p {
    margin: 20px 0;
    opacity: 0.85;
}

.memory-link {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    background: #ff4d88;
    color: white;
    font-weight: 600;
    transition: 0.3s ease;
}

.memory-link:hover {
    transform: scale(1.05);
}

/* Dark mode fix ONLY for this button */
.dark .memory-link {
    background: #ff6fa5;
    color: #111;
}

#fortuneMessage {
    min-height: 30px;
    font-weight: 500;
    transition: opacity 0.5s ease;
}

/* Love Slider Styling */
#loveSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 20px;
    background: rgba(255, 77, 136, 0.2);
    outline: none;
    transition: 0.3s;
}

/* Track fill effect (optional soft glow) */
#loveSlider:hover {
    background: rgba(255, 77, 136, 0.35);
}

/* Chrome / Safari Thumb */
#loveSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff4d88;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 77, 136, 0.5);
    transition: 0.2s ease;
}

#loveSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Firefox Thumb */
#loveSlider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff4d88;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 77, 136, 0.5);
}
.dark #loveSlider {
    background: rgba(255, 255, 255, 0.2);
}

.dark #loveSlider::-webkit-slider-thumb {
    background: #ff6fa5;
}

.dark #loveSlider::-moz-range-thumb {
    background: #ff6fa5;
}