@keyframes loadingRound {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes shadeTip {
    0% {
        left: 0px;
    }
    25% {
        left: -10px;
    }
    50% {
        left: 0px;
    }
    75% {
        left: 10px;
    }
    100% {
        left: 0px;
    }
}
.ancientModalShade {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
}
.ancientModal {
    position: fixed;
    top: 50px;
    left: 50%;
    font-size: 17px;
    padding: 10px 24px 10px 14px;
    font-weight: 500;
    border-radius: 15px / 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform: translate(-50%, -200%) scale(0);
    transition: all 0.7s ease-in-out;
    z-index: 999999;
}
.ancientModal.commonModal {
    background: white;
    width: 60%;
    height: 60%;
    top: 20px;
    box-shadow: 0 0 20px 1px #333;
    flex-direction: column;
    padding: 0;
}
.ancientModal.commonModal .ancientModalTitle {
    width: 100%;
    height: 60px;
    padding: 18px 34px 10px 24px;
    font-weight: 700;
    overflow: hidden;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 15px 15px 10px 10px / 30px 30px 10px 10px;
    box-shadow: 0px 2px 10px 5px #777;
}
.ancientModal:has(.ancientModalIcon-loading) {
    background-color: #bfbfbf;
    color: #666;
    box-shadow: 0 0 20px 1px #505050;
}
.ancientModal:has(.ancientModalIcon-danger) {
    background-color: #ffb6aa;
    color: #f00;
    box-shadow: 0 0 20px 1px #ff4949;
}
.ancientModal:has(.ancientModalIcon-success) {
    background-color: #a1cfb1;
    color: #008500;
    box-shadow: 0 0 20px 1px #3cb667;
}
.ancientModal .ancientModalIcon {
    width: 40px;
    height: 40px;
    border-radius: 100%;
}
.ancientModal .ancientModalIcon.ancientModalIcon-loading {
    background: url(/assets/image/ancient/loading.png) no-repeat;
    background-position: center;
    background-size: 100% 100%;
    animation-name: loadingRound;
    animation-timing-function: linear;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}
.ancientModal .ancientModalIcon.ancientModalIcon-danger {
    background: url(/assets/image/ancient/upset.png) no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
.ancientModal .ancientModalIcon.ancientModalIcon-success {
    background: url(/assets/image/ancient/happy.png) no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
.ancientModal .ancientModalContent {
    max-width: 250px;
}
.ancientModal.commonModal .ancientModalContent {
    width: 100%;
    height: 100%;
    max-width: unset !important;
    background: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0 0 15px 15px / 0 0 30px 30px;
    padding: 15px 24px;
    position: relative;
}
.ancientModal.commonModal .ancientModalClose {
    position: absolute;
    top: 10px;
    right: 23px;
    font-size: 25px;
    transition: 0.3s;
}
.ancientModal.commonModal .ancientModalClose:hover {
    color: #afafaf;
}