* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    color: #e0e0e0;
}

#avatar-container {
    width: 90vw;
    max-width: 800px;
    height: 60vh; /* Slightly smaller to make room for buttons */
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
}

#avatar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#status-bar {
    margin-top: 16px;
    padding: 10px 24px;
    background: #1a1a1a;
    border-radius: 30px;
    font-size: 14px;
    color: #888;
    border: 1px solid #333;
}

/* NEW: Controls Styling */
#controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    transition: all 0.2s;
}

button:hover {
    background: #3a3a3a;
    border-color: #666;
}

#btn-listen.listening {
    background: #d32f2f;
    border-color: #f44336;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}