* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;

    background: #111827;
    color: #ffffff;
}

button {
    font-family: inherit;
}

.app {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
}

.start-screen {
    width: 100%;
    max-width: 720px;

    text-align: center;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 24px;

    padding: 50px 40px;
}

.sub-title {
    margin: 0 0 12px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 3px;

    color: #fbbf24;
}

h1 {
    margin: 0 0 30px;

    font-size: 38px;
    line-height: 1.3;
}

.main-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 30px;

    background: #374151;

    border: 2px dashed #6b7280;
    border-radius: 18px;

    color: #9ca3af;
}

.description {
    margin: 0 0 14px;

    font-size: 24px;
    font-weight: 700;

    line-height: 1.5;
}

.guide-text {
    margin: 0 0 30px;

    font-size: 16px;

    line-height: 1.7;

    color: #d1d5db;
}

#start-button {
    width: 100%;

    border: none;
    border-radius: 14px;

    padding: 18px 20px;

    font-size: 19px;
    font-weight: 700;

    cursor: pointer;

    background: #fbbf24;
    color: #111827;

    transition:
        transform 0.2s,
        background 0.2s;
}

#start-button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.info-text {
    margin: 22px 0 0;

    font-size: 12px;

    letter-spacing: 1px;

    color: #9ca3af;
}


/* 모바일 화면 */
@media (max-width: 600px) {

     .start-catchphrase {
        font-size: 16px;

        margin-bottom: 22px;
    }

    .test-info-box {
        padding: 18px;
    }

    .test-info-list {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .test-info-item {
        min-height: 54px;

        flex-direction: row;
        justify-content: flex-start;

        padding: 12px 14px;

        text-align: left;
    }

    .test-info-item span {
        width: 30px;

        font-size: 19px;

        text-align: center;
    }

    .test-info-item strong {
        font-size: 13px;
    }

.result-level {
        font-size: 13px;
        padding: 7px 14px;
    }

    .stat-row {
        grid-template-columns: 88px 1fr 38px;
        gap: 8px;
    }

    .stat-name {
        font-size: 12px;
    }

    .stat-score {
        font-size: 12px;
    }

    .result-tag {
        font-size: 12px;
        padding: 8px 11px;
    }

 #prev-button {
        min-height: 44px;

        padding: 11px 15px;

        font-size: 14px;
    }
    
.answer-list {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .answer-button {
        min-height: 58px;

        padding: 15px 16px;

        font-size: 15px;
    }

     .analysis-screen {
        padding: 45px 20px;

        border-radius: 18px;
    }

    .analysis-title {
        font-size: 23px;
    }

    .analysis-symbol {
        font-size: 50px;
    }

    .analysis-message {
        font-size: 14px;
    }

    .result-screen {
        padding: 30px 20px;

        border-radius: 18px;
    }

    #result-title {
        font-size: 28px;
    }

    .result-subtitle {
        font-size: 17px;
    }

    #result-skill {
        font-size: 20px;
    }

    .result-description {
        font-size: 15px;
    }

    .app {
        align-items: flex-start;

        padding: 20px 14px;
    }

    .start-screen {
        padding: 34px 20px;

        border-radius: 18px;
    }
    
    .quiz-screen {
        padding: 26px 18px;

        border-radius: 18px;
    }

    #question-text {
        font-size: 21px;
    }

    .answer-button {
        padding: 16px;

        font-size: 16px;
    }
   
    h1 {
        font-size: 29px;
    }

    .description {
        font-size: 20px;
    }

    .guide-text {
        font-size: 15px;
    }

    #start-button {
       width: 100%;
    min-height: 60px;

    border: none;
    border-radius: 14px;

    padding: 18px 20px;

    font-size: 19px;
    font-weight: 800;

    cursor: pointer;

    background: #fbbf24;
    color: #111827;

    transition:
        transform 0.2s,
        background 0.2s;
    }
}
/* 화면 숨기기 */
.hidden {
    display: none;
}


/* 질문 화면 */
.quiz-screen {
    width: 100%;
    max-width: 760px;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 24px;

    padding: 40px;
}


/* 질문 상단 */
.quiz-top {
    margin-bottom: 26px;
}

#question-number {
    margin: 0 0 10px;

    font-size: 14px;
    font-weight: 700;

    color: #fbbf24;
}


/* 진행률 배경 */
.progress-bar {
    width: 100%;
    height: 8px;

    overflow: hidden;

    background: #374151;

    border-radius: 999px;
}


/* 실제 진행률 */
#progress-fill {
    width: 10%;
    height: 100%;

    background: #fbbf24;

    border-radius: 999px;

    transition: width 0.3s;
}


/* 질문 이미지 */
.question-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    max-height: 380px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 30px;

    background: #374151;

    border: 2px dashed #6b7280;
    border-radius: 18px;

    color: #9ca3af;
}


/* 질문 글자 */
#question-text {
    margin: 0 0 28px;

    text-align: center;

    font-size: 26px;
    line-height: 1.5;
}


/* 선택지 영역 */
.answer-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* 선택지 버튼 */
.answer-button {
    width: 100%;
    min-height: 82px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    border: 1px solid #4b5563;
    border-radius: 14px;

    background: #111827;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.5;
    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}


/* PC에서 마우스를 올렸을 때 */
.answer-button:hover {
    background: #374151;

    border-color: #fbbf24;

    transform: translateY(-2px);
}


/* ==============================
   결과 화면
============================== */

.result-screen {
    width: 100%;
    max-width: 650px;

    text-align: center;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 24px;

    padding: 45px 40px;
}


/* 각성 문구 */
.result-awakening {
    margin: 0 0 24px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 3px;

    color: #fbbf24;
}


/* 결과 이미지 영역 */
.result-image {
    width: 100%;
    max-width: 420px;

    aspect-ratio: 1 / 1;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto 30px;

    background: #374151;

    border: 2px dashed #6b7280;
    border-radius: 20px;

    color: #9ca3af;
}


/* 작은 안내 문구 */
.result-label {
    margin: 0 0 8px;

    font-size: 14px;
    font-weight: 700;

    color: #9ca3af;
}


/* 결과 이름 */
#result-title {
    margin: 0 0 16px;

    font-size: 34px;
    line-height: 1.3;

    color: #ffffff;
}


/* 결과 부제 */
.result-subtitle {
    margin: 0 0 28px;

    font-size: 19px;
    font-weight: 600;

    line-height: 1.7;

    color: #f3f4f6;
}


/* 특수 능력 박스 */
.result-skill-box {
    margin-bottom: 28px;

    padding: 20px;

    background: #111827;

    border: 1px solid #4b5563;
    border-radius: 16px;
}


/* SPECIAL SKILL */
.skill-label {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #fbbf24;
}


/* 특수 능력 이름 */
#result-skill {
    display: block;

    font-size: 22px;
}


/* 결과 설명 */
.result-description {
    margin: 0 0 30px;

    font-size: 16px;

    line-height: 1.8;

    color: #d1d5db;
}


/* 다시 테스트 버튼 */
#restart-button {
    width: 100%;

    padding: 18px 20px;

    border: none;
    border-radius: 14px;

    background: #fbbf24;
    color: #111827;

    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


#restart-button:hover {
    background: #f59e0b;

    transform: translateY(-2px);
}

/* ==============================
   실제 이미지
============================== */


/* 시작 이미지 */
.main-image {
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}


/* 질문 이미지 */
.question-image {
    overflow: hidden;
}

.question-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}


/* 결과 이미지 */


.result-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

}

/* ==============================
   능력 분석 화면
============================== */

.analysis-screen {
    width: 100%;
    max-width: 650px;

    text-align: center;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 24px;

    padding: 60px 40px;
}


/* ABILITY ANALYSIS */
.analysis-label {
    margin: 0 0 26px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;

    color: #fbbf24;
}


/* 가운데 각성 심볼 */
.analysis-symbol {
    margin-bottom: 24px;

    font-size: 60px;

    color: #fbbf24;

    animation: analysisPulse 1.2s infinite;
}


/* 분석 제목 */
.analysis-title {
    margin: 0 0 20px;

    font-size: 28px;
    line-height: 1.5;
}


/* 변화하는 안내 문구 */
.analysis-message {
    min-height: 28px;

    margin: 0 0 30px;

    font-size: 15px;

    color: #d1d5db;
}


/* 분석 진행바 배경 */
.analysis-progress {
    width: 100%;
    height: 12px;

    overflow: hidden;

    background: #111827;

    border: 1px solid #374151;
    border-radius: 999px;
}


/* 분석 진행바 */
#analysis-progress-fill {
    width: 0%;
    height: 100%;

    background: #fbbf24;

    border-radius: 999px;

    transition: width 0.5s ease;
}


/* 퍼센트 */
.analysis-percent {
    margin: 14px 0 0;

    font-size: 24px;
    font-weight: 800;

    color: #ffffff;
}


/* 각성 아이콘 애니메이션 */
@keyframes analysisPulse {

    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }

}

@media (max-width: 380px) {

.stat-row {
        grid-template-columns: 80px 1fr 34px;
        gap: 6px;
    }

    .result-tag {
        font-size: 11px;
    }

    .app {
        padding: 12px 8px;
    }

    .start-screen,
    .quiz-screen,
    .analysis-screen,
    .result-screen {
        padding-left: 14px;
        padding-right: 14px;

        border-radius: 14px;
    }

    h1 {
        font-size: 25px;
    }

    #question-text {
        font-size: 19px;
    }

    .answer-button {
        font-size: 14px;

        padding: 14px;
    }

}

@keyframes screenFadeIn {

    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}

.start-screen,
.quiz-screen,
.analysis-screen,
.result-screen {
    animation:
        screenFadeIn 0.35s ease;
}

.answer-button:active {
    transform: scale(0.98);

    border-color: #fbbf24;
}

#start-button:active,
#restart-button:active {
    transform: scale(0.98);
}

/* ==============================
   질문 이전 버튼
============================== */

.quiz-navigation {
    margin-top: 22px;

    display: flex;
    justify-content: flex-start;
}


#prev-button {
    padding: 11px 16px;

    border: 1px solid #4b5563;
    border-radius: 10px;

    background: transparent;
    color: #d1d5db;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}


#prev-button:hover {
    background: #374151;

    border-color: #6b7280;

    color: #ffffff;
}


#prev-button:active {
    transform: scale(0.97);
}


/* 버튼 비활성화 */
#prev-button:disabled {
    opacity: 0.3;

    cursor: default;

    background: transparent;
}

/* ==============================
   결과 카드 강화 디자인
============================== */

.result-level {
    display: inline-block;

    margin: 0 0 16px;
    padding: 8px 16px;

    border: 1px solid #fbbf24;
    border-radius: 999px;

    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;
}

.result-divider {
    width: 100%;
    height: 1px;

    margin: 24px 0;

    background: #374151;
}


/* 능력치 영역 */
.result-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;

    text-align: left;
}

.stat-row {
    display: grid;

    grid-template-columns: 120px 1fr 46px;
    align-items: center;
    gap: 12px;
}

.stat-name {
    font-size: 14px;
    font-weight: 700;

    color: #e5e7eb;
}

.stat-bar {
    width: 100%;
    height: 12px;

    overflow: hidden;

    background: #111827;
    border: 1px solid #374151;
    border-radius: 999px;
}

.stat-fill {
    height: 100%;

    background: #fbbf24;
    border-radius: 999px;
}

.stat-score {
    text-align: right;

    font-size: 13px;
    font-weight: 800;

    color: #fbbf24;
}


/* 태그 박스 */
.result-tag-box {
    margin-bottom: 26px;

    text-align: left;
}

.result-tag-title {
    margin: 0 0 14px;

    font-size: 14px;
    font-weight: 700;

    color: #d1d5db;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-tag {
    display: inline-block;

    padding: 9px 13px;

    border: 1px solid #4b5563;
    border-radius: 999px;

    background: #111827;
    color: #fbbf24;

    font-size: 13px;
    font-weight: 700;
}

/* ==============================
   시작 화면 최종 디자인
============================== */

.start-catchphrase {
    margin: -12px 0 28px;

    font-size: 18px;
    font-weight: 600;

    line-height: 1.6;

    color: #d1d5db;
}


/* 테스트 정보 박스 */
.test-info-box {
    margin: 28px 0;

    padding: 22px;

    text-align: left;

    background: #111827;

    border: 1px solid #374151;
    border-radius: 16px;
}


/* TEST INFORMATION */
.test-info-title {
    margin: 0 0 18px;

    text-align: center;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #fbbf24;
}


/* 정보 목록 */
.test-info-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}


/* 개별 정보 */
.test-info-item {
    min-width: 0;

    padding: 14px 10px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    text-align: center;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 12px;
}


.test-info-item span {
    font-size: 22px;
}


.test-info-item strong {
    font-size: 13px;
    line-height: 1.4;

    color: #f3f4f6;
}


/* 하단 안내 */
.test-info-guide {
    margin: 18px 0 0;

    text-align: center;

    font-size: 14px;

    line-height: 1.7;

    color: #9ca3af;
}