* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 500px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 10px;
}

.instructions {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 10px;
}

.score, .timer {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.score span, .timer span {
    color: #FF69B4;
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    background: #87CEEB;
}

#gameCanvas:focus {
    outline: none;
}

.voice-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    gap: 10px;
}

.mic-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ccc;
    position: relative;
}

.mic-icon::before {
    content: '🎤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.mic-icon.listening {
    background: #32CD32;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

.voice-status {
    color: #666;
    font-size: 0.9em;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.8em;
    color: #999;
}

footer a {
    color: #FF69B4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .instructions {
        font-size: 0.85em;
    }
    
    #gameCanvas {
        max-width: 100%;
        height: auto;
    }
}