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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffe6e6 0%, #ffb3b3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    min-width: 320px;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2);
    border: 2px solid rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin: auto;
}

.container::before {
    content: '❤️';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.container::after {
    content: '❤️';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.title {
    font-size: 2.2rem;
    color: #ff4d7c;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
}

.health-bar {
    margin-bottom: 1.5rem;
}

.hearts-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.heart {
    width: 25px;
    height: 25px;
    background-color: #ff4d7c;
    clip-path: path('M12 21.593c-5.63-5.539-11-10.297-11-14.402 0-3.791 3.068-5.191 5.281-5.191 1.312 0 4.151.501 5.719 4.457 1.59-3.968 4.464-4.447 5.726-4.447 2.54 0 5.274 1.621 5.274 5.181 0 4.069-5.136 8.625-11 14.402m5.726-20.583c-2.203 0-4.446 1.042-5.726 3.238-1.285-2.206-3.522-3.248-5.719-3.248-3.183 0-6.281 2.187-6.281 6.191 0 4.661 5.571 9.429 12 15.809 6.43-6.38 12-11.148 12-15.809 0-4.011-3.097-6.181-6.274-6.181');
}

.heart.lost {
    background-color: #ddd;
}

.life-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.life-bar-fill {
    height: 100%;
    background: #ff4d4d;
    transition: width 0.3s ease;
}

.progress {
    text-align: center;
    color: #ff4d7c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.question-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 105, 180, 0.2);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
    text-align: center;
}

#question {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.options {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.option-btn {
    background: white;
    border: 2px solid #ff4d7c;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #ff4d7c;
}

.option-btn:hover {
    background: #ff4d7c;
    color: white;
    transform: translateY(-2px);
}

.start-menu {
    text-align: center;
}

.start-menu h2 {
    margin-bottom: 1rem;
    color: #333;
}

.start-menu p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.start-btn, .retry-btn {
    background: #ff4d7c;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 124, 0.3);
}

.start-btn:hover, .retry-btn:hover {
    background: #ff3366;
    transform: translateY(-2px);
}

.final-message {
    text-align: center;
}

.final-message h2 {
    color: #333;
    margin-bottom: 1rem;
}

.final-message p {
    color: #666;
    margin-bottom: 1rem;
}

.valentine-message {
    text-align: center;
}

.valentine-message h2 {
    color: #333;
    margin-bottom: 1rem;
}

.valentine-message p {
    color: #ff4d7c;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.valentine-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.yes-btn, .no-btn {
    background: #ff4d7c;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 124, 0.3);
}

.no-btn {
    background: #666;
    position: relative;
    transition: transform 0.2s ease;
}

.no-btn.moving {
    transition: all 0.3s ease-out;
}

.yes-btn:hover {
    background: #ff3366;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

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