body {
    font-family: 'GmarketSans', 'Noto Sans KR', 'Pretendard', Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 32px 24px;
}
.header-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 10px;
    position: relative;
}
h1 {
    text-align: center;
    font-size: 1.4rem;
    margin: 0 0 28px 0;
    color: #333;
    font-weight: 700;
    letter-spacing: -1px;
}
#header-home-btn.home-btn {
    position: static;
    margin-left: 0;
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#header-home-btn svg {
    display: block;
}
#header-home-btn:active, #header-home-btn:focus {
    background: #eaf6ff;
}
.question {
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.question p {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.18rem;
    text-align: center;
}
label {
    margin-right: 18px;
    font-size: 1rem;
}
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #357ab8;
}
#result {
    margin-top: 32px;
    padding: 18px;
    background: #eaf6ff;
    border-radius: 8px;
    font-size: 1.15rem;
    color: #222;
    display: none;
    text-align: center;
}
.answer-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}
.answer-btn {
    width: 100%;
    padding: 16px 0;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background: #f0f4fa;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: 'Gmarket Sans', 'GmarketSans', 'Noto Sans KR', 'Pretendard', Arial, sans-serif !important;
}
.answer-btn:active, .answer-btn:focus {
    background: #4a90e2;
    color: #fff;
    outline: none;
}
.answer-btn.selected {
    background: #4a90e2;
    color: #fff;
}
.nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.nav-btns button {
    flex: 1;
    padding: 14px 0;
    font-size: 1.05rem;
    border: none;
    border-radius: 8px;
    background: #e0e7ef;
    color: #333;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: 'Gmarket Sans', 'GmarketSans', 'Noto Sans KR', 'Pretendard', Arial, sans-serif !important;
}
.nav-btns button:disabled {
    background: #f2f2f2;
    color: #aaa;
    cursor: not-allowed;
}
.nav-btns button:not(:disabled):active, .nav-btns button:not(:disabled):focus {
    background: #4a90e2;
    color: #fff;
    outline: none;
}
.nav-btns-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f0f4fa;
    color: #4a90e2;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 0;
}
.arrow-btn:disabled {
    background: #f2f2f2;
    color: #bbb;
    cursor: not-allowed;
}
.arrow-btn:not(:disabled):active, .arrow-btn:not(:disabled):focus {
    background: #4a90e2;
    color: #fff;
    outline: none;
}
.question-progress {
    font-size: 0.98rem;
    color: #888;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}
.home-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #4a90e2;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 10;
}
.home-btn:hover {
    background: #357ab8;
    transform: scale(1.05);
}
.home-btn:active {
    transform: scale(0.95);
}

/* 결과지 카드 전체 */
.result-block {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(80,120,200,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 32px 18px 28px 18px;
    margin: 0 auto 24px auto;
    max-width: 420px;
    position: relative;
    text-align: left;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) 1;
}
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(40px); }
    to { opacity:1; transform: none; }
}

/* 캐릭터 이미지 */
.character-img {
    display: block;
    margin: 0 auto 18px auto;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(80,120,200,0.13);
    background: #f7f7fb;
}

/* 결과 타이틀 */
.result-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #3a4a7c;
    margin-bottom: 10px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 결과 설명 */
.result-desc {
    font-size: 1.08rem;
    color: #4a4a4a;
    background: #f7f7fb;
    border-radius: 10px;
    padding: 14px 14px 12px 14px;
    margin-bottom: 18px;
    line-height: 1.7;
}

/* 섹션 구분 */
.result-section {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1.5px dashed #e3e8f7;
}
.result-section:last-child {
    border-bottom: none;
}
.result-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 리스트 */
.result-section ul {
    padding-left: 0;
    margin: 0 0 7px 0;
    list-style: none;
}
.result-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 1.01rem;
    color: #333;
}
.result-section ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-size: 1.1em;
    top: 0;
}

/* 팁/명언/공유문구 */
.result-tip {
    background: linear-gradient(90deg,#eaf6ff 60%,#f7f7fb 100%);
    color: #357ab8;
    font-size: 0.98rem;
    border-radius: 7px;
    padding: 7px 12px;
    margin: 7px 0 0 0;
    display: inline-block;
}
.result-quote {
    font-style: italic;
    color: #7a8bb7;
    font-size: 1.04rem;
    margin: 7px 0 0 0;
    padding-left: 6px;
    border-left: 3px solid #eaf6ff;
}
.result-share {
    background: #f7f7fb;
    color: #4a90e2;
    font-size: 0.97rem;
    border-radius: 7px;
    padding: 7px 12px;
    margin: 7px 0 0 0;
    display: inline-block;
}

/* 서브타입 라벨 */
.result-subtype-label {
    display: block;
    text-align: center;
    font-size: 1.08rem;
    color: #4a90e2;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .container {
        padding: 16px 2vw;
    }
    .result-block {
        padding: 22px 4vw 18px 4vw;
        max-width: 98vw;
    }
    .character-img {
        width: 72px;
        height: 72px;
    }
    .result-title {
        font-size: 1.18rem;
    }
}

.result-typecode {
    display: block;
    text-align: center;
    font-size: 2.1rem;
    font-weight: 900;
    color: #4a90e2;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    margin-top: -8px;
    text-shadow: 0 2px 8px rgba(80,120,200,0.08);
    font-family: 'Noto Sans KR', Arial, sans-serif;
}

.result-hot-comment {
    display: block;
    text-align: center;
    font-size: 1.13rem;
    font-weight: 700;
    color: #e94e77;
    background: linear-gradient(90deg,#fff0f5 60%,#eaf6ff 100%);
    border-radius: 8px;
    padding: 8px 10px 7px 10px;
    margin-bottom: 12px;
    margin-top: 2px;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 6px rgba(233,78,119,0.07);
    line-height: 1.5;
}

.result-summary {
    line-height: 1.85;
    margin-bottom: 18px;
    font-size: 1.13rem;
    color: #333;
    background: #f7f7fb;
    border-radius: 10px;
    padding: 14px 14px 12px 14px;
    word-break: keep-all;
} 