/* Independent, versioned widget styles: do not rely on Discuz CSS compilation. */
#ydw-game-girl {
    position: fixed;
    right: 45px;
    bottom: 0;
    z-index: 120;
    display: block;
    box-sizing: border-box;
    width: 238px;
    height: 768px;
    margin: 0;
    padding: 0;
    border: 0;
    background: url("girl-a.png") right bottom / 100% 100% no-repeat;
    overflow: visible;
    color: #403442;
    cursor: pointer;
    text-decoration: none;
    text-indent: 0;
    text-shadow: none;
    transition: none;
}
#ydw-game-girl:hover,
#ydw-game-girl:focus {
    background-image: url("girl-b.png");
    color: #403442;
    text-decoration: none;
}
#ydw-game-girl:focus-visible {
    outline: 2px solid #c7975f;
    outline-offset: 5px;
}
#ydw-game-girl #ydw-game-girl-bubble {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 100%;
    left: auto;
    z-index: 1;
    float: none;
    display: block;
    box-sizing: border-box;
    width: 272px;
    max-width: calc(100vw - 64px);
    height: auto;
    min-height: 0;
    margin: 0 0 15px;
    padding: 15px 19px 14px;
    border: 2px solid #7f6a80;
    border-radius: 20px;
    background: #fff;
    background-image: none;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .24);
    overflow: visible;
    color: #403442;
    font: normal 15px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif;
    letter-spacing: .3px;
    text-align: left;
    text-indent: 0;
    text-shadow: none;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
}
#ydw-game-girl #ydw-game-girl-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
/* Disable legacy pseudo-elements; use a real outlined tail. */
#ydw-game-girl #ydw-game-girl-bubble:before,
#ydw-game-girl #ydw-game-girl-bubble:after {
    display: none;
    content: none;
}
#ydw-game-girl .ydw-girl-name,
#ydw-game-girl .ydw-girl-message,
#ydw-game-girl .ydw-girl-cta {
    position: static;
    float: none;
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-indent: 0;
    text-decoration: none;
    text-shadow: none;
}
#ydw-game-girl .ydw-girl-name {
    margin-bottom: 7px;
    color: #9d647b;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    letter-spacing: 2px;
}
#ydw-game-girl .ydw-girl-message {
    color: #403442;
    font-size: 15px;
    font-weight: normal;
    line-height: 27px;
    letter-spacing: .3px;
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: break-word;
}
#ydw-game-girl .ydw-girl-cta {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #eee5eb;
    color: #a3653b;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    letter-spacing: 0;
    white-space: normal;
}
#ydw-game-girl .ydw-girl-cta > span {
    position: static;
    float: right;
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: #a3653b;
    font: normal 20px/18px Georgia, serif;
}
#ydw-game-girl .ydw-girl-tail {
    position: absolute;
    top: 100%;
    right: 63px;
    display: block;
    box-sizing: border-box;
    width: 17px;
    height: 17px;
    margin: -7px 0 0;
    padding: 0;
    border: 0;
    border-right: 2px solid #7f6a80;
    border-bottom: 2px solid #7f6a80;
    background: #fff;
    transform: rotate(45deg);
    pointer-events: none;
}
/* Preserve image proportions and reserve space for the entire speech bubble. */
@media screen and (max-height: 960px) {
    #ydw-game-girl {
        width: calc(30.989583vh - 59.5px);
        height: calc(100vh - 192px);
    }
}
@media screen and (max-width: 380px) {
    #ydw-game-girl { right: 22px; }
    #ydw-game-girl #ydw-game-girl-bubble { max-width: calc(100vw - 44px); }
}
@media (prefers-reduced-motion: reduce) {
    #ydw-game-girl #ydw-game-girl-bubble { transition: none; }
}
