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

body {
    font-family: 'Courier New', 'Courier', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 40px;
    border: 3px solid #fff;
    padding: 15px;
    text-align: center;
}

h2 {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff;
    padding-bottom: 8px;
}

.control-section {
    margin-bottom: 40px;
    border: 2px solid #fff;
    padding: 20px;
}

.control-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

label span {
    float: right;
    font-weight: bold;
}

/* Brutalist range input */
input[type="range"] {
    width: 100%;
    height: 4px;
    background: #fff;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    border: 1px solid #fff;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border: 2px solid #000;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border: 2px solid #000;
}

input[type="range"]:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Note selector */
.note-selector {
    margin-top: 10px;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.note-btn {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 8px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: none;
}

.note-btn:hover {
    background: #fff;
    color: #000;
}

.note-btn.active {
    background: #fff;
    color: #000;
}

.octave-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.octave-btn {
    flex: 1;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: none;
}

.octave-btn:hover {
    background: #fff;
    color: #000;
}

.octave-btn.active {
    background: #fff;
    color: #000;
}

.current-note {
    text-align: center;
    padding: 10px;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn {
    flex: 1;
    padding: 20px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    background: #000;
    color: #fff;
    border: 3px solid #fff;
    cursor: pointer;
    transition: none;
}

.btn:hover:not(:disabled) {
    background: #fff;
    color: #000;
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .note-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .octave-selector {
        flex-wrap: wrap;
    }

    .octave-btn {
        flex: 1 1 45%;
    }

    .button-group {
        flex-direction: column;
    }
}
