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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, #1a0033, #330066, #000011);
    color: white;
    overflow-x: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #000;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 800px;
    background: #000;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

#header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #ff69b4;
}

#score-info, #song-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#score-info {
    font-size: 14px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

#song-info {
    text-align: right;
    font-size: 12px;
}

#song-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

#judgment-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 20;
}

#controls {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: all;
}

#controls button, #controls select {
    padding: 8px 12px;
    background: rgba(255, 105, 180, 0.8);
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#controls button:hover, #controls select:hover {
    background: rgba(255, 105, 180, 1);
    transform: scale(1.05);
}

#health-bar {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 10px;
    overflow: hidden;
}

#health-fill {
    height: 100%;
    width: 100%;
    background: #44ff44;
    transition: width 0.3s, background-color 0.3s;
}

#arrow-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    pointer-events: all;
}

.arrow-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    border: 3px solid;
}

.arrow-btn:nth-child(1) {
    background: rgba(255, 68, 68, 0.8);
    border-color: #ff4444;
    color: #fff;
}

.arrow-btn:nth-child(2) {
    background: rgba(68, 68, 255, 0.8);
    border-color: #4444ff;
    color: #fff;
}

.arrow-btn:nth-child(3) {
    background: rgba(255, 255, 68, 0.8);
    border-color: #ffff44;
    color: #000;
}

.arrow-btn:nth-child(4) {
    background: rgba(68, 255, 68, 0.8);
    border-color: #44ff44;
    color: #000;
}

.arrow-btn:active,
.arrow-btn.pressed {
    transform: scale(0.9);
    box-shadow: 0 0 20px currentColor;
}

@media (max-width: 768px) {
    #game-canvas {
        height: 600px;
    }
    
    #header {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    #controls {
        top: 60px;
        right: 10px;
    }
    
    #controls button, #controls select {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .arrow-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    #arrow-buttons {
        gap: 10px;
    }
    
    #health-bar {
        width: 250px;
        bottom: 120px;
    }
}

/* Retro glow effects */
#song-title, #score-info {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px currentColor;
    }
    to {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* Dance floor effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 105, 180, 0.1) 2px,
            rgba(255, 105, 180, 0.1) 4px
        );
    pointer-events: none;
    z-index: -1;
}