.waifu {
    position: fixed;
    width: 230px;
    height: 270px;
    z-index: 2000;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none
}

.waifu-tips {
    opacity: 0;
    width: 220px;
    height: 70px;
    margin: -20px 5px;
    padding: 5px 7px;
    border: 1px solid rgba(224, 186, 140, 0.8);
    border-radius: 12px;
    background-color: rgba(236, 217, 188, 0.8);
    box-shadow: 0 3px 15px 2px rgba(191, 158, 118, 0.2);
    font-size: 12px;
    line-height: 20px;
    color: #555;
    text-overflow: ellipsis;
    overflow: hidden;
    position: absolute
}

.waifu-tool {
    display: none;
    color: #aaa;
    top: 50px;
    right: 0;
    font-size: 16px;
    position: absolute
}

.waifu:hover .waifu-tool {
    display: block
}

.waifu-tool span {
    display: block;
    cursor: pointer;
    color: #5b6c7d;
    line-height: 22px;
    transition: 0.2s;
    -webkit-transition: 0.2s
}

.waifu-tool span:hover {
    color: #34495e
}

.waifu #live2d {
    position: absolute;
    cursor: move;
    left: 3%;
    bottom: 0
}

.waifu-btn {
    position: fixed;
    z-index: 2;
    right: -108px;
    bottom: 0;
    width: 108px;
    height: 150px;
    background: url("./waifu-btn.png") no-repeat 0 0;
    background-size: 108px 450px;
    opacity: 0.6;
    transition: opacity 0.3s, right 0.8s;
}

.waifu-btn {
    position: fixed;
    z-index: 2;
    left: -108px;
    bottom: 0;
    width: 108px;
    height: 150px;
    background: url("./waifu-btn.png") no-repeat 0 0;
    background-size: 108px 450px;
    opacity: 0.6;
    transition: opacity 0.3s, left 0.8s;
}

.waifu-btn:hover {
    background-position: 0 -150px;
    opacity: 1;
}

.waifu-btn.load {
    left: 0;
}

.waifu-btn.ani-leave {
    background-position: 0 -150px;
    animation: ani-leave 390ms ease-in-out;
    animation-fill-mode: forwards;
}

.waifu-btn.leaved {
    pointer-events: none;
    background: none;
    transition: none;
}

.waifu-btn.ending {
    pointer-events: none;
}

.waifu-btn.ending::after {
    opacity: 1;
}

.waifu-btn::after {
    content: '';
    position: fixed;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 108px;
    height: 150px;
    background: url("./waifu-btn.png") no-repeat 0 0;
    background-size: 108px 450px;
    background-position: 0 -300px;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

@media(max-width:530px) {
    .l2d_xb {
        display: none !important
    }
}