/* --- MOCHI ROBOT (Dasai Style) --- */

/* Wrapper to position the scaled robot in the footer */
.mochi-wrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* Original width reserved space */
    height: var(--status-bar-height, 100px);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align to bottom */
    pointer-events: none; /* Let clicks pass through */
}

/* The Head - SCALED DOWN */
.mochi-head {
    width: 300px;
    height: 220px;
    background-color: #1a1a1a;
    border-radius: 40px;
    position: relative;
    box-shadow: 
        0 0 0 4px #2a2a2a,
        0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #222 0%, #111 100%);
    
    /* SCALE IT DOWN TO FIT FOOTER */
    transform: scale(var(--mochi-scale, 0.35)); 
    transform-origin: center bottom;
}

/* The Screen Area */
.mochi-screen {
    width: 240px;
    height: 140px;
    background-color: #000;
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden;
}

/* Teal Eyes */
.eye {
    width: 60px;
    height: 80px;
    background-color: var(--main-color, #33ff00);
    border-radius: 12px;
    position: relative;
    box-shadow: 
        0 0 15px var(--main-color, #33ff00),
        0 0 30px rgba(var(--main-color-rgb, 51, 255, 0), 0.4);
    will-change: transform; /* Smoother animation */
}

/* Screen Glint Reflection */
.glint {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 40px;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transform: rotate(-15deg);
    z-index: 2;
}

/* Blinking Animation */
.blink {
    animation: blinkAnim 0.15s ease-in-out forwards;
}

@keyframes blinkAnim {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
    100% { transform: scaleY(1); }
}
