.home-hero { padding: 46px 0 28px; }
.home-hero h1 { margin: 0; font-size: clamp(30px, 8vw, 48px); line-height: 1.12; letter-spacing: -0.035em; }
.home-hero p { margin: 14px 0 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.discover-panel { margin: 4px 0 8px; }
.search-box { position: relative; display: flex; align-items: center; min-height: 54px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(20,24,28,.04); }
.search-icon { width: 48px; text-align: center; color: var(--muted); font-size: 23px; transform: rotate(-16deg); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 14px var(--sans); padding: 0 6px; }
.search-box input::placeholder { color: var(--faint); }
.search-box button { width: 44px; height: 44px; margin-right: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 24px; }
.theme-filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.theme-filters::-webkit-scrollbar { display: none; }
.theme-chip { flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.theme-chip span { margin-left: 3px; color: var(--faint); font: 500 10px var(--mono); }
.theme-chip.active { border-color: var(--brand); background: var(--brand-bg); color: var(--brand); }
.discover-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 12px; }
.discover-meta strong { font-size: 16px; }
.discover-meta span { color: var(--faint); font: 600 11px var(--mono); }
.category-label { display: inline-block; margin-bottom: 7px; color: var(--brand); font: 600 10px var(--mono); }
.test-card-link { display: block; color: inherit; text-decoration: none; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 12px 13px; }
.tag-chip { border: 0; border-radius: 999px; background: #F3F6F8; color: var(--muted); padding: 5px 8px; font-size: 10px; font-weight: 600; }
.tag-chip:hover { color: var(--brand); background: var(--brand-bg); }
.search-empty { margin: 30px 0 10px; padding: 42px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); }
.search-empty strong { display: block; color: var(--ink); margin-bottom: 6px; }
.search-empty p { margin: 0; font-size: 13px; }
.related-theme { display: inline-block; margin-bottom: 4px; color: var(--brand); font: 600 9px var(--mono); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 12px; }
.section-head h2 { margin: 0; font-size: 16px; }
.section-head span { color: var(--faint); font: 600 11px var(--mono); }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.test-card { overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.test-card:active { transform: scale(.985); }
.test-thumb { width: 100%; aspect-ratio: 1.24 / 1; object-fit: cover; background: #EEF2F5; }
.test-card-body { padding: 14px 14px 16px; }
.test-card-title { margin: 0; font-size: 15px; line-height: 1.35; word-break: keep-all; }
.test-card-desc { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.test-shell { padding-top: 24px; }
.intro { overflow: hidden; }
.intro-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #EEF2F5; }
.intro-body { padding: 24px 22px 22px; }
.eyebrow { color: var(--brand); font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.intro h1 { margin: 8px 0 0; font-size: clamp(28px, 8vw, 40px); line-height: 1.18; letter-spacing: -0.03em; word-break: keep-all; }
.intro p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.primary-btn, .answer-btn, .kakao-btn, .secondary-btn {
  width: 100%; border: 0; border-radius: 14px; min-height: 52px; font-weight: 700;
}
.primary-btn { margin-top: 22px; background: var(--brand); color: #fff; }
.primary-btn:hover { background: var(--brand-hover); }

.progress-wrap { margin-bottom: 20px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.progress-track { height: 6px; border-radius: 999px; background: #E7EAED; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .25s ease; }
.question-card { padding: 24px 20px; }
.question { margin: 0; font-size: clamp(21px, 5.8vw, 29px); line-height: 1.42; letter-spacing: -0.02em; word-break: keep-all; }
.answers { display: grid; gap: 10px; margin-top: 24px; }
.answer-btn { padding: 14px 16px; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); text-align: left; line-height: 1.45; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.answer-btn:hover { border-color: var(--brand); }
.answer-btn.selected { background: var(--brand-bg); border-color: var(--brand); transform: scale(.985); }
.answer-btn:disabled { cursor: default; }
.question-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.question-nav-btn { margin: 0; min-height: 48px; }
.question-nav-btn[disabled] { opacity: .42; cursor: default; }
.screen-in { animation: screen-in .22s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.loading-screen { padding: 70px 0; text-align: center; }
.loading-orbit { width: 82px; height: 82px; margin: 0 auto 24px; border: 2px solid var(--brand-line); border-radius: 50%; position: relative; }
.loading-orbit::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); position: absolute; top: -9px; left: 50%; margin-left: -9px; transform-origin: 9px 50px; animation: orbit 1.15s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.loading-screen h2 { margin: 0; font-size: 20px; }
.loading-screen p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.result-card { overflow: hidden; }
.result-image { width: 100%; aspect-ratio: 1.12 / 1; object-fit: cover; background: #EEF2F5; }
.result-body { padding: 24px 22px; }
.result-kicker { color: var(--muted); font-size: 12px; margin: 0; }
.result-title { margin: 6px 0 0; font-size: clamp(28px, 8vw, 40px); letter-spacing: -0.03em; line-height: 1.15; }
.result-subtitle { margin: 10px 0 0; color: var(--brand); font-weight: 600; font-size: 14px; line-height: 1.5; }
.result-description { margin-top: 22px; }
.result-description p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.75; font-size: 14px; }
.traits { display: grid; gap: 8px; margin-top: 18px; }
.trait { border-top: 1px solid var(--line); padding-top: 10px; font: 600 12px var(--mono); color: var(--ink-2); }
.result-actions { display: grid; gap: 10px; margin-top: 18px; }
.kakao-btn { background: var(--kakao); color: var(--kakao-ink); }
.secondary-btn { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }

/* AdFit 정책상 공유/네비게이션 버튼과 광고 사이에 충분한 간격 확보 */
.ad-section { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.ad-label { text-align: center; color: var(--faint); font: 500 10px var(--mono); margin-bottom: 8px; }
.ad-stack { display: grid; gap: 10px; justify-items: center; }
.ad-slot { margin: 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot-item { background: transparent; }
.ad-dev-placeholder { width: 100%; height: 100%; border: 1px dashed var(--line-strong); color: var(--faint); font: 500 11px var(--mono); display: grid; place-items: center; background: rgba(255,255,255,.5); }

.related { margin-top: 32px; }
.related-grid { display: grid; gap: 10px; }
.related-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; }
.related-item img { width: 72px; height: 58px; object-fit: cover; border-radius: 10px; background: #EEF2F5; }
.related-item h3 { margin: 0; font-size: 14px; }
.related-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px); background: #14181C; color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { padding: 36px 18px; color: var(--muted); text-align: center; }
@media (min-width: 680px) {
  .test-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .intro-body, .result-body { padding: 30px; }
  .question-card { padding: 34px 32px; }
}
