/* ============================================================
   🎭 사회적 가면 두께 테스트 - Masquerade Theme
   UI_STANDARD_GUIDE v4.3.0 Golden Compact 준수
   ============================================================ */

:root {
    --mask-bg: #212121;
    --mask-card: #2D2D2D;
    --mask-gold: #D4AF37;
    --mask-pink: #E91E63;
    --mask-text: #FAFAFA;
    --mask-sub: #9E9E9E;
}

/* 테마 바디 */
.mask-theme {
    background: var(--mask-bg);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.05) 0%, transparent 40%);
}

/* 가면 장식 */
.mask-theme::before {
    content: "🎭";
    position: fixed;
    top: 15%;
    right: 8%;
    font-size: 3rem;
    opacity: 0.08;
    pointer-events: none;
    animation: maskFloat 4s ease-in-out infinite;
}

.mask-theme::after {
    content: "✨";
    position: fixed;
    bottom: 20%;
    left: 5%;
    font-size: 2rem;
    opacity: 0.06;
    pointer-events: none;
}

@keyframes maskFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* 헤더 */
.mask-theme .test-header-fixed {
    background: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

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

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

.mask-theme .main-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--mask-gold);
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

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

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

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

.mask-theme .progress-track {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: visible;
}

.mask-theme .progress-active-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mask-gold), var(--mask-pink));
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

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

/* 질문 영역 */
.mask-theme .question-area {
    background: var(--mask-card);
    margin: 0 20px;
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

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

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

.mask-theme .option-btn {
    width: 100%;
    min-height: 60px !important;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mask-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.mask-theme .option-btn:hover {
    border-color: var(--mask-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

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

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

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

.mask-theme .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mask-text);
}

/* ============ 결과 화면 ============ */
.mask-theme .result-container {
    padding: 30px 20px;
    text-align: center;
    background: var(--mask-card);
    margin: 0 16px;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

/* 가면 장식 */
.mask-theme .result-container::before {
    content: "🎭";
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 1.8rem;
    opacity: 0.15;
}

.mask-theme .result-container::after {
    content: "✨";
    position: absolute;
    bottom: 50px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.1;
}

.mask-theme .result-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--mask-gold);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.mask-theme .result-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mask-text);
    margin: 0 0 16px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* 물리 시각화 영역 */
.mask-theme .physics-visual-area {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 16px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(33, 33, 33, 0.8) 50%, rgba(233, 30, 99, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.mask-theme .main-emoji-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    z-index: 5;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

/* 분석 텍스트 */
.mask-theme .analysis-text {
    font-size: 0.95rem;
    color: var(--mask-text);
    line-height: 1.7;
    margin: 0 0 16px;
    padding: 16px;
    word-break: keep-all;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* 뼈 때리는 한 줄 영역 */
.mask-theme .bone-hit-area {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--mask-pink);
    text-align: left;
}

.mask-theme .bone-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mask-pink);
    display: block;
    margin-bottom: 8px;
}

.mask-theme .bone-hit-area p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mask-text);
    line-height: 1.6;
    font-weight: 500;
}

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

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

.mask-theme .action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mask-text);
}

.mask-theme .action-btn-primary {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mask-gold), #C49B30);
    color: #1A1A1A;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mask-theme .action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* 물리 아이템 */
.mask-item {
    position: absolute;
    font-size: 24px;
    user-select: none;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
}

.mask-item.crystal {
    opacity: 0.5;
}

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