/* ============ Live2D: речевой пузырь ============ */
.live2d-bubble {
    position: fixed;
    right: 200px;
    bottom: 320px;
    max-width: 240px;
    padding: 12px 18px;
    background: #fff;
    color: var(--ink, #1f1016);
    border: 2px solid var(--ice-cyan, #72baa9);
    border-radius: 18px;
    font: 500 14px/1.4 var(--font-body, 'Inter', system-ui, sans-serif);
    box-shadow: 0 10px 30px -12px rgba(74,15,36,.35);
    z-index: 9998;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    word-wrap: break-word;
}
.live2d-bubble::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: -10px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 2px solid var(--ice-cyan, #72baa9);
    border-bottom: 2px solid var(--ice-cyan, #72baa9);
    transform: rotate(45deg);
}
.live2d-bubble--show { opacity: 1; transform: translateY(0); }

html[data-theme="dark"] .live2d-bubble {
    background: #26111b;
    color: #f0e4e8;
    border-color: #72baa9;
}
html[data-theme="dark"] .live2d-bubble::after { background: #26111b; }

@media (max-width: 768px) {
    .live2d-bubble {
        right: 12px;
        bottom: 240px;
        max-width: 62vw;
        font-size: 13px;
        padding: 10px 14px;
    }
}