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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.love-meter {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    font-size: 2.5em;
    color: #ff1493;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.1);
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.input-field {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
    background-color: #fff5f9;
}

.plus-sign {
    font-size: 1.5em;
    color: #ff1493;
    font-weight: bold;
}

.check-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.check-btn:active {
    transform: translateY(0);
}

.result {
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

.result.hidden {
    display: none;
}

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

.names-result {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.names-result span {
    font-weight: bold;
    color: #ff1493;
}

.heart {
    margin: 0 10px;
    animation: heartBeat 1s infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.percentage-container {
    margin: 25px 0;
}

.percentage-text {
    font-size: 3em;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff1493 0%, #ff69b4 100%);
    width: 0%;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.message {
    font-size: 1.1em;
    color: #555;
    margin-top: 15px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.floating-heart {
    position: absolute;
    font-size: 2em;
    animation: float 3s ease-in forwards;
    opacity: 0.8;
}

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

@media (max-width: 600px) {
    .love-meter {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .percentage-text {
        font-size: 2.5em;
    }
    
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-field {
        width: 100%;
    }
}