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

:root {
    --primary: #EC4899;
    --background: #0F0F23;
    --surface: #1A1A2E;
    --text: #F8FAFC;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(180deg, #0F0F23 0%, #16213E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#game-container {
    width: 100%;
    max-width: 500px;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
}

#game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--background);
}

.game-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface);
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

#game-area {
    padding: 16px;
}

.instruments {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.inst-btn {
    padding: 12px 16px;
    font-size: 24px;
    background: var(--background);
    border: 2px solid #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.inst-btn:hover {
    border-color: var(--primary);
}

.inst-btn.active {
    border-color: var(--primary);
    background: #374151;
}

.sequencer {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.seq-cell {
    aspect-ratio: 1;
    background: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.seq-cell:hover {
    background: #4B5563;
}

.seq-cell.active {
    background: var(--primary);
}

.seq-cell.playing {
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.1);
}

.controls {
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    color: white;
}

.btn-secondary {
    background: #374151;
    color: var(--text);
}