:root { --primary: #3b5bdb; --bg-color: #f0f2f5; }
body { font-family: 'Pretendard', sans-serif; background: var(--bg-color); padding: 40px 20px; display: flex; justify-content: center; margin: 0; }
.container { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; max-width: 550px; box-sizing: border-box; }

.section { display: none; }
.section.active { display: block !important; }

.question-card { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.question-text { font-weight: bold; margin-bottom: 12px; line-height: 1.4; }

.options-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-btn { padding: 12px; border: 2px solid #ddd; border-radius: 12px; background: #fff; cursor: pointer; transition: 0.2s; font-size: 14px; }
.option-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

.action-btn { width: 100%; padding: 18px; background: var(--primary); color: #fff; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.action-btn:hover { background: #2b45b4; }
.nav-btn { background: #eee; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; color: #666; }

.page-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.progress-container { width: 100%; height: 8px; background: #eee; border-radius: 10px; margin-bottom: 25px; }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.3s; }

#result { text-align: center; }
#pokeImg { width: 250px; height: 250px; object-fit: contain; margin-bottom: 15px; }
.mbti-tag { background: var(--primary); color: #fff; display: inline-block; padding: 5px 15px; border-radius: 20px; font-size: 14px; margin-bottom: 10px; }
.insight-box { background: #f8f9fa; border-left: 5px solid var(--primary); padding: 15px; margin: 20px 0; text-align: left; font-weight: bold; line-height: 1.5; }
.desc-text { text-align: left; color: #555; line-height: 1.7; font-size: 15px; margin-bottom: 25px; }

.fadeIn { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }