/* 튜토리얼 스타일 */
#vr-chatbot-tutorial .tutorial {
    z-index: 10001;
}

#vr-chatbot-tutorial .popup-content-wrap {
    max-width: 90%;
    width: fit-content;
    backdrop-filter: blur(10px);
}

#vr-chatbot-tutorial .popup-content-wrap.focus_box {
    border-radius: 2rem;
}

#vr-chatbot-tutorial .popup-content-wrap .tutorial_cont {
    flex-wrap: nowrap;
    margin-top: 7rem;
}

#vr-chatbot-tutorial .popup-content-wrap .tt-wrap {
    margin: 0 1.5rem;
}

#vr-chatbot-tutorial .popup-content-wrap .tt-wrap .icon-img-wrap {
    height: 11rem;
    object-fit: contain;
}

#vr-chatbot-tutorial .popup-content-wrap .tt-wrap .description {
    max-width: 20rem;
}

#vr-chatbot-tutorial .popup-content-wrap .tt-wrap .description p {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .75);
    line-height: 1.45;
    word-break: keep-all;
    margin-top: 1rem;
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.tutorial-overlay .overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tutorial-overlay .overlay-svg rect {
    transition: all 0.5s ease;
}

.tutorial-tooltip {
    position: fixed;
    transform: translateX(-3rem);
    z-index: 10001;
    width: 25rem;
    background: white;
    border-radius: 1.8rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
    padding: 2rem 2rem 1.5rem;
    animation: fadeIn 0.3s ease-out;
    transition: all .3s ease;
}

.tutorial-tooltip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    transform: translateY(-100%);
    z-index: -1;
    width: 5.2rem;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: url('../images/vbe.png') center top/cover no-repeat;
}

.tutorial-tooltip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 7rem;
    transform: translateY(-100%);
    width: 9rem;
    aspect-ratio: 1/0.5;
    object-fit: contain;
    background: url('../images/sign.png') center top/cover no-repeat;
}

.tutorial-text {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    line-height: 1.45;
    letter-spacing: -0.03rem;
    word-break: keep-all;
}

.tutorial-pager {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: #bbb;
    letter-spacing: 0.025rem;
}

.tutorial-pager .now {
    font-weight: 800;
    color: #4D4EE8;
}

.tutorial-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.tutorial-buttons button {
    width: fit-content;
    padding: 0.8rem 1.2rem;
    background: #4D4EE8;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tutorial-buttons button.prev-btn {
    background: #F1F3F4;
    color: #999;
}

.tutorial-buttons button.prev-btn:hover {
    background: #e8eaeb;
}

.tutorial-buttons button:disabled {
    cursor: not-allowed;
    /* pointer-events: none; */
    opacity: 0.3;
}

.tutorial-buttons button.next-btn:hover {
    background: #5b5bff;
}

.focus_box {
    position: relative;
    z-index: 9999 !important;
    box-shadow: none;
    border: 0;
    border-radius: 1rem;
    transition: box-shadow 0.3s ease;
}

.tutorial-overlay .overlay-svg #focus-border {
    stroke-width: 3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: url(#border-gradient);
    animation: border-gradient-move 4s linear infinite;
}

@keyframes border-gradient-move {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

.tutorial-overlay .overlay-svg #focus-hole {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-overlay .overlay-svg #focus-border-path {
    stroke-width: 3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#vr-chatbot-tutorial .popup-content-wrap .tutorial_title h4 {
    font-size: 4.4rem;
}

@keyframes gradientMove {
    to {
        transform: rotate(360deg);
    }
}

.tutorial-overlay .overlay-svg #border-gradient {
    animation: gradientMove 4s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 반응형 스타일 */
@media all and (max-width:960px) {

    .tutorial-tooltip {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 2rem;
        top: auto !important;
    }

    .tutorial-tooltip::before,
    .tutorial-tooltip::after {
        display: none;
    }

    #vr-chatbot-tutorial .popup-content-wrap {
        padding: 4rem 3rem !important;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tutorial_title h4 {
        font-size: 4rem;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tutorial_cont {
        flex-wrap: wrap;
        row-gap: 4rem;
        margin-top: 5rem;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tt-wrap {
        width: 50%;
        margin: 0;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tt-wrap .icon-img-wrap {
        height: 8rem;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tt-wrap .description {
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .focus_box::after {
        display: none;
    }
}

@media all and (max-width: 768px) {
    .tutorial-text {
        font-size: 1.7rem;
    }

    .tutorial-pager {
        font-size: 1.6rem;
    }

    .tutorial-buttons button {
        font-size: 1.5rem;
    }
}

@media all and (max-width:640px) {

    .tutorial-tooltip {
        padding: 1.5rem;
    }

    .tutorial_title h3,
    #vr-chatbot-tutorial .popup-content-wrap .tutorial_title h4 {
        display: none;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tutorial_cont {
        margin-top: 0;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tt-wrap h5 {
        font-size: 1.7rem;
        margin-top: 1.5rem;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tt-wrap .description p {
        margin-top: 0.75rem;
    }
}

@media all and (max-height:700px) {
    #vr-chatbot-tutorial .popup-content-wrap {
        top: 45%;
        max-height: 60vh;
        overflow-y: auto;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tutorial_cont {
        margin-top: 0;
    }

    #vr-chatbot-tutorial .popup-content-wrap .tutorial_title h4 {
        display: none;
    }
}