* {
    box-sizing: border-box;
    font-family: "Pretendard", sans-serif;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}
body {
    background-color: #f4f6f8;
    color: #2d3748;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.container {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    width: 100%;
    max-width: 520px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.top-nav { text-align: right; margin-bottom: 10px; }
.home-icon-btn {
    background: none; border: 1px solid #d1d5db; color: #1a2438; font-size: 0.7rem;
    padding: 5px 12px; cursor: pointer; font-weight: 700; letter-spacing: 0.1em; transition: all 0.2s;
}
.home-icon-btn:hover { background: #1a2438; border-color: #1a2438; color: #ffffff; }
.brand-header-logo {
    border-bottom: 1px dashed #cbd5e1; padding-bottom: 15px; margin-bottom: 35px; font-size: 0.75rem;
    font-weight: 700; letter-spacing: 0.12em; color: #1a2438; text-align: center;
}
.emoji { font-size: 2.5rem; margin-bottom: 15px; }
#start-page h1 {
    font-size: 1.65rem; font-weight: 800; color: #1a2438; line-height: 1.4; margin-bottom: 15px; word-break: keep-all;
}
#start-page p {
    font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-bottom: 20px; word-break: keep-all;
}
.notice-box {
    background: #f8fafc; border: 1px solid #e2e8f0; padding: 18px; margin-bottom: 24px;
}
.notice-box h3 { font-size: 0.95rem; margin-bottom: 10px; color: #1a2438; }
.notice-box ul { padding-left: 18px; color: #64748b; font-size: 0.84rem; line-height: 1.7; }
.selection-box { display: flex; flex-direction: column; gap: 14px; }
.start-btn {
    display: flex; flex-direction: column; padding: 22px 20px; border: 1px solid #1a2438;
    text-align: left; cursor: pointer; transition: all 0.2s ease;
}
.mode-full { background: #1a2438; color: #ffffff; }
.mode-full:hover { background: #0f1624; }
.btn-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.btn-sub { font-size: 0.8rem; opacity: 0.8; }
.progress-bar-container { margin-bottom: 24px; text-align: left; }
.progress-text {
    font-size: 0.75rem; color: #94714f; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 8px;
}
.progress-track { width: 100%; height: 6px; background: #e2e8f0; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: #1a2438; transition: width 0.25s ease; }
#question-text {
    font-size: 1.15rem; font-weight: 700; color: #1a2438; line-height: 1.5; text-align: left;
    margin-bottom: 30px; min-height: 55px; word-break: keep-all;
}
.answer-btn {
    display: block; width: 100%; padding: 16px; margin-bottom: 12px; text-align: left; background: #ffffff;
    border: 1px solid #cbd5e1; font-size: 0.9rem; color: #475569; cursor: pointer; line-height: 1.4;
    transition: all 0.2s; word-break: keep-all;
}
.answer-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.answer-btn.selected { border: 2px solid #1a2438; background: #f0f4f8; font-weight: 700; color: #1a2438; }
.quiz-footer {
    display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #f1f5f9;
}
.nav-btn {
    background: #ffffff; border: 1px solid #1a2438; color: #1a2438; padding: 12px 24px; font-weight: 700;
    font-size: 0.8rem; cursor: pointer; min-width: 90px; letter-spacing: 0.05em; transition: all 0.2s;
}
.nav-btn:disabled { border-color: #e2e8f0; color: #cbd5e1; cursor: not-allowed; background: #ffffff; }
.nav-btn.next { background: #1a2438; color: #ffffff; }
.nav-btn.next:disabled { background: #e2e8f0; border-color: #e2e8f0; color: #ffffff; }
#result-page { text-align: left; }
.result-header {
    border-bottom: 2px solid #1a2438; padding-bottom: 10px; margin-bottom: 25px; font-size: 0.85rem;
    font-weight: 700; color: #5a6a85; text-align: center; letter-spacing: 0.05em;
}
.main-character-box { background-color: #f8fafc; padding: 25px; border-left: 6px solid #1a2438; margin-bottom: 30px; }
.badge {
    display: inline-block; padding: 3px 8px; background: #1a2438; color: #ffffff; font-size: 0.65rem;
    font-weight: 700; letter-spacing: 0.05em; margin-bottom: 12px;
}
.result-icon { font-size: 2.2rem; margin-bottom: 10px; }
#main-title { font-size: 1.65rem; font-weight: 800; color: #1a2438; margin-bottom: 10px; }
#main-desc { font-size: 0.9rem; color: #475569; line-height: 1.6; word-break: keep-all; }
.analysis-section { margin-top: 28px; }
.analysis-section h4 { font-size: 1rem; color: #1a2438; margin-bottom: 15px; }
.analysis-card { padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.analysis-card strong { display: block; font-size: 0.9rem; margin-bottom: 8px; color: #334155; }
.analysis-card p { font-size: 0.85rem; color: #64748b; line-height: 1.6; word-break: keep-all; }
.analysis-card ul { padding-left: 18px; color: #64748b; font-size: 0.85rem; line-height: 1.7; }
.prompt-card { background: #f8fafc; padding: 16px; border: 1px solid #e2e8f0; margin-top: 10px; }
.text-gold { color: #94714f !important; }
.text-red { color: #ba3c3c !important; }
.score-bars { display: flex; flex-direction: column; gap: 12px; }
.score-row { display: grid; grid-template-columns: 94px 1fr 38px; align-items: center; gap: 10px; font-size: 0.8rem; color: #475569; }
.score-label { font-weight: 700; color: #334155; }
.score-track { height: 8px; background: #e2e8f0; overflow: hidden; }
.score-fill { height: 100%; background: #94714f; }
.score-value { text-align: right; color: #64748b; font-size: 0.75rem; }
.sub-report-box {
    background: #fffbfb; border: 1px solid #fecaca; border-top: 3px solid #ba3c3c; padding: 20px; margin-top: 30px;
}
.sub-report-box h4 { color: #ba3c3c; font-size: 0.95rem; margin-bottom: 10px; }
.sub-report-box p { font-size: 0.85rem; color: #475569; line-height: 1.6; word-break: keep-all; }
.action-box { display: flex; flex-direction: column; gap: 12px; margin-top: 35px; }
.share-btn {
    background: #ffffff; border: 1px solid #94714f; color: #94714f; padding: 16px; font-weight: 700;
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.share-btn:hover { background: #fdfaf7; }
.retry-btn {
    background: #1a2438; color: #ffffff; border: none; padding: 16px; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s;
}
.retry-btn:hover { background: #0f1624; }
.brand-footer-logo {
    margin-top: 40px; padding-top: 15px; border-top: 1px solid #e2e8f0; font-size: 0.7rem; color: #94a3b8; text-align: center;
}

/* Instagram CTA */
.insta-cta {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    padding: 10px 13px;
    margin-bottom: 18px;
    transition: all 0.2s ease;
    width: auto;
    max-width: 100%;
}

.insta-cta:hover {
    background: #1a2438;
    color: #ffffff;
}

.insta-cta-main {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.insta-cta-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.72;
    letter-spacing: 0.02em;
}

.start-insta-cta {
    margin-top: -8px;
    margin-bottom: 22px;
}

.insta-follow-box {
    margin-top: 28px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.insta-follow-title {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: keep-all;
}

.result-insta-cta {
    margin-bottom: 0;
    border-color: #cbd5e1;
    color: #475569;
    background: #ffffff;
}

.result-insta-cta:hover {
    background: #1a2438;
    border-color: #1a2438;
    color: #ffffff;
}

@media (max-width: 420px) {
    body { padding: 12px; }
    .container { padding: 24px 20px; }
    #start-page h1, #main-title { font-size: 1.45rem; }
    #question-text { font-size: 1.05rem; }
    .score-row { grid-template-columns: 82px 1fr 34px; }
}


.bottom-insta-box {
    margin-top: 18px;
    margin-bottom: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.bottom-insta-box .insta-follow-title {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 10px;
}

.bottom-insta-box .result-insta-cta {
    padding: 9px 11px;
}


/* Instagram result CTA - fixed placement */
.insta-follow-box {
    margin-top: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.insta-follow-title {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 10px;
    word-break: keep-all;
}

.insta-cta {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    padding: 9px 11px;
    transition: all 0.2s ease;
    width: auto;
    max-width: 100%;
}

.insta-cta:hover {
    background: #1a2438;
    border-color: #1a2438;
    color: #ffffff;
}

.insta-cta-main {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.insta-cta-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.72;
    letter-spacing: 0.02em;
}


.official-intro-box {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    padding: 18px;
    margin-bottom: 18px;
}

.official-intro-box h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #1a2438;
}

.official-intro-box p {
    font-size: 0.82rem;
    color: #5b6778;
    line-height: 1.65;
    margin-bottom: 10px;
    word-break: keep-all;
}

.official-intro-box p:last-child {
    margin-bottom: 0;
}


/* All types page */
#all-types-page {
    text-align: left;
}

.all-types-intro {
    background: #f8fafc;
    border-left: 5px solid #1a2438;
    padding: 18px;
    margin-bottom: 22px;
}

.all-types-intro h3 {
    font-size: 1rem;
    color: #1a2438;
    margin-bottom: 8px;
}

.all-types-intro p {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.65;
    word-break: keep-all;
}

.all-types-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.type-overview-card {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 18px;
}

.type-overview-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.type-overview-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.type-overview-title {
    font-size: 1.05rem;
    color: #1a2438;
    font-weight: 800;
    margin-bottom: 4px;
}

.type-overview-keyword {
    font-size: 0.72rem;
    color: #94714f;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.type-overview-desc {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.6;
    word-break: keep-all;
    margin-bottom: 12px;
}

.type-overview-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    margin-top: 10px;
}

.type-overview-section strong {
    display: block;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 6px;
}

.type-overview-section ul {
    padding-left: 18px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.65;
}

.type-overview-section p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.65;
    word-break: keep-all;
}
