@font-face {
    font-family: 'Pet Baloo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/baloo-2-vietnamese-600-normal.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
        U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
        U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Pet Baloo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/baloo-2-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074,
        U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
#mini-pet-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none !important;
    overflow: hidden;
    contain: strict;
}
#mini-pet-layer *, #mini-pet-layer *::before, #mini-pet-layer *::after {
    pointer-events: none !important;
    box-sizing: border-box;
}
#mini-pet-layer canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background: transparent;
}
#mini-pet-layer .pet-message {
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    max-width: min(240px, calc(100vw - 24px));
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: rgba(30, 30, 42, .94);
    color: #ededf3;
    font: 600 14px/1.45 'Pet Baloo', 'Segoe UI', sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
    opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
    visibility: hidden;
}
#mini-pet-layer .pet-message.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
#mini-pet-layer .pet-message img.pet-emoji {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin: 0 .04em;
    vertical-align: -.18em;
    object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
    #mini-pet-layer .pet-message { transition: none; }
}
