/* 토론력 지수 (Debate Power Index) - Debate Arena Theme */
@import url('mongsil_test_common.css');

:root {
    --tetor-bg: #ECEFF1;
    /* Paper White */
    --tetor-card: #FFFFFF;
    --tetor-accent: #FB8C00;
    /* Debate Orange */
    --tetor-text: #263238;
    /* Dark Blue Grey */
    --tetor-sub: #546E7A;
}

body {
    background-color: var(--tetor-bg);
    color: var(--tetor-text);
    font-family: 'Pretendard', -apple-system, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Physics Canvas Background */
#physics-world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

/* 🏗️ 6-LOCK: Logo Hard-Lock (Absolute Guard) */
.header-logo {
    height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* 🏗️ 6-LOCK: Layout LOCK (Width Unity) */
.test-wrapper {
    position: relative;
    z-index: 10;
    max-width: 480px !important;
    /* Absolute Law */
    margin: 0 auto;
    padding-top: 72px !important;
    /* Fold-In-One Space */
    box-sizing: border-box;
}

/* 🏗️ Global Centering */
.test-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* [v3.9.7] 최상단 고정 제목/설명 영역 */
.test-intro-text {
    text-align: center;
    padding: 0 20px 20px;
}

.main-title {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--tetor-text);
}

.sub-title {
    font-size: 1rem;
    color: var(--tetor-sub);
    margin: 0;
}

/* Progress Bar: Mascot Runner */
.progress-container {
    padding: 0 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.progress-track {
    background: rgba(38, 50, 56, 0.1);
    height: 8px;
    border-radius: 999px;
    position: relative;
}

.progress-fill {
    background: var(--tetor-accent);
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease-out;
}

.mongsil-runner {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.4s ease-out;
    font-size: 1.8rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🏗️ 6-LOCK: Layout Lock (Fold-In-One Optimized) */
.q-box {
    background: var(--tetor-card);
    border-radius: 16px;
    padding: 24px;
    margin: 0 20px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(38, 50, 56, 0.06);
    height: 190px !important;
    /* Absolute height lock */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(100% - 40px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.q-number {
    background: var(--tetor-text);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.q-text {
    font-size: 1.3rem;
    line-height: 1.4;
    word-break: keep-all;
    margin: 0;
}

/* 🏗️ 6-LOCK: Width LOCK (Buttons 100%) */
.options-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.option-btn {
    width: 100% !important;
    background: #FFFFFF;
    border: 2px solid #CFD8DC;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 1.05rem;
    color: var(--tetor-text);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.option-btn:active {
    background: #FFF3E0;
    border-color: var(--tetor-accent);
}

/* Prev Button (Ghost Pill) */
.nav-control-btns {
    width: 100%;
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #CFD8DC;
    color: var(--tetor-sub);
    padding: 8px 32px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* 🏗️ 6-LOCK: Header-Result Gap & Purity */
.result-container {
    margin: 20px 20px 40px !important;
    /* 5-LOCK: Header-Gap */
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.result-card {
    background: var(--tetor-card);
    border-radius: 24px;
    padding: 32px 24px;
    border: 2px solid var(--tetor-accent);
    text-align: center;
    box-shadow: 0 16px 40px rgba(251, 140, 0, 0.1);
    box-sizing: border-box;
}

.result-subtitle {
    display: block;
    font-size: 0.95rem;
    color: var(--tetor-sub);
    margin-bottom: 8px;
    font-weight: 700;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

.result-img-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: #FFF3E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-emoji {
    font-size: 4rem;
}

.result-text {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: #455A64;
    text-align: left;
    margin-bottom: 20px;
}

.bone-hitting-box {
    background: #263238;
    color: #ECEFF1;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.bone-hitting-box h3 {
    font-size: 0.9rem;
    color: var(--tetor-accent);
    margin: 0 0 8px 0;
}

.bone-hitting-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
}

/* 🏗️ 6-LOCK: Button Order (50:50 Flex) */
.action-buttons-wrap {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.action-btn-primary,
.action-btn-secondary {
    flex: 1;
    padding: 16px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

.action-btn-primary {
    background: var(--tetor-accent);
    color: #fff;
}

.action-btn-secondary {
    background: #CFD8DC;
    color: #455A64;
}

/* Utilities */
.screen.hidden {
    display: none !important;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.4rem;
    }

    .q-text {
        font-size: 1.2rem;
    }

    .option-btn {
        font-size: 1rem;
        padding: 14px 18px;
    }

    .result-title {
        font-size: 1.6rem;
    }
}