/* ============================================================
 * ⚖️ 나의 선택장애 지수 전용 스타일 (v4.3.0 Standard)
 * ============================================================ */

:root {
    --bg-color: #ECEFF1;
    --card-bg: #FFFFFF;
    --point-color: #607D8B;
    --text-main: #37474F;
    --text-sub: #546E7A;
    --gray-light: #F1F3F4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    font-family: 'Pretendard', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

#physics-world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Header LOCK (Left Aligned Based on Feedback) */
.test-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-logo {
    height: 32px !important;
    width: auto !important;
}

/* Container LOCK */
.test-wrapper {
    max-width: 480px !important;
    margin: 0 auto;
    padding: 74px 20px 40px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.test-intro-text {
    text-align: center;
    margin-bottom: 24px;
}

.main-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--point-color);
}

.sub-title {
    font-size: 0.95rem;
    color: var(--text-sub);
}

/* Progress Area */
.progress-container {
    margin-bottom: 30px;
}

.progress-track {
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 99px;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--point-color);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.cs-runner {
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 1.6rem;
    transform: translateX(-50%);
    transition: left 0.4s ease;
}

.progress-counter {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--point-color);
    margin-top: 8px;
}

/* Question Area LOCK */
.question-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.q-box {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px 24px;
    min-height: 160px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.q-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

/* Options LOCK */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    min-height: 68px !important;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.option-btn:active {
    transform: scale(0.98);
}

.btn-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-btn span:last-child {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Previous Button LOCK */
.nav-control-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    padding: 10px 48px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
}

/* Result Screen LOCK (Hiding Essentials) */
.screen.hidden,
.hidden {
    display: none !important;
}

.loading-box {
    text-align: center;
    padding-top: 80px;
}

.loading-mascot {
    font-size: 4rem;
    animation: rotate 2s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.result-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.result-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--point-color);
    background: #E1F5FE;
    padding: 4px 16px;
    border-radius: 99px;
    margin-bottom: 12px;
    display: inline-block;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.result-img-box {
    width: 140px;
    height: 140px;
    background: var(--gray-light);
    border-radius: 35px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.result-text {
    font-size: 1.05rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 30px;
}

.bone-hitting-box {
    background: #FAFAFA;
    padding: 24px;
    border-radius: 20px;
    border: 1px dashed var(--point-color);
    text-align: left;
    margin-bottom: 32px;
}

.bone-hitting-box h3 {
    font-size: 0.95rem;
    color: var(--point-color);
    margin-bottom: 8px;
}

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

/* Action Buttons LOCK (Row Layout per Feedback) */
.action-buttons-wrap {
    display: flex;
    gap: 10px;
}

.action-btn-primary,
.action-btn-secondary {
    flex: 1;
    border: none;
    padding: 16px 0;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 850;
    cursor: pointer;
}

.action-btn-primary {
    background: var(--point-color) !important;
    color: white;
}

.action-btn-secondary {
    background: var(--gray-light) !important;
    color: var(--text-sub);
}