:root {
    --primary-pink: #ff1e7c;
    --secondary-pink: #ff6b9d;
    --light-pink: #ffd1dc;
    --deep-pink: #c9184a;
    --gold: #ffd700;
    --white: #ffffff;
    --dark: #1a0a10;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(255, 30, 124, 0.3);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

html,
body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f0514 0%, #1a0a1e 50%, #2d1338 100%);
    min-height: 100vh;
    overflow: hidden;
    color: var(--white);
    cursor: none;
}

a,
button,
.magic-button,
[role="button"],
input[type="submit"],
input[type="button"] {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 99999;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.2s ease, height 0.2s ease;
    animation: cursorFloat 2s ease-in-out infinite;
    will-change: left, top;
    contain: layout style;
    backface-visibility: hidden;
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
}

.custom-cursor.hovering .cursor-heart path {
    fill: url(#cursorGradientHover);
}

.cursor-heart {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 30, 124, 0.8));
    transition: filter 0.2s ease;
    will-change: filter;
}

.custom-cursor.hovering .cursor-heart {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.5));
}

@keyframes cursorFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(5deg);
    }
}

.custom-cursor.clicking {
    animation: cursorClick 0.15s ease-out;
}

@keyframes cursorClick {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(0.7);
    }

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

.cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    overflow: hidden;
}

.cursor-trail {
    position: absolute;
    pointer-events: none;
    animation: trailFade 0.8s ease-out forwards;
}

.cursor-trail.heart {
    width: 12px;
    height: 12px;
    color: #ff6b9d;
}

.cursor-trail.sparkle {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 215, 0, 1) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
}

.cursor-trail.dot {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 182, 193, 1) 0%, rgba(255, 182, 193, 0) 70%);
    border-radius: 50%;
}

@keyframes trailFade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) translateY(-20px);
    }
}

@keyframes trailHeartFade {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(45deg) translateY(-30px);
    }
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    animation: floatUp linear infinite;
}

.glow-particle {
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
}

.heart-particle {
    filter: drop-shadow(0 0 8px currentColor);
}

.heart-particle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) scale(1);
        opacity: 0.8;
    }

    95% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-50px) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp linear infinite;
    opacity: 0.6;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.glass-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(255, 30, 124, 0.2),
        0 0 80px rgba(255, 107, 157, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 20;
    max-width: 90%;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {

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

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

.intro-screen {
    background: radial-gradient(ellipse at center,
            rgba(255, 30, 124, 0.2) 0%,
            transparent 70%);
}

.intro-card {
    max-width: 500px;
}

.heart-icon {
    margin-bottom: 20px;
    display: inline-block;
    color: var(--primary-pink);
}

.heart-icon svg {
    filter: drop-shadow(0 0 20px rgba(255, 30, 124, 0.6));
}

.heart-icon.pulse {
    animation: heartPulse 1.2s ease-in-out infinite;
}

@keyframes heartPulse {

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

    50% {
        transform: scale(1.2);
    }
}

.special-heart {
    position: relative;
}

.special-heart .decorative-heart {
    filter: none;
}

.special-heart .heart-shine {
    animation: shineMove 3s ease-in-out infinite;
}

@keyframes shineMove {

    0%,
    100% {
        opacity: 0.6;
        transform: rotate(-25deg) translateX(0);
    }

    50% {
        opacity: 0.95;
        transform: rotate(-25deg) translateX(5px);
    }
}

.special-heart .mini-heart {
    animation: miniHeartFloat 2.5s ease-in-out infinite;
}

.special-heart .mini-heart-1 {
    animation-delay: 0s;
}

.special-heart .mini-heart-2 {
    animation-delay: 0.6s;
}

.special-heart .mini-heart-3 {
    animation-delay: 1.2s;
}

.special-heart .mini-heart-4 {
    animation-delay: 1.8s;
}

@keyframes miniHeartFloat {

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

    50% {
        transform: translateY(-4px) scale(1.15);
        opacity: 1;
    }
}

.special-heart .star {
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.special-heart .star-1 {
    animation-delay: 0s;
}

.special-heart .star-2 {
    animation-delay: 0.5s;
}

.special-heart .star-3 {
    animation-delay: 1s;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg);
    }

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

.special-heart .sparkle-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

.special-heart .dot-1 {
    animation-delay: 0s;
}

.special-heart .dot-2 {
    animation-delay: 0.4s;
}

.special-heart .dot-3 {
    animation-delay: 0.8s;
}

.special-heart .dot-4 {
    animation-delay: 1.2s;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.special-heart .inner-bubble-1,
.special-heart .inner-bubble-2,
.special-heart .inner-bubble-3 {
    animation: bubbleFloat 4s ease-in-out infinite;
}

.special-heart .inner-bubble-1 {
    animation-delay: 0s;
}

.special-heart .inner-bubble-2 {
    animation-delay: 1.3s;
}

.special-heart .inner-bubble-3 {
    animation-delay: 2.6s;
}

@keyframes bubbleFloat {

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

    25% {
        opacity: 0.25;
        transform: translateY(-3px) scale(1.1);
    }

    50% {
        opacity: 0.2;
        transform: translateY(-5px) scale(1);
    }

    75% {
        opacity: 0.15;
        transform: translateY(-3px) scale(0.9);
    }
}

.special-heart .heart-decorative-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: lineReveal 3s ease-out forwards, lineGlow 2s ease-in-out infinite alternate 3s;
}

@keyframes lineReveal {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes lineGlow {
    0% {
        stroke: rgba(255, 255, 255, 0.2);
    }

    100% {
        stroke: rgba(255, 255, 255, 0.5);
    }
}

.intro-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--light-pink), var(--secondary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 157, 0.5);
}

.intro-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.magic-button {
    position: relative;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(255, 30, 124, 0.4),
        0 0 40px rgba(255, 30, 124, 0.2);
    font-family: 'Outfit', sans-serif;
}

.magic-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 30px rgba(255, 30, 124, 0.5),
        0 0 60px rgba(255, 30, 124, 0.3);
}

.magic-button:active {
    transform: translateY(-1px) scale(1.02);
}

.magic-button .button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magic-button:hover .button-glow {
    opacity: 0;
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.magic-button.secondary {
    background: linear-gradient(135deg, var(--secondary-pink), var(--primary-pink));
}

.start-btn {
    font-size: 1.2rem;
    padding: 18px 45px;
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.4),
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shinyEffect 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shinyEffect {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.start-btn .start-icon {
    display: inline-block;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #ffd700);
}

.start-btn .start-icon--left {
    margin-right: 8px;
    animation: starSpin 2s ease-in-out infinite;
}

.start-btn .start-icon--right {
    margin-left: 8px;
    animation: giftBounce 1.5s ease-in-out infinite;
}

@keyframes starSpin {

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

    25% {
        transform: rotate(15deg) scale(1.2);
    }

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

    75% {
        transform: rotate(-15deg) scale(1.2);
    }
}

@keyframes giftBounce {

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

    25% {
        transform: translateY(-4px) scale(1.1);
    }

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

    75% {
        transform: translateY(-2px) scale(1.05);
    }
}

.start-btn:hover .start-icon--left {
    animation-duration: 0.8s;
}

.start-btn:hover .start-icon--right {
    animation-duration: 0.6s;
}

.continue-btn .btn-hearts {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    position: relative;
}

.continue-btn .btn-heart {
    display: inline-block;
    animation: heartBounce 1s ease-in-out infinite;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #ffd700) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    text-shadow: 0 0 10px #fff;
}

.continue-btn .btn-heart--1 {
    animation-delay: 0s;
    font-size: 0.9rem;
}

.continue-btn .btn-heart--2 {
    animation-delay: 0.3s;
    font-size: 1.3rem;
}

.continue-btn .btn-heart--3 {
    animation-delay: 0.6s;
    font-size: 0.9rem;
}

@keyframes heartBounce {

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

    25% {
        transform: scale(1.2) translateY(-2px);
    }

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

    75% {
        transform: scale(1.1) translateY(-1px);
    }
}

.flower-btn .btn-flowers {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.flower-btn .btn-flower {
    display: inline-block;
    animation: flowerSway 2s ease-in-out infinite;
    font-size: 1.1rem;
}

.flower-btn .btn-flower--1 {
    animation-delay: 0s;
}

.flower-btn .btn-flower--2 {
    animation-delay: 0.5s;
    margin-left: -3px;
    font-size: 0.95rem;
}

@keyframes flowerSway {

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

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

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

    75% {
        transform: rotate(-10deg) scale(1.1);
    }
}

.continue-btn:hover .btn-heart,
.flower-btn:hover .btn-flower {
    animation-duration: 0.5s;
}

.surprise-btn .surprise-icon {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: middle;
}

.surprise-btn .surprise-heart {
    display: inline-block;
    vertical-align: middle;
    animation: heartPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 182, 193, 0.8));
}

.surprise-btn .sparkle {
    font-size: 0.8rem;
    animation: sparkleFloat 1.5s ease-in-out infinite;
    display: inline-block;
}

.surprise-btn .sparkle--1 {
    animation-delay: 0s;
}

.surprise-btn .sparkle--2 {
    animation-delay: 0.5s;
}

@keyframes heartPulse {

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

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

@keyframes sparkleFloat {

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

    50% {
        transform: translateY(-3px) scale(1.2);
        opacity: 0.7;
    }
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold);
}

@keyframes sparkle {

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

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

.message-screen {
    background: radial-gradient(ellipse at center,
            rgba(255, 30, 124, 0.15) 0%,
            transparent 60%);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

#particleCanvas {
    width: 100%;
    height: 100%;
}

.message-card {
    max-width: 600px;
    z-index: 15;
}

.message-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 80px;
    background: linear-gradient(135deg, var(--white), var(--light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.love-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-style: italic;
}

.typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--primary-pink);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.heart3d-screen {
    background: linear-gradient(135deg,
            rgba(255, 30, 124, 0.1) 0%,
            rgba(201, 24, 74, 0.1) 100%);
}

.heart3d-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.heart3d-container canvas {
    display: block;
}

.overlay-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.heart3d-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 30, 124, 0.8);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 30, 124, 0.5);
    }

    100% {
        text-shadow: 0 0 40px rgba(255, 30, 124, 0.9), 0 0 60px rgba(255, 30, 124, 0.5);
    }
}

.heart3d-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.flowers-screen {
    background: linear-gradient(180deg, #0f0514 0%, #1a0a1e 100%);
}

.flowers-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    animation: flowersGrowUp 3s ease-out 0.5s forwards;
}

@keyframes flowersGrowUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50%) scale(0.8);
    }

    40% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.9;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.side-flowers {
    position: fixed;
    bottom: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

.side-flowers--left {
    left: calc(50% - 180px);
    transform: rotate(-45deg) translateY(100%);
    transform-origin: bottom right;
}

.side-flowers--right {
    right: calc(50% - 180px);
    transform: rotate(45deg) translateY(100%);
    transform-origin: bottom left;
}

.side-flowers-inner {
    transform: scale(0.35);
    transform-origin: bottom center;
}

.flowers-screen.active .side-flowers--left {
    animation: sideFlowersGrowUp 2.5s ease-out 0.3s forwards;
}

.flowers-screen.active .side-flowers--right {
    animation: sideFlowersGrowUpRight 2.5s ease-out 0.5s forwards;
}

@keyframes sideFlowersGrowUp {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateY(100%) scale(0.5);
    }

    40% {
        opacity: 0.7;
        transform: rotate(-45deg) translateY(20%) scale(0.9);
    }

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

@keyframes sideFlowersGrowUpRight {
    0% {
        opacity: 0;
        transform: rotate(45deg) translateY(100%) scale(0.5);
    }

    40% {
        opacity: 0.7;
        transform: rotate(45deg) translateY(20%) scale(0.9);
    }

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

.flowers {
    position: relative;
    transform: scale(0.45);
    transform-origin: bottom center;
    margin-bottom: 0;
}

.side-flowers .flower__leafs,
.side-flowers .flower__line,
.side-flowers .flower__line__leaf {
    animation-play-state: paused;
}

.flowers-screen.active .side-flowers .flower__leafs,
.flowers-screen.active .side-flowers .flower__line,
.flowers-screen.active .side-flowers .flower__line__leaf {
    animation-play-state: running;
}

.love-animation-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    opacity: 1;
}

.web-effect-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: auto;
    opacity: 0.9;
}

.corner-flowers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.corner-flower {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    filter: drop-shadow(0 0 15px rgba(255, 182, 193, 0.9));
    animation: cornerFlowerAppear 2s ease-out forwards;
}

.corner-flower--top-left {
    top: 20px;
    left: 20px;
    animation-delay: 0.5s;
}

.corner-flower--top-right {
    top: 20px;
    right: 20px;
    animation-delay: 0.7s;
}

.corner-flower--bottom-left {
    bottom: 150px;
    left: 20px;
    animation-delay: 0.9s;
}

.corner-flower--bottom-right {
    bottom: 150px;
    right: 20px;
    animation-delay: 1.1s;
}

.side-flower {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.8));
    animation: sideFlowerFloat 3s ease-out forwards;
}

.side-flower--left-1 {
    top: 30%;
    left: 15px;
    animation-delay: 1.3s;
}

.side-flower--left-2 {
    top: 55%;
    left: 25px;
    animation-delay: 1.5s;
}

.side-flower--right-1 {
    top: 35%;
    right: 15px;
    animation-delay: 1.7s;
}

.side-flower--right-2 {
    top: 60%;
    right: 25px;
    animation-delay: 1.9s;
}

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

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

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

@keyframes sideFlowerFloat {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.5);
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
        animation: sideFlowerPulse 3s ease-in-out infinite;
    }
}

@keyframes sideFlowerPulse {

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

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

.floating-flowers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.floating-flower {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255, 182, 193, 0.8));
    animation: floatUp 8s ease-in-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0.5);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) rotate(360deg) scale(1.2);
    }
}

.flowers-overlay {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.flowers-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.8);
}

.title-emoji {
    display: inline-block;
    font-size: 0.9em;
    animation: titleEmojiPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.9)) drop-shadow(0 0 20px rgba(255, 20, 147, 0.6));
}

@keyframes titleEmojiPulse {

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

    50% {
        transform: scale(1.2);
    }
}

.sparkle-flower {
    display: inline-block;
    position: relative;
    font-size: 1.2em;
    animation: flowerBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 182, 193, 0.9)) drop-shadow(0 0 15px rgba(255, 105, 180, 0.7)) drop-shadow(0 0 25px rgba(255, 20, 147, 0.5));
}

.sparkle-flower::before,
.sparkle-flower::after {
    content: '✨';
    position: absolute;
    font-size: 0.4em;
    animation: sparkleFloat 1.5s ease-in-out infinite;
}

.sparkle-flower::before {
    top: -8px;
    right: -5px;
    animation-delay: 0s;
}

.sparkle-flower::after {
    bottom: -5px;
    left: -8px;
    animation-delay: 0.75s;
}

@keyframes flowerBounce {

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

    25% {
        transform: translateY(-3px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    75% {
        transform: translateY(-2px) rotate(-5deg) scale(1.03);
    }
}

@keyframes sparkleFloat {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8) translateY(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) translateY(-3px);
    }
}

.flowers-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.button-flower-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.button-flowers {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: -20px;
    opacity: 0;
    animation: buttonFlowersAppear 1.5s ease-out 0.5s forwards;
    transform-style: preserve-3d;
}

.button-flowers--left {
    transform: rotate(-45deg) scale(0.25);
    transform-origin: right bottom;
    margin-right: -60px;
}

.button-flowers--right {
    transform: rotate(45deg) scale(0.25);
    transform-origin: left bottom;
    margin-left: -60px;
}

.button-flower-item {
    position: relative;
    animation: buttonFlowerSway 3s ease-in-out infinite;
}

.button-flower-item--1 {
    animation-delay: 0s;
    z-index: 1;
}

.button-flower-item--2 {
    animation-delay: 0.3s;
    z-index: 2;
    margin-left: -30px;
}

.button-flower-item--3 {
    animation-delay: 0.6s;
    z-index: 1;
    margin-left: -30px;
}

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

    50% {
        opacity: 1;
        transform: rotate(-45deg) scale(0.28);
    }

    100% {
        opacity: 1;
        transform: rotate(-45deg) scale(0.25);
    }
}

.button-flowers--right {
    animation-name: buttonFlowersAppearRight;
}

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

    50% {
        opacity: 1;
        transform: rotate(45deg) scale(0.28);
    }

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

@keyframes buttonFlowerSway {

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

    50% {
        transform: rotate(3deg);
    }
}

.mini-flower {
    position: relative;
    width: 40px;
    height: 60px;
    transform-origin: bottom center;
    animation: miniFlowerSway 3s ease-in-out infinite;
}

.mini-flower--1 {
    animation-delay: 0s;
    transform: scale(0.8);
}

.mini-flower--2 {
    animation-delay: 0.5s;
    transform: scale(1);
}

.mini-flower--3 {
    animation-delay: 1s;
    transform: scale(0.7);
}

.mini-flower__leafs {
    position: relative;
    animation: blooming-flower 2s backwards;
}

.mini-flower__leaf {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 18px;
    height: 25px;
    border-radius: 51% 49% 47% 53%/44% 45% 55% 69%;
    background-color: #ff6b9d;
    background-image: linear-gradient(to top, #e91e63, #ff6b9d, #ffb6c1);
    transform-origin: bottom center;
    opacity: 0.9;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.3);
}

.mini-flower__leaf--1 {
    transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg);
}

.mini-flower__leaf--2 {
    transform: translate(-50%, -4%) rotateX(40deg);
}

.mini-flower__leaf--3 {
    transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg);
}

.mini-flower__leaf--4 {
    width: 18px;
    height: 18px;
    transform-origin: bottom left;
    border-radius: 9px 20px 9px 9px;
    transform: translate(0%, 18%) rotateX(70deg) rotate(-43deg);
    background-image: linear-gradient(to top, rgba(233, 30, 99, 0.6), #ffb6c1);
    z-index: 1;
    opacity: 0.8;
}

.mini-flower__white-circle {
    position: absolute;
    left: -8px;
    top: -7px;
    width: 20px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffd1dc;
}

.mini-flower__white-circle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: inherit;
    background-image: linear-gradient(90deg, #ffd700, #ffb347);
}

.mini-flower__line {
    height: 35px;
    width: 4px;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent, rgb(76 175 80 / 34%)),
        linear-gradient(to top, #2e7d32 10%, #4caf50, #81c784);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

@keyframes miniFlowerSway {

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

    50% {
        transform: scale(0.8) rotate(5deg);
    }
}

.mini-flower--2 {
    animation-name: miniFlowerSway2;
}

@keyframes miniFlowerSway2 {

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

    50% {
        transform: scale(1) rotate(-5deg);
    }
}

.mini-flower--3 {
    animation-name: miniFlowerSway3;
}

@keyframes miniFlowerSway3 {

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

    50% {
        transform: scale(0.7) rotate(5deg);
    }
}

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

    50% {
        opacity: 1;
        transform: rotate(-45deg) scale(1.1);
    }

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

.button-flower-group--right {
    animation-name: flowerGroupAppearRight;
}

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

    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.1);
    }

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

.flower {
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    z-index: 10;
    --fl-speed: 0.8s;
}

.flower--1 {
    animation: moving-flower-1 4s linear infinite;
}

.flower--1 .flower__line {
    height: 50vmin;
    animation-delay: 0.3s;
}

.flower--1 .flower__line__leaf--1 {
    animation: blooming-leaf-right var(--fl-speed) 1.6s backwards;
}

.flower--1 .flower__line__leaf--2 {
    animation: blooming-leaf-right var(--fl-speed) 1.4s backwards;
}

.flower--1 .flower__line__leaf--3 {
    animation: blooming-leaf-left var(--fl-speed) 1.2s backwards;
}

.flower--1 .flower__line__leaf--4 {
    animation: blooming-leaf-left var(--fl-speed) 1s backwards;
}

.flower--1 .flower__line__leaf--5 {
    animation: blooming-leaf-right var(--fl-speed) 1.8s backwards;
}

.flower--1 .flower__line__leaf--6 {
    animation: blooming-leaf-left var(--fl-speed) 2s backwards;
}

.flower--2 {
    left: 50%;
    transform: rotate(20deg);
    animation: moving-flower-2 4s linear infinite;
}

.flower--2 .flower__line {
    height: 42vmin;
    animation-delay: 0.6s;
}

.flower--2 .flower__line__leaf--1 {
    animation: blooming-leaf-right var(--fl-speed) 1.9s backwards;
}

.flower--2 .flower__line__leaf--2 {
    animation: blooming-leaf-right var(--fl-speed) 1.7s backwards;
}

.flower--2 .flower__line__leaf--3 {
    animation: blooming-leaf-left var(--fl-speed) 1.5s backwards;
}

.flower--2 .flower__line__leaf--4 {
    animation: blooming-leaf-left var(--fl-speed) 1.3s backwards;
}

.flower--3 {
    left: 50%;
    transform: rotate(-15deg);
    animation: moving-flower-3 4s linear infinite;
}

.flower--3 .flower__line {
    animation-delay: 0.9s;
}

.flower--3 .flower__line__leaf--1 {
    animation: blooming-leaf-right var(--fl-speed) 2.5s backwards;
}

.flower--3 .flower__line__leaf--2 {
    animation: blooming-leaf-right var(--fl-speed) 2.3s backwards;
}

.flower--3 .flower__line__leaf--3 {
    animation: blooming-leaf-left var(--fl-speed) 2.1s backwards;
}

.flower--3 .flower__line__leaf--4 {
    animation: blooming-leaf-left var(--fl-speed) 1.9s backwards;
}

.flower__leafs {
    position: relative;
    animation: blooming-flower 2s backwards;
}

.flower__leafs--1 {
    animation-delay: 1.1s;
}

.flower__leafs--2 {
    animation-delay: 1.4s;
}

.flower__leafs--3 {
    animation-delay: 1.7s;
}

.flower__leafs::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    width: 8vmin;
    height: 8vmin;
    background-color: #ffffff;
    filter: blur(10vmin);
}

.flower__leaf {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8vmin;
    height: 11vmin;
    border-radius: 51% 49% 47% 53%/44% 45% 55% 69%;
    background-color: #ff6b9d;
    background-image: linear-gradient(to top, #e91e63, #ff6b9d, #ffb6c1);
    transform-origin: bottom center;
    opacity: 0.9;
    box-shadow: inset 0 0 2vmin rgba(255, 255, 255, 0.3);
}

.flower__leaf--1 {
    transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg);
}

.flower__leaf--2 {
    transform: translate(-50%, -4%) rotateX(40deg);
}

.flower__leaf--3 {
    transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg);
}

.flower__leaf--4 {
    width: 8vmin;
    height: 8vmin;
    transform-origin: bottom left;
    border-radius: 4vmin 10vmin 4vmin 4vmin;
    transform: translate(0%, 18%) rotateX(70deg) rotate(-43deg);
    background-image: linear-gradient(to top, rgba(233, 30, 99, 0.6), #ffb6c1);
    z-index: 1;
    opacity: 0.8;
}

.flower__white-circle {
    position: absolute;
    left: -3.5vmin;
    top: -3vmin;
    width: 9vmin;
    height: 4vmin;
    border-radius: 50%;
    background-color: #ffd1dc;
}

.flower__white-circle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: inherit;
    background-image: linear-gradient(90deg, #ffd700, #ffb347);
}

.flower__line {
    height: 38vmin;
    width: 1.5vmin;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent, rgb(76 175 80 / 34%)),
        linear-gradient(to top, #2e7d32 10%, #4caf50, #81c784);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
    animation: grow-flower-tree 4s backwards;
}

.flower__line__leaf {
    --w: 7vmin;
    --h: calc(var(--w) + 2vmin);
    position: absolute;
    top: 20%;
    left: 90%;
    width: var(--w);
    height: var(--h);
    border-top-right-radius: var(--h);
    border-bottom-left-radius: var(--h);
    background-image: linear-gradient(to top, rgb(46 125 50 / 82%), #81c784);
}

.flower__line__leaf--1 {
    transform: rotate(70deg) rotateY(30deg);
}

.flower__line__leaf--2 {
    top: 45%;
    transform: rotate(70deg) rotateY(30deg);
}

.flower__line__leaf--3,
.flower__line__leaf--4,
.flower__line__leaf--6 {
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: var(--h);
    border-bottom-right-radius: var(--h);
    left: -460%;
    top: 12%;
    transform: rotate(-70deg) rotateY(30deg);
}

.flower__line__leaf--4 {
    top: 40%;
}

.flower__line__leaf--5 {
    top: 0;
    transform-origin: left;
    transform: rotate(70deg) rotateY(30deg) scale(0.6);
}

.flower__line__leaf--6 {
    top: -2%;
    left: -450%;
    transform-origin: right;
    transform: rotate(-70deg) rotateY(30deg) scale(0.6);
}

.flower__light {
    position: absolute;
    bottom: 0vmin;
    width: 1vmin;
    height: 1vmin;
    background-color: rgb(255, 251, 0);
    border-radius: 50%;
    filter: blur(0.2vmin);
    animation: light-ans 4s linear infinite backwards;
}

.flower__light:nth-child(odd) {
    background-color: #ffffff;
}

.flower__light--1 {
    left: -2vmin;
    animation-delay: 1s;
}

.flower__light--2 {
    left: 3vmin;
    animation-delay: 0.5s;
}

.flower__light--3 {
    left: -6vmin;
    animation-delay: 0.3s;
}

.flower__light--4 {
    left: 6vmin;
    animation-delay: 0.9s;
}

.flower__light--5 {
    left: -1vmin;
    animation-delay: 1.5s;
}

.flower__light--6 {
    left: -4vmin;
    animation-delay: 3s;
}

.flower__light--7 {
    left: 3vmin;
    animation-delay: 2s;
}

.flower__light--8 {
    left: -6vmin;
    animation-delay: 3.5s;
}

.flower__grass {
    --c: #ff9ec4;
    --line-w: 1.5vmin;
    position: absolute;
    bottom: 0;
    left: -7vmin;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 20;
    transform-origin: bottom center;
    transform: rotate(-48deg) rotateY(40deg) scale(0.5);
}

.flower__grass--1 {
    left: -20vmin;
    animation: moving-grass 2s linear infinite;
}

.flower__grass--2 {
    left: -35vmin;
    bottom: 5vmin;
    transform: rotate(-25deg) rotateY(20deg) scale(0.35);
    animation: moving-grass 2.5s linear infinite 0.5s;
}

.flower__grass--3 {
    left: auto;
    right: -18vmin;
    transform: rotate(55deg) rotateY(-30deg) scale(0.4);
    animation: moving-grass 2.3s linear infinite 0.8s;
}

.flower__grass--top {
    width: 7vmin;
    height: 10vmin;
    border-top-right-radius: 100%;
    border-right: var(--line-w) solid var(--c);
    transform-origin: bottom center;
    transform: rotate(-2deg);
    background-color: #ffb3d1;
}

.flower__grass--bottom {
    margin-top: -2px;
    width: var(--line-w);
    height: 18vmin;
    background-color: #ffb3d1;
}

.flower__grass__leaf {
    --size: 10vmin;
    position: absolute;
    width: calc(var(--size) * 2.1);
    height: var(--size);
    border-top-left-radius: var(--size);
    border-top-right-radius: var(--size);
    background-image: linear-gradient(to top, #ff6b9d, #ffb3d1 40%, #ffd6e8);
    z-index: 100;
    opacity: 0.95;
}

.flower__grass__leaf--1 {
    top: -6%;
    left: 30%;
    --size: 6vmin;
    transform: rotate(-20deg);
    animation: growing-grass-ans--1 2s 2.6s backwards;
}

.flower__grass__leaf--2 {
    top: -5%;
    left: -110%;
    --size: 6vmin;
    transform: rotate(10deg);
    animation: growing-grass-ans--2 2s 2.4s linear backwards;
}

.flower__grass__leaf--3 {
    top: 5%;
    left: 60%;
    --size: 8vmin;
    transform: rotate(-18deg) rotateX(-20deg);
    animation: growing-grass-ans--3 2s 2.2s linear backwards;
}

.flower__grass__leaf--4 {
    top: 6%;
    left: -135%;
    --size: 8vmin;
    transform: rotate(2deg);
    animation: growing-grass-ans--4 2s 2s linear backwards;
}

.flower__grass__leaf--5 {
    top: 20%;
    left: 60%;
    --size: 10vmin;
    transform: rotate(-24deg) rotateX(-20deg);
    animation: growing-grass-ans--5 2s 1.8s linear backwards;
}

.flower__grass__leaf--6 {
    top: 22%;
    left: -180%;
    --size: 10vmin;
    transform: rotate(10deg);
    animation: growing-grass-ans--6 2s 1.6s linear backwards;
}

.flower__grass__leaf--7 {
    top: 39%;
    left: 70%;
    --size: 10vmin;
    transform: rotate(-10deg);
    animation: growing-grass-ans--7 2s 1.4s linear backwards;
}

.flower__grass__leaf--8 {
    top: 40%;
    left: -215%;
    --size: 11vmin;
    transform: rotate(10deg);
    animation: growing-grass-ans--8 2s 1.2s linear backwards;
}

.flower__grass__overlay {
    position: absolute;
    top: -10%;
    right: 0%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 179, 209, 0.2);
    filter: blur(1.5vmin);
    z-index: 100;
}

@keyframes blooming-flower {
    0% {
        transform: scale(0);
    }

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

@keyframes blooming-leaf-right {
    0% {
        transform-origin: left;
        transform: rotate(70deg) rotateY(30deg) scale(0);
    }
}

@keyframes blooming-leaf-left {
    0% {
        transform-origin: right;
        transform: rotate(-70deg) rotateY(30deg) scale(0);
    }
}

@keyframes grow-flower-tree {
    0% {
        height: 0;
    }
}

@keyframes light-ans {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    25% {
        opacity: 1;
        transform: translateY(-5vmin) scale(1.1);
    }

    50% {
        opacity: 0;
        transform: translateY(-10vmin) scale(0.8);
    }

    75% {
        opacity: 1;
        transform: translateY(-20vmin) scale(0.6);
    }

    100% {
        opacity: 0;
        transform: translateY(-30vmin);
    }
}

@keyframes moving-flower-1 {

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

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

@keyframes moving-flower-2 {

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

    50% {
        transform: rotate(22deg);
    }
}

@keyframes moving-flower-3 {

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

    50% {
        transform: rotate(-12deg);
    }
}

@keyframes moving-grass {

    0%,
    100% {
        transform: rotate(-48deg) rotateY(40deg);
    }

    50% {
        transform: rotate(-50deg) rotateY(40deg);
    }
}

@keyframes growing-grass-ans--1 {
    0% {
        transform-origin: bottom left;
        transform: rotate(-20deg) scale(0);
    }
}

@keyframes growing-grass-ans--2 {
    0% {
        transform-origin: bottom right;
        transform: rotate(10deg) scale(0);
    }
}

@keyframes growing-grass-ans--3 {
    0% {
        transform-origin: bottom left;
        transform: rotate(-18deg) rotateX(-20deg) scale(0);
    }
}

@keyframes growing-grass-ans--4 {
    0% {
        transform-origin: bottom right;
        transform: rotate(2deg) scale(0);
    }
}

@keyframes growing-grass-ans--5 {
    0% {
        transform-origin: bottom left;
        transform: rotate(-24deg) rotateX(-20deg) scale(0);
    }
}

@keyframes growing-grass-ans--6 {
    0% {
        transform-origin: bottom right;
        transform: rotate(10deg) scale(0);
    }
}

@keyframes growing-grass-ans--7 {
    0% {
        transform-origin: bottom left;
        transform: rotate(-10deg) scale(0);
    }
}

@keyframes growing-grass-ans--8 {
    0% {
        transform-origin: bottom right;
        transform: rotate(10deg) scale(0);
    }
}

.final-screen {
    background: radial-gradient(ellipse at center,
            rgba(255, 30, 124, 0.25) 0%,
            rgba(201, 24, 74, 0.15) 50%,
            transparent 70%);
}

.final-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.final-card {
    max-width: 600px;
    padding: 50px 60px;
}

.big-heart {
    margin-bottom: 20px;
    color: var(--primary-pink);
}

.big-heart svg,
.heart-svg {
    animation: heartBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 30, 124, 0.7));
}

@keyframes heartBounce {

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

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

.final-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--light-pink), var(--secondary-pink), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 30, 124, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.final-message {
    font-size: 1.15rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.final-message .highlight {
    color: var(--secondary-pink);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--light-pink);
    margin-bottom: 30px;
}

.signature-heart {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    rotate: 5deg;
}

.signature-heart-message {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    rotate: 10deg;
}

.sig-heart-icon {
    display: inline-block;
    vertical-align: middle;
    animation: sigHeartBeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.8)) drop-shadow(0 0 15px rgba(255, 30, 124, 0.5));
    color: #ff6b9d;
}

.sig-sparkle {
    font-size: 0.9rem;
    animation: sigSparkle 2s ease-in-out infinite;
    display: inline-block;
}

.sig-sparkle:first-child {
    animation-delay: 0s;
}

.sig-sparkle:last-child {
    animation-delay: 0.7s;
}

@keyframes sigHeartBeat {

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

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }

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

@keyframes sigSparkle {

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

    25% {
        transform: scale(1.3) rotate(10deg);
        opacity: 1;
    }

    50% {
        transform: scale(1) rotate(-5deg);
        opacity: 0.6;
    }

    75% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
}

.restart-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.restart-btn:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    box-shadow: 0 8px 30px rgba(255, 30, 124, 0.4);
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

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

.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 30, 124, 0.2);
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 30, 124, 0.4);
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-pink);
}

.music-icon svg {
    stroke: var(--light-pink);
}

.music-toggle.playing .music-icon {
    animation: musicBounce 0.5s ease infinite;
}

.music-toggle.playing .music-icon svg {
    stroke: var(--primary-pink);
}

@keyframes musicBounce {

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

    50% {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 30px 25px;
        margin: 0 15px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .heart-icon {
        font-size: 60px;
    }

    .message-title {
        font-size: 1.8rem;
    }

    .heart3d-title,
    .flowers-title {
        font-size: 2rem;
    }

    .final-title {
        font-size: 2.5rem;
    }

    .final-message {
        font-size: 1rem;
    }

    .flowers {
        transform: scale(0.5);
    }

    .heart-emoji {
        font-size: 70px;
    }

    .overlay-content {
        margin-top: 50vh;
        padding: 0 20px;
    }

    .flowers-overlay {
        margin-bottom: 10vh;
        padding: 0 20px;
    }

    .side-flowers--left {
        left: calc(50% - 120px);
    }

    .side-flowers--right {
        right: calc(50% - 120px);
    }

    .side-flowers-inner {
        transform: scale(0.55);
    }

    .flowers-screen .flowers-overlay {
        bottom: 20%;
    }

    .start-btn {
        font-size: 1.1rem;
        padding: 16px 40px;
    }

    .love-quote {
        font-size: 1rem;
        line-height: 1.6;
    }

    .music-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.6rem;
    }

    .heart3d-title,
    .flowers-title,
    .final-title {
        font-size: 1.8rem;
    }

    .magic-button {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .flowers {
        transform: scale(0.4);
    }

    .intro-split-container {
        flex-direction: column;
    }

    .intro-left {
        display: none;
    }

    .intro-right {
        width: 100%;
        justify-content: center;
    }

    .side-flowers--left {
        left: calc(50% - 90px);
    }

    .side-flowers--right {
        right: calc(50% - 90px);
    }

    .side-flowers-inner {
        transform: scale(0.5);
    }

    .flowers-screen .flowers-overlay {
        position: absolute;
        bottom: 15%;
        top: auto;
    }

    .start-btn {
        font-size: 1rem;
        padding: 14px 35px;
    }

    .start-btn .start-icon {
        font-size: 1.1rem;
    }

    .continue-btn .btn-heart {
        font-size: 0.9rem;
    }

    .continue-btn .btn-heart--2 {
        font-size: 1rem;
    }

    .flower-btn .btn-flower {
        font-size: 0.9rem;
    }

    .surprise-btn .surprise-heart {
        width: 16px;
        height: 16px;
    }

    .surprise-btn .sparkle {
        font-size: 0.7rem;
    }

    .final-card {
        padding: 25px 20px;
        margin: 0 15px;
    }

    .big-heart svg {
        width: 70px;
        height: 70px;
    }

    .signature {
        font-size: 1.2rem;
    }

    .sig-heart-icon {
        width: 18px;
        height: 18px;
    }

    .sig-sparkle {
        font-size: 0.7rem;
    }

    .flowers-overlay {
        margin-bottom: 5vh;
    }

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

    .flowers-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .intro-title {
        font-size: 1.4rem;
    }

    .magic-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .start-btn {
        padding: 12px 25px;
    }

    .start-btn .start-icon--left,
    .start-btn .start-icon--right {
        margin-left: 5px;
        margin-right: 5px;
    }

    .side-flowers--left {
        left: calc(50% - 70px);
    }

    .side-flowers--right {
        right: calc(50% - 70px);
    }

    .side-flowers-inner {
        transform: scale(0.45);
    }

    .flowers-screen .flowers-overlay {
        bottom: 10%;
    }

    .heart3d-title,
    .flowers-title {
        font-size: 1.4rem;
    }

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

    .final-message {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 20px 15px;
    }

    .big-heart svg {
        width: 60px;
        height: 60px;
    }

    .signature {
        font-size: 1.1rem;
    }
}

.intro-screen {
    background: transparent;
    overflow: hidden;
}

.intro-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 30, 124, 0.8) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.7) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.6) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {

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

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }

    75% {
        transform: translate(-50px, -20px) scale(1.05);
    }
}

.intro-split-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px;
    gap: 60px;
}

.intro-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.intro-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.intro-card {
    animation: cardFloat 6s ease-in-out infinite, cardAppear 1s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.cube-container {
    perspective: 1000px;
    width: 250px;
    height: 250px;
}

.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: cubeRotate 15s infinite linear;
    margin: 0 auto;
}

.cube .outer-cube,
.cube .inner-cube {
    transform-style: preserve-3d;
}

@keyframes cubeRotate {
    from {
        transform: rotateX(-30deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-30deg) rotateY(360deg);
    }
}

.outer-cube .outer-top,
.outer-cube .outer-bottom,
.outer-cube .outer-right,
.outer-cube .outer-left,
.outer-cube .outer-front,
.outer-cube .outer-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.4;
    transition: all 0.9s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 0 20px rgba(255, 30, 124, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.outer-cube img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
}

.outer-top {
    transform: rotateX(90deg) translateZ(100px);
}

.outer-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.outer-front {
    transform: rotateY(0deg) translateZ(100px);
}

.outer-back {
    transform: translateZ(-100px) rotateY(180deg);
}

.outer-left {
    transform: rotateY(90deg) translateZ(100px);
}

.outer-right {
    transform: rotateY(-90deg) translateZ(100px);
}

.inner-cube>div {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 130px;
    height: 130px;
    box-shadow: 0 0 30px rgba(255, 30, 124, 0.5);
}

.inner-cube img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.inner-top {
    transform: rotateX(90deg) translateZ(65px);
}

.inner-bottom {
    transform: rotateX(-90deg) translateZ(65px);
}

.inner-front {
    transform: rotateY(0deg) translateZ(65px);
}

.inner-back {
    transform: translateZ(-65px) rotateY(180deg);
}

.inner-left {
    transform: rotateY(90deg) translateZ(65px);
}

.inner-right {
    transform: rotateY(-90deg) translateZ(65px);
}

.cube:hover .outer-top {
    opacity: 0.9;
    transform: rotateX(90deg) translateZ(150px);
}

.cube:hover .outer-bottom {
    opacity: 0.9;
    transform: rotateX(-90deg) translateZ(150px);
}

.cube:hover .outer-front {
    opacity: 0.9;
    transform: rotateY(0deg) translateZ(150px);
}

.cube:hover .outer-back {
    opacity: 0.9;
    transform: translateZ(-150px) rotateY(180deg);
}

.cube:hover .outer-left {
    opacity: 0.9;
    transform: rotateY(90deg) translateZ(150px);
}

.cube:hover .outer-right {
    opacity: 0.9;
    transform: rotateY(-90deg) translateZ(150px);
}

@media (max-width: 1024px) {
    .intro-split-container {
        gap: 30px;
        padding: 20px;
    }

    .cube-container {
        width: 200px;
        height: 200px;
    }

    .cube {
        width: 160px;
        height: 160px;
    }

    .outer-cube .outer-top,
    .outer-cube .outer-bottom,
    .outer-cube .outer-right,
    .outer-cube .outer-left,
    .outer-cube .outer-front,
    .outer-cube .outer-back {
        width: 140px;
        height: 160px;
    }

    .outer-top {
        transform: rotateX(90deg) translateZ(80px);
    }

    .outer-bottom {
        transform: rotateX(-90deg) translateZ(80px);
    }

    .outer-front {
        transform: rotateY(0deg) translateZ(80px);
    }

    .outer-back {
        transform: translateZ(-80px) rotateY(180deg);
    }

    .outer-left {
        transform: rotateY(90deg) translateZ(80px);
    }

    .outer-right {
        transform: rotateY(-90deg) translateZ(80px);
    }

    .outer-cube img {
        height: 160px;
    }

    .inner-cube>div {
        top: 25px;
        left: 25px;
        width: 100px;
        height: 100px;
    }

    .inner-cube img {
        width: 100px;
        height: 100px;
    }

    .inner-top {
        transform: rotateX(90deg) translateZ(50px);
    }

    .inner-bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }

    .inner-front {
        transform: rotateY(0deg) translateZ(50px);
    }

    .inner-back {
        transform: translateZ(-50px) rotateY(180deg);
    }

    .inner-left {
        transform: rotateY(90deg) translateZ(50px);
    }

    .inner-right {
        transform: rotateY(-90deg) translateZ(50px);
    }
}

@media (max-width: 768px) {
    .intro-split-container {
        flex-direction: column;
        gap: 20px;
    }

    .intro-left {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .intro-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .cube-container {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    .cube {
        width: 140px;
        height: 140px;
    }

    .outer-cube .outer-top,
    .outer-cube .outer-bottom,
    .outer-cube .outer-right,
    .outer-cube .outer-left,
    .outer-cube .outer-front,
    .outer-cube .outer-back {
        width: 120px;
        height: 140px;
    }

    .outer-cube img {
        height: 140px;
    }

    .outer-top {
        transform: rotateX(90deg) translateZ(70px);
    }

    .outer-bottom {
        transform: rotateX(-90deg) translateZ(70px);
    }

    .outer-front {
        transform: rotateY(0deg) translateZ(70px);
    }

    .outer-back {
        transform: translateZ(-70px) rotateY(180deg);
    }

    .outer-left {
        transform: rotateY(90deg) translateZ(70px);
    }

    .outer-right {
        transform: rotateY(-90deg) translateZ(70px);
    }

    .inner-cube>div {
        top: 20px;
        left: 20px;
        width: 80px;
        height: 80px;
    }

    .inner-cube img {
        width: 80px;
        height: 80px;
    }

    .inner-top {
        transform: rotateX(90deg) translateZ(40px);
    }

    .inner-bottom {
        transform: rotateX(-90deg) translateZ(40px);
    }

    .inner-front {
        transform: rotateY(0deg) translateZ(40px);
    }

    .inner-back {
        transform: translateZ(-40px) rotateY(180deg);
    }

    .inner-left {
        transform: rotateY(90deg) translateZ(40px);
    }

    .inner-right {
        transform: rotateY(-90deg) translateZ(40px);
    }
}