
.overlay {
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    transition-property: opacity;
    transition-duration: 0.3s;
    pointer-events: inherit;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(2);
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
}

.overlay.hidden .overlay-content {
    transform: scale(0.95) translateY(0.5rem);
}

.loading {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition-property: opacity;
    transition-duration: 0.3s;
    z-index: 10000;
}

.loading:before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    content: '';
    background-image: url('../images/loading.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-loading .loading {
    opacity: 1;
    pointer-events: inherit;
}

.ui-loading .loading:before {
    animation: loading 1s steps(8, end) infinite;
}

.cold-down {
    position: fixed;
    left: 0;
    top: 0;
    height: 2px;
    background-color: #4ff;
    width: 100px;
    border-bottom-right-radius: 2px;
    pointer-events: none;
}

.ui-cold-down .cold-down {
    opacity: 1;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.3s;
    z-index: 2000;
}

.mask.ready {
    opacity: 1;
    pointer-events: inherit;
}

.mask.mask-toast {
    background-color: rgba(0, 0, 0, 0.4);
}

.mask .toast {
    position: absolute;
    min-width: 15px;
    min-height: 15px;
    max-width: 99vw;
    max-height: 99vh;
    background-color: #f2f2f2;
    border-radius: 4px;
    transform: translateY(50px);
    transition-property: transform;
    transition-duration: 0.3s;
    font-size: 15px;
    line-height: 24px;
    text-align: center;
    padding: 10px 15px;
    /* font-weight: bold; */
    color: #666;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mask.ready .toast {
    transform: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.mask.closing .toast {
    transform: translateY(-50px);
}

.mask.modeless,
.mask.modeless.mask-toast.toast-error {
    pointer-events: none;
    background-color: transparent;
}

.mask.modeless .toast {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.mask.mask-toast.toast-error {
    background-color:  rgba(88, 25, 25, 0.4);
}

.mask.toast-error .toast {
    background-color: #fcc;
    color: #c00;
    box-shadow: 0 5px 10px rgba(122, 0, 0, 0.8);
}

.mask.modeless.toast-error .toast {
    color: #fff;
    background-color: rgba(100, 0, 0, 0.85);
}
