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

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

.game-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00d9ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
}

.label {
    color: #888;
    font-size: 0.9rem;
}

#score, #level {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d9ff;
    margin-left: 5px;
}

.midi-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4757;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background: #2ed573;
    box-shadow: 0 0 10px #2ed573;
}

.chord-display {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.current-chord {
    margin-bottom: 15px;
}

.chord-label {
    color: #a855f7;
    font-size: 0.9rem;
}

.chord-name {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-top: 5px;
}

.controls-display {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.control-mapping {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.control-mapping span {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

.control-mapping .note {
    font-size: 1rem;
    font-weight: bold;
    color: #00d9ff;
    margin-bottom: 3px;
}

canvas {
    display: block;
    margin: 0 auto;
    background: #0a0a15;
    border-radius: 10px;
    border: 2px solid #333;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.instructions p {
    margin-bottom: 10px;
}

.instructions ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.instructions li {
    margin-bottom: 5px;
}

.keyboard-hint {
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
}

#start-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

#start-btn:active {
    transform: translateY(0);
}

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

.game-over {
    animation: pulse 1s infinite;
}
