* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.screen {
    display: none;
    padding: 40px 30px;
    min-height: 400px;
}

.screen.active {
    display: block;
}

/* Start Screen */
.character-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.character {
    background: #f8f9ff;
    border: 2px solid #e1e8ff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
}

.character:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.character h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.character p {
    color: #666;
    font-size: 0.95em;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.btn.secondary:hover {
    box-shadow: 0 10px 25px rgba(252, 182, 159, 0.4);
}

/* Quiz Screen */
.progress-bar {
    background: #e1e8ff;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.question-counter {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-weight: 600;
}

#question-container {
    text-align: center;
}

#question-text {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-btn {
    background: white;
    border: 2px solid #e1e8ff;
    padding: 20px;
    border-radius: 15px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Result Screen */
#result-content {
    text-align: center;
    margin-bottom: 40px;
}

#result-character {
    font-size: 5em;
    margin-bottom: 20px;
}

#result-title {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
}

#result-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

#result-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.trait-tag {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn {
    margin: 0;
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header {
        padding: 25px 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .screen {
        padding: 30px 20px;
    }
    
    .character-preview {
        flex-direction: column;
    }
    
    #question-text {
        font-size: 1.2em;
    }
    
    .answer-btn {
        padding: 15px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active {
    animation: fadeIn 0.5s ease;
}

.answer-btn {
    animation: fadeIn 0.3s ease;
}

.answer-btn:nth-child(1) { animation-delay: 0.1s; }
.answer-btn:nth-child(2) { animation-delay: 0.2s; }
.answer-btn:nth-child(3) { animation-delay: 0.3s; }
.answer-btn:nth-child(4) { animation-delay: 0.4s; }
