/* 三種遊玩版面共用；底色可由各版面覆寫，揭露操作維持原有行為。 */
.diamwolf-gfm-spoiler {
    background: #333;
    color: transparent;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    user-select: text;
    transition: background 0.2s, color 0.2s;
}

.diamwolf-gfm-spoiler:is(:focus, :hover, .revealed) {
    background: #555;
    color: #fff;
}

body.new-body.gv-theme-night .diamwolf-gfm-spoiler {
    background: #1a1a2e;
}

body.new-body.gv-theme-night .diamwolf-gfm-spoiler:is(:focus, :hover, .revealed) {
    background: #2d2d44;
    color: #e0e0e0;
}

/* 系統訊息強制字色、選取反白及巢狀格式都不能洩漏未揭露內容。 */
:is(.diamwolf-gfm-spoiler, .gv-talk-editor .gv-composer-format-spoiler):not(:is(:focus, :hover, .revealed)) {
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

:is(.diamwolf-gfm-spoiler, .gv-talk-editor .gv-composer-format-spoiler):not(:is(:focus, :hover, .revealed)) * {
    visibility: hidden !important;
}
