/* ============================================================
   🪨 고집쟁이 레벨 테스트 - Stone vs Feather Theme
   UI_STANDARD_GUIDE v4.3.0 Golden Compact 준수
   ============================================================ */

:root {
    --stubborn-bg: #EFEBE9;
    --stubborn-card: #FFFFFF;
    --stubborn-point: #4E342E;
    --stubborn-accent: #8D6E63;
    --stubborn-light: #D7CCC8;
}

/* 테마 바디 */
.stubborn-theme {
    background: var(--stubborn-bg);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(78, 52, 46, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(141, 110, 99, 0.05) 0%, transparent 50%);
}

/* 헤더 배경 */
.stubborn-theme .test-header-fixed {
    background: rgba(239, 235, 233, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stubborn-light);
}

.stubborn-theme .header-text {
    color: var(--stubborn-point);
    font-weight: 700;
}

/* 래퍼 */
.stubborn-theme .test-wrapper {
    padding-top: 74px;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

/* 인트로 텍스트 */
.stubborn-theme .test-intro-text {
    text-align: center;
    padding: 20px 20px 10px;
}

.stubborn-theme .main-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--stubborn-point);
    margin: 0 0 8px;
}

.stubborn-theme .sub-title {
    font-size: 1rem;
    color: var(--stubborn-accent);
    margin: 0;
    line-height: 1.5;
}

/* 진행바 */
.stubborn-theme .progress-box {
    padding: 0 20px;
    margin-bottom: 16px;
}

.stubborn-theme .progress-info {
    text-align: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--stubborn-accent);
    font-weight: 600;
}

.stubborn-theme .progress-track {
    position: relative;
    height: 8px;
    background: var(--stubborn-light);
    border-radius: 999px;
    overflow: visible;
}

.stubborn-theme .progress-active-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--stubborn-accent), var(--stubborn-point));
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stubborn-theme .progress-runner-icon {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    z-index: 10;
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 질문 영역 - Premium Wrap Lock */
.stubborn-theme .question-area {
    background: var(--stubborn-card);
    margin: 0 20px;
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(78, 52, 46, 0.08);
    border: 1px solid rgba(78, 52, 46, 0.06);
}

.stubborn-theme .q-box {
    min-height: 160px !important;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--stubborn-point);
    line-height: 1.6;
    word-break: keep-all;
    padding: 10px;
}

/* 옵션 버튼 */
.stubborn-theme .option-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.stubborn-theme .option-btn {
    width: 100%;
    min-height: 68px !important;
    padding: 16px 20px;
    border: 2px solid var(--stubborn-light);
    border-radius: 16px;
    background: var(--stubborn-card);
    font-size: 1rem;
    font-weight: 600;
    color: var(--stubborn-point);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.stubborn-theme .option-btn:hover {
    border-color: var(--stubborn-accent);
    background: rgba(141, 110, 99, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 52, 46, 0.1);
}

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

/* 이전 버튼 */
.stubborn-theme .nav-control-btns {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.stubborn-theme .btn-ghost {
    padding: 10px 48px;
    border: 1.5px solid var(--stubborn-light);
    border-radius: 999px;
    background: transparent;
    color: var(--stubborn-accent);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stubborn-theme .btn-ghost:hover {
    background: var(--stubborn-light);
    color: var(--stubborn-point);
}

/* ============ 결과 화면 ============ */
.stubborn-theme .result-container {
    padding: 30px 20px;
    text-align: center;
}

.stubborn-theme .result-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--stubborn-accent);
    margin-bottom: 8px;
}

.stubborn-theme .result-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--stubborn-point);
    margin: 0 0 20px;
    line-height: 1.4;
}

/* 물리 시각화 영역 */
.stubborn-theme .physics-visual-area {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 20px 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(215, 204, 200, 0.3) 0%, rgba(239, 235, 233, 0.5) 100%);
    overflow: hidden;
}

.stubborn-theme .main-emoji-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* 분석 텍스트 */
.stubborn-theme .analysis-text {
    font-size: 1rem;
    color: #5D4037;
    line-height: 1.7;
    margin: 0 0 16px;
    padding: 0 10px;
    word-break: keep-all;
}

/* 뼈 때리는 한 줄 평 */
.stubborn-theme .bone-hit-text {
    background: linear-gradient(135deg, #FFECB3 0%, #FFE0B2 100%);
    border-left: 4px solid #FF8F00;
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #E65100;
    line-height: 1.6;
    text-align: left;
}

/* 액션 버튼 */
.stubborn-theme .result-action-btns {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.stubborn-theme .action-btn-secondary {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--stubborn-light);
    border-radius: 14px;
    background: transparent;
    color: var(--stubborn-accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stubborn-theme .action-btn-secondary:hover {
    background: var(--stubborn-light);
    color: var(--stubborn-point);
}

.stubborn-theme .action-btn-primary {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--stubborn-point);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stubborn-theme .action-btn-primary:hover {
    background: #3E2723;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 52, 46, 0.25);
}

/* 물리 아이템 스타일 */
.stubborn-item {
    position: absolute;
    font-size: 28px;
    user-select: none;
    pointer-events: none;
    z-index: 2;
}

/* 히든 클래스 */
.hidden {
    display: none !important;
}