.tool-container { max-width: 560px; margin: 0 auto; padding: 20px 16px 60px; }
.tool-header { text-align: center; padding: 40px 0 24px; }
.tool-icon { font-size: 3rem; margin-bottom: 12px; }
.tool-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.subtitle { color: var(--accent-color); font-size: 0.95rem; }
.intro-text { text-align: center; line-height: 1.7; margin-bottom: 24px; opacity: 0.85; }
.primary-btn { display: block; width: 100%; padding: 14px; background: var(--primary-color); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-bottom: 12px; transition: opacity 0.2s; }
.primary-btn:hover { opacity: 0.85; }
.secondary-btn { display: block; width: 100%; padding: 12px; background: transparent; color: var(--text-color); border: 2px solid var(--input-border); border-radius: 12px; font-size: 0.95rem; cursor: pointer; transition: border-color 0.2s; }
.secondary-btn:hover { border-color: var(--primary-color); }
.progress-bar-wrap { background: var(--input-border); border-radius: 8px; height: 6px; margin-bottom: 16px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary-color); border-radius: 8px; transition: width 0.3s; }
.q-count { text-align: right; font-size: 0.85rem; opacity: 0.6; margin-bottom: 12px; }
.q-text { font-size: 1.15rem; font-weight: 600; line-height: 1.6; margin-bottom: 24px; word-break: keep-all; }
.q-options { display: flex; flex-direction: column; gap: 12px; }
.q-option-btn { padding: 16px; background: var(--card-bg); border: 2px solid var(--input-border); border-radius: 12px; font-size: 0.95rem; cursor: pointer; text-align: left; color: var(--text-color); transition: border-color 0.2s, background 0.2s; word-break: keep-all; line-height: 1.5; }
.q-option-btn:hover { border-color: var(--primary-color); background: var(--input-bg); }
.mbti-result-badge { font-size: 3.5rem; font-weight: 900; color: var(--primary-color); text-align: center; letter-spacing: 4px; margin: 20px 0 8px; }
#resultScreen h2 { text-align: center; font-size: 1.4rem; margin-bottom: 16px; }
.mbti-desc { text-align: center; line-height: 1.7; opacity: 0.85; margin-bottom: 20px; word-break: keep-all; }
.mbti-traits { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.trait-tag { background: var(--input-bg); border: 1px solid var(--primary-color); color: var(--primary-color); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; }
.mbti-axes { background: var(--card-bg); border-radius: 12px; padding: 16px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.axis-row { display: flex; align-items: center; gap: 10px; }
.axis-side { display: flex; align-items: center; gap: 5px; width: 80px; }
.axis-side-right { justify-content: flex-end; }
.axis-letter { font-size: 1rem; font-weight: 900; color: var(--text-color); opacity: 0.5; }
.axis-name { font-size: 0.75rem; opacity: 0.7; }
.axis-pct { font-size: 0.85rem; font-weight: 700; }
.axis-winner .axis-letter { opacity: 1; color: var(--primary-color); }
.axis-winner .axis-pct { color: var(--primary-color); }
.axis-bar-wrap { flex: 1; height: 12px; border-radius: 6px; overflow: hidden; display: flex; }
.axis-seg { height: 100%; transition: width 0.8s ease; }
.axis-seg-left { background: var(--primary-color); }
.axis-seg-right { background: #fd79a8; }
.recommend-section { margin: 24px 0 16px; }
.recommend-title { text-align: center; font-size: 0.9rem; opacity: 0.7; margin-bottom: 12px; }
.recommend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.recommend-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; background: var(--card-bg); border-radius: 10px; text-decoration: none; color: var(--text-color); font-size: 0.8rem; transition: background 0.2s; }
.recommend-btn:hover { background: var(--input-bg); }
.rec-icon { font-size: 1.4rem; }

.mbti-extra { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.mbti-extra-card { background: var(--card-bg); border-radius: 12px; padding: 16px 18px; }
.mbti-extra-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.extra-icon { display: inline; }
.mbti-extra-card p { font-size: 0.9rem; line-height: 1.7; opacity: 0.85; word-break: keep-all; margin: 0; }
.extra-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.compat-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compat-label { font-size: 0.78rem; opacity: 0.65; white-space: nowrap; }
.compat-label.good { color: #00b894; }
.compat-label.bad  { color: #e17055; }
.compat-type { padding: 3px 10px; border-radius: 16px; font-size: 0.85rem; font-weight: 700; }
.compat-good { background: rgba(0,184,148,0.15); color: #00b894; border: 1px solid #00b894; }
.compat-bad  { background: rgba(225,112,85,0.15);  color: #e17055; border: 1px solid #e17055; }
