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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
}

.controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #2a2a3e;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

select:hover {
    border-color: #666;
}

.toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #444;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: #4ecdc4;
    color: #000;
}

.gesture-area {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

canvas {
    width: 100%;
    height: 100%;
    background: #000;
    cursor: crosshair;
}

.hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #666;
    pointer-events: none;
}

.info {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.label {
    color: #aaa;
}

.instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.instructions h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.instructions li::before {
    content: '🎵';
    position: absolute;
    left: 0;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .gesture-area {
        height: 300px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .info {
        flex-direction: column;
        gap: 10px;
    }
}