/* 테토력 지수 (Tetor Power Index) - Compact & Sync v4.1.0 */
@import url('mongsil_test_common.css');

:root {
    --wild-bg: #000000;
    --wild-card: #1A1A1A;
    --wild-accent: #FF6D00;
    --wild-text: #FFFFFF;
    --wild-sub: #AAAAAA;
    --wild-border: #333333;
    --wild-wrap: #151515;
}

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

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

.test-header-fixed {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--wild-border) !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
}

/* 🏗️ Compact Layout Adjustments */
.test-wrapper {
    max-width: 480px !important;
    margin: 0 auto;
    padding-top: 74px !important;
    /* Reduced from 84px */
    min-height: 100vh;
}

.test-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.test-intro-text {
    text-align: center;
    padding: 0 20px 10px;
}

/* Reduced bottom padding */
.main-title {
    font-size: 1.55rem;
    color: var(--wild-accent);
    font-weight: 900;
    margin-bottom: 4px;
}

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

/* Progress Area - Tightened Space */
.progress-container {
    padding: 10px 30px !important;
    /* Reduced from 20px */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 500;
}

.progress-track {
    background: #222 !important;
    height: 8px !important;
    /* Slimmer track */
    border-radius: 999px !important;
    position: relative !important;
    overflow: visible !important;
}

.progress-fill {
    background: linear-gradient(90deg, #FF3D00, #FF6D00) !important;
    height: 100% !important;
    border-radius: 999px !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-lion-runner {
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -60%) !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.6rem !important;
    /* Slightly smaller for compact look */
    z-index: 1000 !important;
}

.progress-counter {
    text-align: center;
    font-size: 1rem;
    font-weight: 850;
    color: var(--wild-accent);
    margin-top: 8px;
}

/* AI-Style Layout Wrapper (Premium Wrap LOCK) - Tightened */
.question-area {
    background: var(--wild-wrap) !important;
    border-radius: 28px !important;
    padding: 20px !important;
    /* Reduced from 24px */
    margin: 10px 20px 20px !important;
    /* Reduced top/bottom margin */
    width: calc(100% - 40px) !important;
    box-sizing: border-box !important;
    border: 1px solid #2a2a2a !important;
}

.q-box {
    background: #090909 !important;
    border-radius: 20px !important;
    padding: 24px 20px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    min-height: 160px !important;
    /* Reduced from 190px */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #1a1a1a !important;
}

.q-text {
    font-size: 1.35rem !important;
    line-height: 1.5;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    word-break: keep-all;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.option-btn {
    width: 100% !important;
    min-height: 68px !important;
    /* Reduced from 76px */
    background: #1A1A1A !important;
    border: 1.5px solid #333 !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    color: #FFFFFF !important;
    display: grid !important;
    grid-template-columns: 38px 1fr !important;
    align-items: center !important;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #222 !important;
    border-color: var(--wild-accent) !important;
    transform: translateY(-2px);
}

.btn-emoji {
    font-size: 1.2rem !important;
    display: flex !important;
    justify-content: center !important;
}

/* Navigation Control - AI Style Capsule Pill */
.nav-control-btns {
    display: flex;
    justify-content: center;
    padding: 0 0 20px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wild-border);
    color: var(--wild-sub);
    padding: 10px 48px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border-color: #666;
}

/* Result Card Standard */
.result-card {
    background: var(--wild-card) !important;
    border-radius: 30px !important;
    padding: 32px 20px !important;
    border: 2px solid var(--wild-accent) !important;
    text-align: center !important;
}

.result-title {
    font-size: 1.75rem !important;
    color: #FFFFFF !important;
    margin-bottom: 24px !important;
}

.result-img-box {
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
    background: #000;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.bone-hitting-box {
    background: #000;
    padding: 20px;
    border-radius: 18px;
    text-align: left;
    border-left: 5px solid var(--wild-accent);
    margin-bottom: 24px;
}

.action-buttons-wrap {
    display: flex;
    gap: 10px;
}

.action-btn-primary {
    flex: 1;
    background: var(--wild-accent) !important;
    color: #FFF;
    padding: 16px 0;
    border-radius: 14px;
    font-weight: 850;
    border: none;
    cursor: pointer;
}

.action-btn-secondary {
    flex: 1;
    background: #2A2A2A !important;
    color: #FFF;
    padding: 16px 0;
    border-radius: 14px;
    font-weight: 850;
    border: 1px solid #444;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

@media (max-height: 700px) {
    .q-box {
        min-height: 140px !important;
    }

    .option-btn {
        min-height: 60px !important;
    }
}