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

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 850px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF1493;
    text-shadow: 2px 2px 0 #FFD700;
    margin-bottom: 5px;
}

.player-name {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.score-display {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border-radius: 10px;
    font-weight: 600;
}

.score {
    color: #FF1493;
    font-size: 1.1rem;
}

.high-score {
    color: #228B22;
    font-size: 1.1rem;
}

.canvas-wrapper {
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid #87CEEB;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

#canvas {
    display: block;
    width: 100%;
    cursor: pointer;
    touch-action: manipulation;
}

.controls-info {
    text-align: center;
    padding: 15px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
}

.controls-info strong {
    color: #FF1493;
}

.start-prompt {
    color: #FF1493;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
    animation: pulse 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.footer-link {
    color: #FF1493;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF69B4;
}

.sound-btn {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sound-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

.sound-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .score-display {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .score, .high-score {
        font-size: 1rem;
    }
    
    .controls-info {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .start-prompt {
        font-size: 1rem;
    }
}