/* ============================================================
   ✂️ 손절 타이밍 판독기 - Scissor & Thread Theme
   UI_STANDARD_GUIDE v4.3.0 Golden Compact 준수
   ============================================================ */

:root {
    --cutoff-bg: #FFEBEE;
    --cutoff-card: #FFFFFF;
    --cutoff-red: #D32F2F;
    --cutoff-light: #FFCDD2;
    --cutoff-dark: #B71C1C;
    --cutoff-text: #37474F;
}

/* 테마 바디 */
.cutoff-theme {
    background: var(--cutoff-bg);
    background-image:
        radial-gradient(circle at 75% 25%, rgba(211, 47, 47, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 25% 75%, rgba(255, 205, 210, 0.3) 0%, transparent 40%);
}

/* 가위/실 장식 */
.cutoff-theme::before {
    content: "✂️";
    position: fixed;
    top: 12%;
    right: 8%;
    font-size: 2.5rem;
    opacity: 0.12;
    pointer-events: none;
    transform: rotate(-15deg);
}

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

/* 헤더 */
.cutoff-theme .test-header-fixed {
    background: rgba(255, 235, 238, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(211, 47, 47, 0.1);
}

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

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

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

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

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

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

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

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

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

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

/* 질문 영역 */
.cutoff-theme .question-area {
    background: var(--cutoff-card);
    margin: 0 20px;
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.08);
}

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

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

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

.cutoff-theme .option-btn:hover {
    border-color: var(--cutoff-red);
    background: rgba(211, 47, 47, 0.04);
    transform: translateY(-2px);
}

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

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

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

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

/* ============ 결과 화면 ============ */
.cutoff-theme .result-container {
    padding: 30px 20px;
    text-align: center;
    background: var(--cutoff-card);
    margin: 0 16px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.1);
    position: relative;
    overflow: hidden;
}

/* 장식 */
.cutoff-theme .result-container::before {
    content: "✂️";
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 1.8rem;
    opacity: 0.12;
}

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

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

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

/* 물리 시각화 영역 */
.cutoff-theme .physics-visual-area {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 16px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 205, 210, 0.4) 0%, var(--cutoff-bg) 50%, rgba(211, 47, 47, 0.08) 100%);
    border: 1px solid rgba(211, 47, 47, 0.1);
    overflow: hidden;
}

.cutoff-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 10px rgba(0, 0, 0, 0.15));
}

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

/* 뼈 때리는 한 줄 영역 */
.cutoff-theme .bone-hit-area {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(255, 205, 210, 0.3) 100%);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--cutoff-red);
    text-align: left;
}

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

.cutoff-theme .bone-hit-area p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

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

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

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

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

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

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

.relation-item.cut {
    animation: cutSnap 0.3s forwards;
}

@keyframes cutSnap {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(0.8) rotate(-5deg);
    }
}

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