/* 폰트 크기 변수 적용 */
html {
    font-size: calc(var(--font-scale, 1) * 14px);
}

/* 커스텀 애니메이션 */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
        scale: 0.95;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        scale: 1;
    }
}

.animate-slideUp {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

/* 유리 효과 */
.glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(17, 24, 39, 0.8);
    /* bg-gray-900/80 */
}

/* 스크롤바 숨기기 */
textarea,
.overflow-y-auto {
    scrollbar-width: none;
}

textarea::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar {
    display: none;
}

/* 로딩 스피너 */
@keyframes pulse {
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 단어 단위 줄바꿈 */
.break-words {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 커스텀 슬라이더 스타일 */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #4a5568;
    /* gray-700 */
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type=range]:hover {
    opacity: 1;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4299e1;
    /* blue-400 */
    border-radius: 50%;
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4299e1;
    /* blue-400 */
    border-radius: 50%;
    cursor: pointer;
}

/* 접기/펴기 애니메이션 (JS 기반으로 변경) */
details>summary {
    list-style: none;
    /* 기본 마커 제거 */
}

details>summary::-webkit-details-marker {
    display: none;
    /* Safari 기본 마커 제거 */
}

details .content-wrapper {
    overflow: hidden;
}