.discomfort-stack-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.discomfort-stack-svg {
    width: 100%;
    height: 350px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.discomfort-block {
    rx: 6;
    ry: 6;
}

.discomfort-block.green {
    fill: #55ccaa;
}

.discomfort-block.red {
    fill: #fb7179;
}

.popping {
    animation: block-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes block-pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.falling {
    animation: block-fall-off 0.8s ease-in forwards;
}

@keyframes block-fall-off {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(300px, 400px) rotate(45deg); opacity: 0; }
}

.bracket-line {
    fill: none;
    stroke: #ccc;
    stroke-width: 2;
}

.bracket-text {
    font-size: 12px;
    font-weight: 600;
    fill: #888;
}

.waveform-path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.waveform-path.green {
    stroke: rgba(85, 204, 170, 0.4);
}

.waveform-path.red {
    stroke: rgba(251, 113, 121, 0.6);
}

.discomfort-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.discomfort-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #eee;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.discomfort-btn.clean {
    border-color: #55ccaa;
    color: #44aa88;
}

.discomfort-btn.dirty {
    border-color: #fb7179;
    color: #d65a62;
}

.discomfort-btn.recovery {
    background: #9187d3;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
}

.discomfort-btn.recovery:hover {
    background: #776ac8;
    transform: scale(1.05);
}

.recovery-slider-container {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.recovery-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #eee;
    outline: none;
}

.recovery-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #9187d3;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.play-btn {
    background: #9187d3;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}
