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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    touch-action: none;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #e0f7ff;
}

.score-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score, .timer {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    display: none;
}

.game-over h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

.game-over .break-message {
    font-size: 18px;
    color: #ffcc00;
    margin-bottom: 30px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3e8e41;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.start-screen h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.start-screen p {
    font-size: 18px;
    margin-bottom: 15px;
}

.start-screen .mic-note {
    color: #ffcc00;
    font-size: 16px;
    margin-bottom: 20px;
}

.start-screen .blow-instruction {
    color: #ff9900;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.mic-feedback {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mic-feedback::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-color: #4CAF50;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.1s ease;
}

.mic-feedback.active::before {
    transform: scale(1);
}