/* ============================================================
   🌴 정글 생존 본능 테스트 - Jungle Trip Theme
   UI_STANDARD_GUIDE v4.3.0 Golden Compact 준수
   ============================================================ */

:root {
    --jungle-bg: #C8E6C9;
    --jungle-card: #FFFFFF;
    --jungle-point: #43A047;
    --jungle-accent: #66BB6A;
    --jungle-light: #A5D6A7;
    --jungle-dark: #2E7D32;
}

/* 테마 바디 */
.jungle-theme {
    background: var(--jungle-bg);
    background-image:
        radial-gradient(circle at 10% 90%, rgba(67, 160, 71, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(102, 187, 106, 0.1) 0%, transparent 50%);
}

/* 발자국 패턴 */
.jungle-theme::before {
    content: "🐾";
    position: fixed;
    top: 20%;
    left: 5%;
    font-size: 2rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    pointer-events: none;
}

.jungle-theme::after {
    content: "🐾";
    position: fixed;
    bottom: 30%;
    right: 8%;
    font-size: 1.5rem;
    opacity: 0.08;
    transform: rotate(25deg);
    pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

.jungle-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 */
.jungle-theme .question-area {
    background: var(--jungle-card);
    margin: 0 20px;
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(67, 160, 71, 0.12);
    border: 1px solid rgba(67, 160, 71, 0.1);
}

.jungle-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(--jungle-dark);
    line-height: 1.6;
    word-break: keep-all;
    padding: 10px;
}

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

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

.jungle-theme .option-btn:hover {
    border-color: var(--jungle-point);
    background: rgba(67, 160, 71, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.15);
}

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

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

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

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

/* ============ 결과 화면 ============ */
.jungle-theme .result-container {
    padding: 30px 20px;
    text-align: center;
    background: #FFFFFF;
    margin: 0 16px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.15);
    position: relative;
    overflow: hidden;
}

/* 정글 장식 - 잎사귀 */
.jungle-theme .result-container::before {
    content: "🌿";
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 2.5rem;
    transform: rotate(-30deg);
    opacity: 0.3;
}

.jungle-theme .result-container::after {
    content: "🍃";
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 2rem;
    transform: rotate(25deg);
    opacity: 0.25;
}

.jungle-theme .result-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #43A047;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.jungle-theme .result-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1B5E20;
    margin: 0 0 20px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* 물리 시각화 영역 - 정글 느낌 강화 */
.jungle-theme .physics-visual-area {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 20px 0;
    border-radius: 20px;
    background: linear-gradient(180deg,
            rgba(129, 199, 132, 0.4) 0%,
            rgba(200, 230, 201, 0.6) 50%,
            rgba(165, 214, 167, 0.5) 100%);
    border: 2px solid rgba(67, 160, 71, 0.2);
    overflow: hidden;
}

/* 정글 바닥 느낌 */
.jungle-theme .physics-visual-area::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(0deg, rgba(46, 125, 50, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.jungle-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 12px rgba(0, 0, 0, 0.2));
}

/* 분석 텍스트 - 가독성 대폭 개선 */
.jungle-theme .analysis-text {
    font-size: 1rem;
    color: #2E3D32;
    line-height: 1.7;
    margin: 0 0 16px;
    padding: 16px;
    word-break: keep-all;
    background: rgba(200, 230, 201, 0.4);
    border-radius: 16px;
    border-left: 4px solid #43A047;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* 궁합 영역 */
.jungle-theme .match-meme-area {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.jungle-theme .match-box {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

.jungle-theme .match-box.best {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 1px solid rgba(67, 160, 71, 0.2);
}

.jungle-theme .match-box.worst {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.jungle-theme .m-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #666;
}

.jungle-theme .match-box.best div {
    font-weight: 700;
    color: var(--jungle-dark);
    white-space: pre-line;
    line-height: 1.4;
}

.jungle-theme .match-box.worst div {
    font-weight: 700;
    color: #C62828;
    white-space: pre-line;
    line-height: 1.4;
}

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

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

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

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

.jungle-theme .action-btn-primary:hover {
    background: var(--jungle-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
}

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

/* 터치 팝업 텍스트 */
.jungle-popup {
    position: absolute;
    font-size: 1rem;
    font-weight: 800;
    color: var(--jungle-dark);
    pointer-events: none;
    animation: popupBounce 0.6s ease-out forwards;
    z-index: 10;
}

@keyframes popupBounce {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2);
    }
}

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