.mylzo-mascot {
    --mylzo-size: 230px;
    --mylzo-scale: 1;
    position: fixed;
    z-index: 2147483000;
    width: var(--mylzo-size);
    height: var(--mylzo-size);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    contain: layout style paint;
    will-change: transform, opacity;
}

.mylzo-mascot[hidden] { display: none !important; }
.mylzo-mascot.is-visible { opacity: 1; visibility: visible; }

.mylzo-mascot__stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform: scale(var(--mylzo-scale));
    transform-origin: 50% 100%;
    will-change: transform;
}

.mylzo-mascot__model {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
    pointer-events: none;
    filter: drop-shadow(0 12px 15px rgba(35, 44, 100, .16));
}

.mylzo-mascot__floor {
    position: absolute;
    z-index: 1;
    left: 24%;
    right: 24%;
    bottom: 7%;
    height: 9%;
    border-radius: 50%;
    background: rgba(66, 74, 150, .15);
    filter: blur(8px);
    transform: scaleX(.95);
    transition: opacity .25s ease, transform .25s ease;
}

.mylzo-mascot.is-airborne .mylzo-mascot__floor {
    opacity: .35;
    transform: scaleX(.65);
}

.mylzo-mascot__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #0f172a;
    font: 600 19px/24px Arial, sans-serif;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .14);
    opacity: .72;
}

.mylzo-mascot__close:hover { opacity: 1; }

.mylzo-mascot__bubble {
    position: absolute;
    z-index: 4;
    top: 4%;
    right: 74%;
    width: max-content;
    max-width: 175px;
    padding: 9px 12px;
    border: 1px solid rgba(79, 70, 229, .14);
    border-radius: 14px 14px 4px 14px;
    background: rgba(255, 255, 255, .96);
    color: #0f172a;
    font: 600 13px/1.35 Arial, sans-serif;
    box-shadow: 0 10px 30px rgba(30, 41, 59, .14);
    pointer-events: none;
    animation: mylzo-bubble-in .3s ease both;
}

.mylzo-mascot.is-left-side .mylzo-mascot__bubble {
    left: 74%;
    right: auto;
    border-radius: 14px 14px 14px 4px;
}

@keyframes mylzo-bubble-in {
    from { opacity: 0; transform: translateY(6px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mylzo-alive-bob {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(var(--mylzo-scale)); }
    50% { transform: translate3d(0, -8px, 0) rotate(1.5deg) scale(var(--mylzo-scale)); }
}

.mylzo-mascot.is-resting .mylzo-mascot__stage {
    animation: mylzo-alive-bob 2.4s ease-in-out infinite;
}

@media (max-width: 767px) {
    .mylzo-mascot { --mylzo-size: 145px; }
    .mylzo-mascot__bubble { display: none !important; }
    .mylzo-mascot__close { width: 24px; height: 24px; font-size: 17px; line-height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .mylzo-mascot { display: none !important; }
}
