* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 50%, #FFB6C1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    text-align: center;
    padding: 15px;
}

h1 {
    color: #fff;
    font-size: 2em;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

#score-board {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 10px;
    font-size: 1.15em;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    flex-wrap: wrap;
}

#game-canvas {
    border: 4px solid #FF1493;
    border-radius: 12px;
    box-shadow:
        0 0 25px rgba(255,20,147,0.4),
        inset 0 0 30px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto;
    cursor: pointer;
    background: #FFF0F5;
}

#message {
    color: #fff;
    font-size: 1.15em;
    margin-top: 10px;
    min-height: 1.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

#controls {
    margin-top: 8px;
    color: #fff;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#music-control {
    margin-top: 8px;
}

#music-btn {
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

#music-btn:hover {
    background: rgba(255,255,255,0.45);
    transform: scale(1.05);
}

#mobile-controls {
    display: none;
    margin-top: 10px;
    user-select: none;
}

.control-btn {
    width: 58px;
    height: 58px;
    font-size: 1.4em;
    border: 2px solid #FF1493;
    border-radius: 14px;
    background: rgba(255,20,147,0.3);
    color: white;
    cursor: pointer;
    margin: 3px;
    touch-action: manipulation;
    transition: background 0.15s;
}

.control-btn:active {
    background: rgba(255,20,147,0.7);
}

.control-row {
    display: flex;
    justify-content: center;
}

@media (hover: none) and (pointer: coarse) {
    #mobile-controls {
        display: block;
    }
}

@media (max-width: 480px) {
    #game-canvas {
        width: 340px;
        height: 340px;
    }
    h1 {
        font-size: 1.5em;
    }
    #score-board {
        font-size: 1em;
        gap: 12px;
    }
}
