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

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

.ambient-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.ambient-subtitle {
    color: #5a8a56;
    font-size: 1.1em;
}

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

.master-visualizer {
    text-align: center;
    margin-bottom: 30px;
}

#masterCanvas {
    background: rgba(20, 40, 20, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(90, 138, 86, 0.3);
}

.mixer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.noise-channel {
    background: rgba(30, 60, 30, 0.5);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(90, 138, 86, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noise-channel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.channel-header {
    margin-bottom: 12px;
}

.channel-title {
    font-weight: bold;
    font-size: 1em;
}

.channel-title .noise-icon {
    margin-right: 8px;
}

.channel-slider-group {
    margin-bottom: 8px;
}

.channel-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #8aaa86;
    margin-bottom: 3px;
}

.channel-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #2a3a2a;
    outline: none;
    transition: background 0.3s ease;
}

.channel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6aab6a;
    cursor: pointer;
    transition: background 0.3s ease;
}

.channel-slider::-webkit-slider-thumb:hover {
    background: #8acb8a;
}

.channel-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6aab6a;
    cursor: pointer;
    border: none;
}

.color-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #8aaa86;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.presets-section {
    text-align: center;
    margin: 30px 0;
}

.preset-btn {
    padding: 10px 18px;
    margin: 5px;
    border-radius: 20px;
    border: 1px solid #4a8a4a;
    background: rgba(40, 70, 40, 0.5);
    color: #a0c0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.preset-btn:hover {
    background: rgba(60, 100, 60, 0.6);
    transform: translateY(-2px);
}

.preset-btn.active {
    background: #4a8a4a;
    color: #fff;
}

.back-link {
    text-align: center;
    margin: 20px 0;
}

.back-link a {
    color: #5a8a56;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #8acb8a;
}

footer {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .mixer-grid {
        grid-template-columns: 1fr;
    }
}