html.loading,
body.loading {
    overflow: hidden !important;
    height: 100%;
}

/****************** 페이지 로딩 ******************/

.loading-wrap {
    position: fixed;        /* 🔥 중요 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    z-index: 200;           /* 가장 위 */
    background: transparent;
}
.loading-wrap.hide {
    opacity: 0;
    pointer-events: none;  /* 🔥 클릭 통과 */
    transition: opacity 0.4s ease;
}
.loading-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    z-index: 101;
    transform: translate(-50%, -50%);
}
.loading-inner .line {
    display: block;
    width: 100%;
    height: 1px;
    background: #E74750;
}

.loading-inner button {
    flex-shrink: 0;
    position: relative;
    max-width: 550px;
    width: 100%;
    height: 163px;
    padding: 0 40px;

    background: transparent;      /* ✅ 핵심 */
    border: none;                 /* ✅ 핵심 */
    outline: none;                /* ✅ 선택 */

    color: transparent;           /* ← 세미콜론 꼭 */
    animation: buttonWidthAni 0.4s ease-in-out forwards;
    overflow: hidden;
    cursor: pointer;
}

.loading-inner button > span {
    display: block;
    font-family: 'Anta';
    font-size: 26px;
    color: #EDABAF;
    text-align: center;
    animation: opacityAni 1s forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;   /* 🔥 핵심 */
}
.loading-inner button > span .mobile-br {
    display: none;
}
.loading-inner .click {
    position: absolute;
    bottom: 16%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-family: 'Anta';
    font-size: 16px;
    color: #EDABAF;
    text-align: center;
    transform: translate(-50%, 50%);
    opacity: 0;
    animation: opacityAni2 1.5s infinite;
    animation-delay: 0.6s;
}
.loading-inner .click:before {
    content: "";
    display: block;
    width: 12px;
    height: 10px;
    background: url(../img/content/click-left.png);
}
.loading-inner .click:after {
    content: "";
    display: block;
    width: 12px;
    height: 10px;
    background: url(../img/content/click-right.png);
}
.loading-inner button::before, .loading-inner button::after {
    content: "";
    position: absolute;
    top: 0;
    width: 14px;
    height: 100%;
}
.loading-inner button::before {
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="165" viewBox="0 0 14 165" fill="none"><path d="M13 9L7 12V153L13 156V9Z" fill="%23E74750"/><path d="M13 1L1 7V158L13 164" stroke="%23E74750"/></svg>');
    
}
.loading-inner button::after {
    right: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="165" viewBox="0 0 14 165" fill="none"><path d="M1 9L7 12V153L1 156V9Z" fill="%23E74750"/><path d="M1 1L13 7V158L1 164" stroke="%23E74750"/></svg>');
}
@keyframes buttonWidthAni {
    0% { width: 0; height: 0; }
    100% { width: 550px; height: 163px; }
}
@keyframes opacityAni {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes opacityAni2 {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.loading-inner.fade-out {
    opacity: 0;
    transition: opacity 0.4s;
}
.loading-inner.out button {
    width: 0;
    height: 0;
    padding: 0;
    animation: buttonWidthAniOut 0.4s ease-in-out forwards;
    transition: all 0.4s ease-in-out;
}
.loading-inner.out button > span,
.loading-inner.out button > p {
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
@keyframes buttonWidthAniOut {
    0% { width: 350px; height: 163px; }
    100% { width: 0; height: 0; }
}
/* 반응형 */
@media only screen and (max-width: 620px) {
    .loading-inner button {
        max-width: 260px;
    }
    .loading-inner button > span {
        font-size: 22px;
    }
}
@media only screen and (max-width: 480px) {
    .loading-inner button {
        max-width: 180px;
        padding: 0 40px;
    }
    .loading-inner button > span {
        font-size: 16px;
        white-space: pre-line !important;
    }
    .loading-inner button > span .mobile-br {
        display: block !important;
    }
    .loading-inner .click {
        font-size: 13px;
    }
}


/****************** 동영상 배경 ******************/
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: #431518;
    overflow: hidden;
}
.background-video video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1920px;
    opacity: .30;
    filter: brightness(0.5);
    transform: translateX(-50%);
}
.background-video.back {
    z-index: 1;
}

/* 반응형 */
@media only screen and (max-width: 620px) {
    .loading-inner button {
        max-width: 260px;
    }
    .loading-inner button > span {
        font-size: 22px;
    }
}
@media only screen and (max-width: 480px) {
    .loading-inner button {
        max-width: 180px;
        padding: 0 40px;
    }
    .loading-inner button > span {
        font-size: 16px;
        white-space: pre-line !important;
    }
    .loading-inner button > span .mobile-br {
        display: block !important;
    }
    .loading-inner .click {
        font-size: 13px;
    }
}
.background-video.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
