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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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: 600px;
}

.screen {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* 시작 화면 */
#start-screen h1 {
    text-align: center;
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.intro {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.intro p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* 버튼 스타일 */
.btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 진행바 */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

#progress-text {
    display: block;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* 질문 화면 */
#question-container h2 {
    color: #333;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.option-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.option-btn:active {
    background: #667eea;
    color: white;
}

/* 결과 화면 */
#result-screen h1 {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.result-type {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.result-name {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
}

.result-description {
    text-align: center;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-details {
    margin-bottom: 30px;
}

.dimension {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dim-label {
    width: 30px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.dim-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
}

.dim-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.trait-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

#restart-btn {
    margin-top: 20px;
}

/* 반응형 */
@media (max-width: 480px) {
    .screen {
        padding: 25px;
    }

    #start-screen h1 {
        font-size: 1.6rem;
    }

    .result-type {
        font-size: 3rem;
    }

    #question-container h2 {
        font-size: 1.1rem;
    }
}
