@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
    font-weight: 45 920;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background: #FAFAF8;
    color: #1A1A1A;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.stage { max-width: 460px; margin: 0 auto; min-height: 100vh; position: relative; display: flex; flex-direction: column; }
.hidden { display: none !important; }
button, a.btn-like { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== 허브 화면 ===== */
#hub { padding-bottom: 60px; }
.header { padding: 44px 24px 8px; }
.date-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #8A8A8A;
    background: #F0EFEB; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.header-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.header-title em {
    font-style: normal; background: linear-gradient(90deg, #E8483A, #4A5FE8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-desc { font-size: 14.5px; color: #8A8A8A; margin-top: 10px; line-height: 1.55; }
.today-section { padding: 24px 24px 8px; }
.today-card { display: block; border-radius: 24px; padding: 32px 26px; position: relative; transition: transform .12s; width: 100%; text-align: left; overflow: hidden; }
.today-card:active { transform: scale(0.985); }
.today-card::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.25), transparent);
    animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.today-card .eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; opacity: .75; margin-bottom: 14px; }
.today-card .emoji { font-size: 44px; margin-bottom: 14px; }
.today-card .title { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 10px; }
.today-card .desc { font-size: 14.5px; line-height: 1.6; opacity: .85; margin-bottom: 22px; }
.today-card .cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; background: rgba(255,255,255,.92); color: #1A1A1A; padding: 13px 20px; border-radius: 999px; }
.list-section { padding: 36px 24px 0; }
.list-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.list-desc { font-size: 13.5px; color: #8A8A8A; margin-bottom: 18px; }
.test-list { display: flex; flex-direction: column; gap: 10px; }
.test-row {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    background: #fff; border: 1.5px solid #E5E3DE; border-radius: 18px; padding: 16px; transition: transform .1s;
}
.test-row:active { transform: scale(0.98); }
.test-row.is-today { border-color: #1A1A1A; }
.row-emoji { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.today-pill { font-size: 10.5px; font-weight: 800; color: #fff; background: #E8483A; padding: 3px 8px; border-radius: 999px; }
.hot-pill { font-size: 10.5px; font-weight: 800; color: #fff; background: #1A1A1A; padding: 3px 8px; border-radius: 999px; }
.new-pill { font-size: 10.5px; font-weight: 800; color: #fff; background: #4A5FE8; padding: 3px 8px; border-radius: 999px; }
.row-desc { font-size: 13px; color: #8A8A8A; margin-top: 3px; line-height: 1.45; }
.row-arrow { color: #C9C7C1; font-size: 20px; font-weight: 700; }
.footer { padding: 20px 24px 0; text-align: center; }
.footer p { font-size: 12.5px; color: #B5B3AD; line-height: 1.6; }

/* 무료고사(모의고사) 본 사이트로 유도하는 카드 - 허브/결과화면 공통.
   2026-09-03: 인디고 배경 버전이 광고처럼 보여 스킵된다는 검수 결과로, test-row와 완전히 같은 디자인 언어
   (흰 배경 + #E5E3DE 테두리 + 이모지 + 제목/설명 + › 화살표)로 교체. <a>의 파란색/밑줄도 명시적으로 제거. */
.main-site-cta-row { padding: 0 24px; margin-top: 14px; }
.main-site-cta {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    background: #fff; border: 1.5px solid #E5E3DE; border-radius: 18px; padding: 16px; transition: transform .1s;
    color: #1A1A1A; text-decoration: none;
}
.main-site-cta:hover, .main-site-cta:visited, .main-site-cta:focus { color: #1A1A1A; text-decoration: none; }
.main-site-cta:active { transform: scale(0.98); }
.main-site-cta-emoji {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0; background: #F0EFEB;
}
.main-site-cta-body { flex: 1; min-width: 0; }
.main-site-cta-eyebrow { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; color: #1A1A1A; }
.main-site-cta-title { font-size: 13px; color: #8A8A8A; margin-top: 3px; line-height: 1.45; font-weight: 500; }
.main-site-cta .row-arrow { margin-left: auto; }
/* 결과 화면용 작은 카드 - 다음 테스트 버튼 바로 아래, 한 톤 낮게 */
.main-site-cta.compact { padding: 13px 14px; gap: 12px; }
.main-site-cta.compact .main-site-cta-emoji { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
.main-site-cta.compact .main-site-cta-eyebrow { font-size: 14px; }
.main-site-cta.compact .main-site-cta-title { font-size: 12.5px; }

/* ===== 퀴즈 화면 ===== */
.quiz-screen { min-height: 100vh; display: flex; flex-direction: column; }
.quiz-topbar { padding: 18px 24px 0; }
.quiz-close { font-size: 14px; font-weight: 700; color: #8A8A8A; padding: 8px 0; }
.q-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px 48px; text-align: center; }
.intro-eyebrow { font-size: 13.5px; font-weight: 800; margin-bottom: 14px; }
.intro-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 12px; }
.intro-desc { font-size: 15px; color: #6E6E6E; line-height: 1.6; margin-bottom: 8px; }
.intro-hook { font-size: 13.5px; font-weight: 700; color: #8A8A8A; background: #F0EFEB; display: inline-block; margin: 10px auto 0; padding: 8px 16px; border-radius: 999px; }
.gender-pick { margin-top: 30px; }
.gender-pick p { font-size: 14px; font-weight: 700; color: #6E6E6E; margin-bottom: 12px; }
.gender-row { display: flex; gap: 10px; justify-content: center; }
.gender-btn {
    flex: 1; max-width: 150px; padding: 16px 0; border-radius: 16px; font-size: 15.5px; font-weight: 700;
    background: #fff; border: 1.5px solid #E5E3DE; color: #1A1A1A; transition: all .12s;
}
.gender-btn.active { background: #1A1A1A; border-color: #1A1A1A; color: #fff; }
.start-btn {
    margin-top: 34px; width: 100%; padding: 19px 0; border-radius: 18px; font-size: 16.5px; font-weight: 800;
    background: #1A1A1A; color: #fff; transition: opacity .15s, transform .1s;
}
.start-btn:active { transform: scale(0.98); }
.start-btn:disabled { opacity: .35; cursor: default; }

.q-run { flex: 1; display: flex; flex-direction: column; }
.progress-row { display: flex; align-items: center; gap: 12px; padding: 22px 24px 0; }
.progress-track { flex: 1; height: 8px; border-radius: 999px; background: #EDEBE6; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; width: 0%; transition: width .3s cubic-bezier(.22,1,.36,1); }
.progress-num { font-size: 13px; font-weight: 800; color: #8A8A8A; white-space: nowrap; }
.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 28px 30px; }
.q-axis-tag { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.q-text { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.45; margin-bottom: 30px; animation: qIn .25s cubic-bezier(.22,1,.36,1); }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.choice-list { display: flex; flex-direction: column; gap: 12px; }
.choice-btn {
    width: 100%; text-align: left; background: #fff; border: 1.5px solid #E5E3DE; border-radius: 18px;
    padding: 19px 20px; font-size: 15.5px; font-weight: 600; line-height: 1.5; color: #1A1A1A;
    transition: transform .1s, border-color .1s, background .1s;
    animation: qIn .3s cubic-bezier(.22,1,.36,1) backwards;
}
.choice-btn:nth-child(2) { animation-delay: .05s; }
.choice-btn:nth-child(3) { animation-delay: .1s; }
.choice-btn:active { transform: scale(0.975); }
.choice-btn.picked { border-color: #1A1A1A; background: #1A1A1A; color: #fff; transform: scale(0.985); }
.back-row { padding: 0 24px 32px; }
.back-btn { font-size: 13.5px; font-weight: 700; color: #ADABA5; padding: 8px 0; }

.q-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-bottom: 60px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #EDEBE6; border-top-color: #1A1A1A; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.q-loading p { font-size: 14.5px; color: #8A8A8A; font-weight: 600; }

/* ===== 드럼롤 연출 ===== */
.q-drumroll { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-bottom: 80px; }
.drum-text { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; animation: drumPulse .45s ease-in-out infinite alternate; }
.drum-sub { font-size: 14px; font-weight: 700; color: #8A8A8A; }
@keyframes drumPulse { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ===== 결과 화면 ===== */
.q-result { flex: 1; display: flex; flex-direction: column; animation: resultPop .5s cubic-bezier(.18,1.2,.35,1); }
@keyframes resultPop { 0% { opacity: 0; transform: scale(.92) translateY(16px); } 100% { opacity: 1; transform: none; } }
.result-hero { padding: 48px 28px 36px; text-align: center; position: relative; }
.result-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.06); margin-bottom: 18px; }
.result-emoji { font-size: 62px; margin-bottom: 6px; animation: emojiBounce .6s cubic-bezier(.18,1.4,.4,1) .1s backwards; }
@keyframes emojiBounce { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.result-code { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 8px; }
.result-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.3; }
.result-sub { font-size: 15px; color: #5C5C5C; font-weight: 600; }
.rarity-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
    font-size: 13px; font-weight: 800; color: #1A1A1A; background: rgba(255,255,255,.85);
    border: 1.5px solid rgba(0,0,0,.08); padding: 8px 16px; border-radius: 999px;
}
.result-body { padding: 24px 24px 20px; }
.result-desc { font-size: 15px; line-height: 1.7; color: #2E2E2E; background: #F5F4F1; border-radius: 18px; padding: 22px 20px; margin-bottom: 14px; }
.points-card { background: #fff; border: 1.5px solid #E5E3DE; border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.points-title { font-size: 14px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.point-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; font-weight: 600; line-height: 1.55; color: #2E2E2E; }
.point-check { flex-shrink: 0; font-size: 15px; }
.chem-grid { display: flex; gap: 10px; margin-bottom: 14px; }
.chem-card { flex: 1; border-radius: 18px; padding: 18px 16px; text-align: center; }
.chem-best { background: #EAF7EE; border: 1.5px solid #CDEBD8; }
.chem-worst { background: #FDEEEC; border: 1.5px solid #F5D5D1; }
.chem-label { font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.chem-best .chem-label { color: #2E9C5A; }
.chem-worst .chem-label { color: #E8483A; }
.chem-value { font-size: 15px; font-weight: 800; line-height: 1.4; }
.chem-note { font-size: 12px; font-weight: 600; color: #8A8A8A; margin-top: 6px; line-height: 1.45; }
.axis-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.axis-row { background: #fff; border: 1.5px solid #E5E3DE; border-radius: 16px; padding: 16px 18px; }
.axis-row .axis-name { font-size: 12.5px; font-weight: 700; color: #ADABA5; margin-bottom: 8px; }
.axis-bar-track { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #EDEBE6; margin-bottom: 8px; }
.axis-bar-fill { height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.22,1,.36,1); }
.axis-labels { font-size: 12.5px; font-weight: 700; color: #5C5C5C; }
.share-hook { text-align: center; font-size: 13.5px; font-weight: 700; color: #8A8A8A; padding: 6px 24px 12px; line-height: 1.5; }
.action-row { display: flex; gap: 10px; padding: 4px 24px 14px; }
.action-btn { flex: 1; padding: 17px 0; border-radius: 16px; font-size: 15px; font-weight: 700; transition: transform .1s; }
.action-btn:active { transform: scale(0.97); }
.action-primary { background: #1A1A1A; color: #fff; position: relative; overflow: hidden; }
.action-primary::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.3), transparent);
    animation: shine 2.8s ease-in-out infinite;
}
.action-secondary { background: #fff; border: 1.5px solid #E5E3DE; color: #1A1A1A; }
.next-test-row { padding: 0 24px 40px; }
.next-test-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    border-radius: 18px; padding: 16px 18px; transition: transform .1s;
}
.next-test-btn:active { transform: scale(0.98); }
.next-test-eyebrow { font-size: 11.5px; font-weight: 800; opacity: .7; margin-bottom: 3px; }
.next-test-title { font-size: 14.5px; font-weight: 800; }
.next-test-emoji { font-size: 26px; }
.next-test-arrow { margin-left: auto; font-size: 20px; font-weight: 700; opacity: .5; }

.vs-card { border-radius: 18px; padding: 20px; margin-bottom: 14px; background: linear-gradient(135deg, #FFF6E5, #FDEEF6); border: 1.5px solid #F2E3CE; animation: qIn .4s cubic-bezier(.22,1,.36,1); }
.vs-title { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.vs-row { display: flex; align-items: center; gap: 10px; }
.vs-side { flex: 1; background: rgba(255,255,255,.85); border-radius: 14px; padding: 14px 8px; text-align: center; }
.vs-who { font-size: 11.5px; font-weight: 700; color: #8A8A8A; margin-bottom: 6px; }
.vs-emoji { font-size: 30px; margin-bottom: 6px; font-weight: 800; }
.vs-name { font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.vs-mid { font-size: 15px; font-weight: 800; color: #E8483A; }
.vs-verdict { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.5; }
#confettiCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: #1A1A1A; color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px 20px; border-radius: 999px;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== 멀티페이지 추가 스타일 ===== */
.ad-slot { max-width: 460px; margin: 0 auto; text-align: center; }
.ad-slot:not(:empty) { padding: 16px 24px; }
.seo-section { max-width: 460px; margin: 0 auto; padding: 40px 24px 60px; }
.seo-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.seo-desc { font-size: 13.5px; color: #8A8A8A; line-height: 1.6; margin-bottom: 18px; }
.seo-type-list { display: flex; flex-direction: column; gap: 8px; }
.seo-type { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid #EDEBE6; border-radius: 14px; padding: 14px 16px; }
.seo-type-emoji { font-size: 22px; flex-shrink: 0; }
.seo-type-name { font-size: 14px; font-weight: 800; }
.seo-type-sub { font-size: 12.5px; color: #8A8A8A; margin-top: 2px; line-height: 1.45; }

/* ===== 결과 캐릭터 이미지 ===== */
.result-img { width: 190px; height: 190px; object-fit: contain; display: block; margin: 0 auto 8px; border-radius: 24px; animation: emojiBounce .6s cubic-bezier(.18,1.4,.4,1) .1s backwards; }
.vs-img { width: 58px; height: 58px; object-fit: contain; display: block; margin: 0 auto 6px; border-radius: 12px; }
