* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    perspective: 1000px;
}

.card {
    width: 280px;
    height: 190px;
    border-radius: 30px;
    background: linear-gradient(135deg, #4f46e5, #9333ea, #22d3ee);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.15s ease, background 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px #4f46e5;
    }

    100% {
        box-shadow: 0 0 50px #22d3ee;
    }
}

.face {
    width: 240px;
    height: 150px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 25px;
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eyes {
    position: absolute;
    top: 45px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.eye {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: height 0.2s ease, background 0.3s ease;
}

.pupil {
    width: 16px;
    height: 16px;
    background: black;
    border-radius: 50%;
    transition: transform 0.05s linear, background 0.3s ease;
}

.mouth {
    width: 50px;
    height: 25px;
    border-bottom: 4px solid white;
    border-radius: 0 0 50px 50px;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.happy .mouth {
    height: 35px;
    border-bottom: 6px solid #22d3ee;
}

.angry .mouth {
    border-bottom: 5px solid red;
    transform: translateX(-50%) rotate(180deg);
}

.angry .pupil {
    background: red;
}

.sleepy .eye {
    height: 15px;
}