.mascot-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent; /* Removed darkened background on desktop */
    display: flex;
    justify-content: center; /* Center horizontally to align with max-width container */
    align-items: flex-start;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mascot-popup-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Wrapper to align with the 1200px header max-width */
.mascot-popup-content-wrapper {
    width: 100%;
    max-width: 1200px; /* Match header max-width */
    height: 100px; /* Match header minimum height */
    position: relative;
    pointer-events: none; /* Allow clicks to pass through the wrapper */
}

.mascot-popup-content {
    background: transparent;
    text-align: left;
    position: absolute;
    bottom: 0; /* Hug the bottom of the 100px wrapper */
    left: 250px; /* Approximate position next to logo */
    animation: popupSlideIn_39059ef2 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto; /* Re-enable clicks for the popup content */
}

.mascot-popup-image {
    max-height: 100px; /* Set max height to fit perfectly inside the 100px header */
    width: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    transform-origin: bottom center; /* Scale from bottom up on hover */
}

.mascot-popup-image:hover {
    transform: scale(1.05);
}

/* Speech Bubble Styles */
.mascot-speech-bubble {
    position: absolute;
    top: 100%; /* Drop below image for header placement */
    left: 20px;
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 20px;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.4;
    max-width: 280px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    margin-top: 15px;
    z-index: 10;
    min-height: 80px;
}

.mascot-speech-bubble::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 30px;
    border-width: 0 12px 12px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.mascot-speech-bubble.hidden {
    display: none;
}

.mascot-typing-cursor {
    display: inline-block;
    width: 2px;
    animation: blinkCursor_39059ef2 0.7s infinite;
}

@keyframes blinkCursor_39059ef2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mascot-popup-overlay {
        align-items: flex-end; /* Mobile: hug bottom */
        background: rgba(0, 0, 0, 0.5); /* 50% darkened background on mobile */
    }

    .mascot-popup-content-wrapper {
        height: auto;
        position: static;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .mascot-popup-content {
        position: static;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mascot-popup-image {
        max-height: 90vh; /* Large size for mobile */
        max-width: 100vw;
        margin-top: 0;
        object-fit: contain;
        object-position: bottom;
    }

    .mascot-speech-bubble {
        top: auto;
        bottom: 80%; /* Back to top of image for mobile */
        left: auto;
        right: 50%;
        transform: translateX(50%);
        max-width: 300px;
        font-size: 15px;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .mascot-speech-bubble::before {
        display: none; /* Hide top pointer */
    }

    .mascot-speech-bubble::after {
        content: '';
        position: absolute;
        bottom: -12px;
        right: 50%;
        transform: translateX(50%);
        border-width: 12px 12px 0;
        border-style: solid;
        border-color: #fff transparent transparent transparent;
    }
}

@keyframes popupSlideIn_39059ef2 {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}