

#mascot-container {
    display: none; 
    position: fixed;
    z-index: 90; 
    width: 50px;
    height: 60px;
    cursor: pointer;
    
    
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    
    justify-content: center;
    align-items: flex-end;
    filter: drop-shadow(0 0 5px var(--accent-color));
    
    
    opacity: 0;
    pointer-events: none; 
}


#mascot-container.visible {
    transform: translateX(0) !important;
    opacity: 1; 
    pointer-events: all; 
}


.pixel-bot {
    position: relative;
    width: 44px;
    height: 38px;
    background: var(--accent-color);
    border-radius: 14px;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
    animation: float-bot 3s ease-in-out infinite;
}


.pixel-bot::before,
.pixel-bot::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #050505;
    border-radius: 50%;
    animation: blink 4s infinite;
}
.pixel-bot::before { left: 8px; }
.pixel-bot::after { right: 8px; }


#mascot-container::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 4px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 2px;
}
#mascot-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}


@keyframes float-bot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes blink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}



.pos-right-bottom { bottom: 20px; right: 30px; transform: translateX(200%); }
.pos-left-bottom { bottom: 20px; left: 30px; transform: translateX(-200%); }


.mascot-bubble {
    position: absolute;
    bottom: 75px;
    background: #fff;
    color: #000;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    width: max-content;
    max-width: 220px;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 10000;
}


.pos-left-bottom .mascot-bubble {
    left: 0;
    transform: none;
    text-align: left;
    border-bottom-left-radius: 0;
}
.pos-left-bottom .mascot-bubble::after {
    left: 20px; right: auto; transform: none;
}

.pos-right-bottom .mascot-bubble {
    right: 0; left: auto; transform: none;
    text-align: right;
    border-bottom-right-radius: 0;
}
.pos-right-bottom .mascot-bubble::after {
    right: 20px; left: auto; transform: none;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent;
}