.compat-quiz {
    max-width: 500px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.compat-header {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.compat-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.compat-header p {
    font-size: 14px;
    opacity: 0.95;
}

.compat-form {
    padding: 25px 20px;
}

.compat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.compat-col label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.compat-col select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.compat-col select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.compat-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compat-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.compat-form button:active {
    transform: translateY(0);
}

.compat-result-box {
    padding: 30px 20px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.compat-signes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.compat-emoji {
    font-size: 50px;
}

.compat-plus {
    font-size: 24px;
    color: #ec4899;
    font-weight: 700;
}

.compat-score {
    margin: 20px 0;
}

.compat-percentage {
    font-size: 48px;
    font-weight: 700;
    color: #ec4899;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

#compat-message {
    color: #666;
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
}

.compat-btn-reset {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: white;
    color: #ec4899;
    border: 2px solid #ec4899;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.compat-btn-reset:hover {
    background: #ffe4f0;
}

@media (max-width: 600px) {
    .compat-quiz {
        margin: 10px;
    }
    
    .compat-header h2 {
        font-size: 20px;
    }
    
    .compat-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .compat-emoji {
        font-size: 40px;
    }
    
    .compat-percentage {
        font-size: 36px;
    }
}
