:root {
    --primary-color: #6C5CE7;
    --secondary-color: #A29BFE;
    --bg-color: #F8F9FA;
    --text-color: #2D3436;
    --card-bg: #FFFFFF;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding: 40px 30px;
}

header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 시작 화면 */
#start-screen h2 { margin-bottom: 15px; font-size: 22px; }
#start-screen p { color: #636E72; margin-bottom: 30px; line-height: 1.5; }

/* 버튼 공통 */
.btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}
.primary-btn:hover { background-color: #5b4cc4; }

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 20px;
}
.secondary-btn:hover { background-color: rgba(108, 92, 231, 0.1); }

/* 질문 화면 */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #DFE6E9;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}
.question-number {
    font-size: 14px;
    color: #636E72;
    margin-bottom: 20px;
    font-weight: bold;
}
.question-text {
    font-size: 20px;
    margin-bottom: 30px;
    word-break: keep-all;
    line-height: 1.4;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.option-btn {
    background-color: #F1F2F6;
    color: var(--text-color);
    border: 2px solid transparent;
    text-align: left;
}
.option-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 결과 화면 */
#result-screen h2 {
    font-size: 18px;
    color: #636E72;
    margin-bottom: 10px;
}
.result-type {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.result-title {
    font-size: 20px;
    margin-bottom: 20px;
}
.result-desc {
    color: #636E72;
    line-height: 1.6;
    word-break: keep-all;
}