:root {
    --pink-light: #fff5f7;
    --pink-medium: #ffc2d1;
    --pink-dark: #ff5d8f;
    --red-romantic: #e01e5a;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.75);
    --gold: #ffb900;
    --shadow: 0 15px 45px rgba(255, 77, 109, 0.2);
}

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

html,
body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffebf0 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--red-romantic);
    user-select: none;
}

/* Floating Hearts Background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart-particle {
    position: absolute;
    color: var(--pink-dark);
    opacity: 0.6;
    animation: float 6s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 77, 109, 0.3));
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* Main Card */
#main-container {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3rem 2.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 550px;
    z-index: 10;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 0.2rem;
    color: var(--red-romantic);
}

.day-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.illustration {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 15px rgba(255, 77, 109, 0.2));
    animation: pulseIcon 3s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.message {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 80px;
    color: #444;
}

/* Interactive Button */
.action-button {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 117, 140, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.action-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 117, 140, 0.6);
    background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
}

.action-button:active {
    transform: scale(0.95);
}

.footer-note {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 1rem;
    color: var(--pink-dark);
}

/* Special V-Day Styling */
.special-page {
    border: 4px solid var(--red-romantic) !important;
    background: radial-gradient(circle at center, #fff, #ffebf0) !important;
}

/* Rose Day Upgrades */
#balloon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    /* Ensure it's above EVERYTHING */
    overflow: hidden;
}

.rose-balloon {
    position: absolute;
    bottom: -150px;
    font-size: 5rem;
    /* Larger rose */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatUpRose 15s linear forwards;
    z-index: 10000;
}

@keyframes floatUpRose {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}

.balloon-tag {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.25rem;
    /* Larger text */
    color: var(--red-romantic);
    box-shadow: 0 10px 25px rgba(201, 24, 74, 0.25);
    white-space: nowrap;
    margin-top: 15px;
    border: 2px solid var(--pink-light);
    font-weight: 600;
    backdrop-filter: blur(5px);
}

#photo-section {
    margin: 20px 0;
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#fav-rose-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 3px solid var(--pink-light);
}

#note-section {
    background: #fff9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--red-romantic);
    margin: 20px 0;
    text-align: left;
}

#note-section h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

#journey-container {
    margin-top: 25px;
    border-top: 1px dashed var(--pink-medium);
    padding-top: 15px;
}

#journey-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Propose Day Styles */
#proposal-card {
    margin: 20px 0;
}

#proposal-question {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--red-romantic);
}

.proposal-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    min-height: 100px;
}

#no-btn {
    background: #888;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

#yes-btn {
    background: linear-gradient(45deg, #ff4d6d, #c9184a);
}

#propose-celebration {
    animation: fadeIn 1s ease-out;
}

#propose-photo-section {
    margin: 20px 0;
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#propose-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 3px solid var(--pink-light);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Propose Day Enhancements */
.heartbeat {
    animation: heartbeat 0.8s ease-in-out 2;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.success-message {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    /* Ultra Grand */
    color: var(--red-romantic);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.5), 0 0 40px rgba(255, 77, 109, 0.2);
    animation: grandEntrance 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flash-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
}

@keyframes flashBurst {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.animate-flash {
    animation: flashBurst 1.7s cubic-bezier(0.1, 0.7, 1, 0.1);
}

@keyframes grandEntrance {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.celebration-frame {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: linear-gradient(45deg, #ff4d6d, #c9184a, #ffb6c1);
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(201, 24, 74, 0.4);
    animation: frameGlow 3s infinite alternate;
    margin-bottom: 15px;
}

@keyframes frameGlow {
    from {
        box-shadow: 0 10px 30px rgba(201, 24, 74, 0.3);
    }

    to {
        box-shadow: 0 20px 60px rgba(201, 24, 74, 0.6);
    }
}

.celebration-img {
    width: 100%;
    max-width: 380px;
    /* Even larger */
    border-radius: 20px;
    border: 5px solid var(--white);
    display: block;
}

#proposal-question-typed {
    min-height: 80px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    100% {
        transform: translate(0, 0);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.virtual-hug-anim {
    animation: virtualHug 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes virtualHug {
    0% {
        transform: scale(1) translateY(0);
    }

    30% {
        transform: scale(2.5) translateY(-20px) rotate(5deg);
        z-index: 1000;
    }

    50% {
        transform: scale(2.5) translateY(-20px) rotate(-5deg);
        z-index: 1000;
    }

    100% {
        transform: scale(1) translateY(0);
        z-index: 1;
    }
}

.hug-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 93, 143, 0.2) 0%, rgba(255, 245, 247, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    animation: cinematicHug 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.romantic-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--red-romantic);
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 15px rgba(224, 30, 90, 0.3);
    animation: fadeInUp 1.5s ease forwards 0.5s;
    opacity: 0;
}

.giant-heart-glow {
    font-size: 12rem;
    filter: drop-shadow(0 0 30px rgba(255, 93, 143, 0.8));
    animation: heartThrob 1.5s infinite ease-in-out;
}

@keyframes cinematicHug {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes heartThrob {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 93, 143, 0.6));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(255, 93, 143, 1));
    }
}

/* Promise Day - Golden Vows Styles */
.promise-wall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    animation: fadeIn 1s forwards;
}

.promise-vow-card {
    background: white;
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(255, 185, 0, 0.2);
    border: 3px solid var(--gold);
    max-width: 400px;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: vowPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.promise-vow-card h3 {
    color: var(--gold);
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.promise-vow-card p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.5;
}

.golden-thread {
    position: fixed;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 100vw;
    z-index: 100001;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    animation: threadSweep 2s ease-in-out forwards;
}

@keyframes vowPopIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes threadSweep {
    0% {
        transform: translateY(-50%) scaleX(0);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) scaleX(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scaleX(0);
        opacity: 0;
    }
}

.golden-seal {
    font-size: 8rem;
    margin-top: 20px;
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 185, 0, 0.8));
}

.vibrating {
    animation: visualVibrate 0.1s infinite;
}

@keyframes visualVibrate {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(2px, 2px);
    }

    50% {
        transform: translate(-2px, -2px);
    }

    75% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Hug Day - Soul Connection Styles */
.hug-hands-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100vw;
    height: 15rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100002;
    overflow: hidden;
}

.hug-hand {
    position: absolute;
    font-size: 8rem;
    transition: all 0.1s linear;
    filter: drop-shadow(0 0 15px rgba(255, 93, 143, 0.5));
}

.hug-hand.left {
    left: -10rem;
}

.hug-hand.right {
    right: -10rem;
    transform: scaleX(-1);
}

.soul-flare {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 100005;
    opacity: 0;
    pointer-events: none;
}

.bloom-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 100006;
    text-align: center;
    color: var(--red-romantic);
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    width: 80%;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 20px white, 0 0 40px rgba(255, 255, 255, 0.8);
}

.warmth-progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    display: none;
    border: 1px solid rgba(255, 93, 143, 0.2);
}

.warmth-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff758c, #e01e5a);
    transition: width 0.1s linear;
}

@keyframes flareBurst {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(3);
    }
}

@keyframes messageBloom {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Kiss Day - Romantic Flurry Styles */
.lip-particle {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 100000;
    filter: drop-shadow(0 0 10px rgba(224, 30, 90, 0.4));
    animation: kissFloat 3s ease-out forwards;
}

@keyframes kissFloat {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(-100vh) rotate(-15deg);
        opacity: 0;
    }
}

.mwah-flash {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Dancing Script', cursive;
    font-size: 8rem;
    color: var(--red-romantic);
    z-index: 100010;
    pointer-events: none;
    opacity: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(224, 30, 90, 0.4);
    animation: mwahBurst 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Kiss Day Upgrade - Screen Smacker Styles */
.lip-stamp {
    position: fixed;
    font-size: 15rem;
    z-index: 100020;
    pointer-events: none;
    opacity: 0;
    filter: blur(2px) drop-shadow(0 0 15px rgba(224, 30, 90, 0.5));
    animation: lipSmack 1.5s ease-out forwards;
}

@keyframes lipSmack {
    0% {
        transform: scale(3) rotate(-10deg);
        opacity: 0;
        filter: blur(20px);
    }

    15% {
        transform: scale(1) rotate(5deg);
        opacity: 0.6;
        filter: blur(2px);
    }

    80% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.6;
        filter: blur(2px);
    }

    100% {
        transform: scale(1.2) rotate(10deg);
        opacity: 0;
        filter: blur(10px);
    }
}

.screen-impact {
    animation: screenThud 0.5s ease-out forwards;
}

@keyframes screenThud {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.05);
        filter: brightness(1.2) saturate(1.5);
    }

    100% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
}

.vortex-particle {
    position: fixed;
    pointer-events: none;
    z-index: 100015;
    animation: vortexRotate 4s linear forwards;
}

@keyframes vortexRotate {
    0% {
        transform: rotate(0deg) translateX(0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: rotate(720deg) translateX(100vw) scale(1.5);
        opacity: 0;
    }
}

@keyframes mwahBurst {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Premium Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0;
    padding: 10px;
    perspective: 1000px;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(255, 77, 109, 0.15);
    border: 2px solid var(--pink-light);
    animation: heartPulse 3s infinite ease-in-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.countdown-segment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 15px rgba(255, 77, 109, 0.15);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 25px rgba(255, 77, 109, 0.3);
    }
}

.countdown-value {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--red-romantic), var(--pink-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.countdown-label {
    font-family: 'Dancing Script', cursive;
    font-size: 0.8rem;
    color: var(--pink-dark);
    margin-top: 2px;
}

/* Number Pop Animation */
.pop-val {
    animation: valPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes valPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- KISS DAY SMACKER STYLES --- */
.mwah-flash {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: var(--red-romantic);
    font-family: 'Dancing Script', cursive;
    z-index: 100001;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
    animation: pulseShow 2s ease-out forwards;
    pointer-events: none;
}

.lip-stamp {
    position: fixed;
    font-size: 8rem;
    z-index: 100000;
    pointer-events: none;
    animation: smackIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4) forwards;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes smackIn {
    0% {
        transform: scale(3);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(5deg);
        opacity: 0.9;
    }
}

.vortex-particle {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    animation: vortexFly 4s ease-in forwards;
}

@keyframes vortexFly {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(calc(100vw - 50vw), calc(100vh - 50vh)) rotate(720deg) scale(0);
        opacity: 0;
    }
}

@keyframes pulseShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

/* --- FALLING MEMORIES FINALE --- */
#grand-finale-view {
    position: relative;
    width: 100%;
    height: 100%;
}

.locket-wrapper {
    perspective: 1000px;
    margin: 40px auto;
    cursor: pointer;
    width: fit-content;
    animation: fadeIn 1s ease;
}

.locket {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, #ffcf40, #ffb700);
    border-radius: 50% 50% 10% 10%;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid #d49a00;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: locketFloat 3s infinite ease-in-out;
}

@keyframes locketFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.locket-cover {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background: radial-gradient(circle at 30% 30%, #ffd700, #ffb700);
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    z-index: 2;
    backface-visibility: hidden;
    transition: transform 1s ease;
    border: 4px solid #d49a00;
}

.locket.open .locket-cover {
    transform: rotateY(-160deg);
}

.locket-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    z-index: 1;
}

.locket-hint {
    color: var(--pink-dark);
    font-weight: 600;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    margin-top: 20px;
}

body.aurora-active {
    background: #050518 !important;
    transition: background 2s ease;
    overflow: hidden;
}

body.aurora-active #main-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.aurora-active h1,
body.aurora-active #journey-container {
    opacity: 0 !important;
}

#aurora-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}

.aurora-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 93, 143, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(147, 112, 219, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(224, 30, 90, 0.2) 0%, transparent 50%);
    filter: blur(80px);
    animation: auroraMove 20s infinite alternate linear;
}

@keyframes auroraMove {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(10deg) scale(1.1);
    }
}

.petal {
    position: absolute;
    color: #ffb6c1;
    pointer-events: none;
    z-index: 10000;
}

.petal-text {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    color: var(--red-romantic);
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(224, 30, 90, 0.2);
    transform: translateY(-50px);
    opacity: 0.9;
    font-weight: 600;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.climax-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 700px;
    z-index: 20000;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.climax-msg h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.climax-msg p {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .countdown-segment {
        width: 60px;
        height: 60px;
    }

    .countdown-value {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .day-title {
        font-size: 1.5rem;
    }

    .message {
        font-size: 1.1rem;
    }

    #main-container {
        padding: 2rem 1.5rem;
    }

    .illustration {
        font-size: 3rem;
    }
}

/* Chocolate Day Styles */
#chocolate-view {
    animation: fadeIn 1s ease-out;
}

.chocolate-box-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 30px auto;
    perspective: 1000px;
    transition: all 0.5s ease;
}

.box-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5d4037;
    border-radius: 15px;
    z-index: 5;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 4px solid #3e2723;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.lid-ribbon {
    position: absolute;
    width: 40px;
    height: 100%;
    background: #ffd700;
    left: 50%;
    transform: translateX(-50%);
}

.lid-ribbon::after {
    content: '';
    position: absolute;
    height: 40px;
    width: 250%;
    background: #ffd700;
    top: 50%;
    left: -75%;
    transform: translateY(-50%);
}

.lid-text {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.4rem;
    z-index: 6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.box-lid.open {
    transform: rotateX(110deg);
    opacity: 0.2;
    pointer-events: none;
}

.chocolate-box-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3e2723;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.chocolates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
}

.chocolate-item {
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.chocolate-item:hover {
    transform: scale(1.1);
}

/* Enhanced Selection Animations */
.chocolates-grid.selection-active .chocolate-item:not(.selected) {
    opacity: 0.15;
    filter: grayscale(0.8) blur(2px);
    pointer-events: none;
}

.chocolate-item.selected {
    transform: scale(2.8) translateY(-40px) !important;
    z-index: 100;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    animation: floatingSelected 3s infinite ease-in-out;
}

@keyframes floatingSelected {

    0%,
    100% {
        transform: scale(2.8) translateY(-40px);
    }

    50% {
        transform: scale(2.9) translateY(-50px);
    }
}

#chocolate-message-display {
    margin-top: 25px;
    min-height: 120px;
    animation: fadeInUp 0.8s ease;
    background: var(--glass);
    border-left: 5px solid #5d4037;
    backdrop-filter: blur(10px);
}

.soft-glow {
    animation: softGlowPulse 3s infinite alternate;
}

@keyframes softGlowPulse {
    from {
        box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
    }

    to {
        box-shadow: 0 0 35px rgba(255, 77, 109, 0.7);
    }
}

@keyframes fadeInGlow {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

#choco-msg-text {
    color: #5d4037;
    font-weight: 600;
    font-size: 1.6rem;
    /* Larger for handwriting font */
    line-height: 1.4;
    font-family: 'Dancing Script', cursive;
}

.chocolate-item.opened {
    filter: grayscale(1) opacity(0.4) contrast(0.8) !important;
}


#chocolate-completion-view {
    animation: grandEntrance 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grand-celebration {
    border: 5px solid #ffd700 !important;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4) !important;
    background: radial-gradient(circle at center, #fff, #fff8e1) !important;
}

/* Popup Animation for Messages */
.pop-in {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}