
@keyframes float-up {
    0% { 
        transform: translateY(0) scale(1); 
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-300px) scale(1.5); 
        opacity: 0;
    }
}

.bubble {
    animation: float-up 4s linear forwards;
    filter: blur(1px);
}
0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-50px) scale(1.1) rotate(10deg); }
    100% { transform: translateY(-100px) scale(1.2) rotate(-5deg); opacity: 0; }
}

@keyframes waterFlow {
    0% { transform: translateY(0) scaleX(0.8); }
    50% { transform: translateY(-10px) scaleX(1.2); }
    100% { transform: translateY(-20px) scaleX(0.8); }
}
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}
.dish-container {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 1;
}
.dirty-dish, .clean-dish {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.dirty-dish {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2)) brightness(0.9) contrast(1.1);
}

.clean-dish {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2)) brightness(1.1);
}
.dirty-dish {
    transition: opacity 0.5s;
}
.food-stain {
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    mix-blend-mode: multiply;
    transform-origin: center;
}

.food-stain:hover {
    transform: scale(1.05);
}
.scrub-effect {
    animation: scrub 0.2s forwards;
}

@keyframes scrub {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}
.dish.inactive {
    filter: grayscale(80%) brightness(0.7);
    cursor: not-allowed;
}
.dish:hover {
    transform: scale(1.1);
}

.dish.clean {
    animation: bubble 0.5s forwards;
}

.dish.dirty {
    animation: wobble 0.5s infinite;
}
.water-splash {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 5%, 
        rgba(173, 216, 230, 0.8) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: splash 0.6s forwards;
    filter: blur(1px);
}

.soap-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatUp 3s ease-in forwards;
}
@keyframes splash {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes dishwasherWash {
    0% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-5px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0); }
    75% { transform: translateY(-5px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0); }
}
.dishwasher-dish, .laundry-basket {
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.laundry-basket {
    transition: all 0.3s;
}

.laundry-basket:hover {
    transform: scale(1.1);
}

.laundry-item {
    transition: all 0.5s;
}
.dishwasher-stain {
    opacity: 0.8;
    transition: all 0.5s;
    mix-blend-mode: multiply;
}
@keyframes dry {
    0% { transform: scale(0.5) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

@keyframes soap {
    0% { transform: scale(0.5); opacity: 1; background-color: rgba(255, 255, 255, 0.8); }
    50% { transform: scale(1.2); background-color: rgba(173, 216, 230, 0.8); }
    100% { transform: scale(1.5); opacity: 0; background-color: rgba(255, 255, 255, 0.8); }
}

.soap-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    pointer-events: none;
    animation: soap 0.8s forwards;
}

.progress-container {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #8b5cf6;
    transition: width 0.3s;
}

.dish.golden {
    filter: drop-shadow(0 0 10px gold);
}

.dish.dirty {
    filter: brightness(0.8) contrast(1.2);
}
.tool-indicator {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.dry-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.8) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: dry 0.6s forwards;
}
.tool-btn {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-size: 70%;
    background-color: #f8fafc;
    background-repeat: no-repeat;
    background-position: center;
    border: 3px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tool-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.tool-btn:hover {
    transform: scale(1.1);
}

.tool-btn.active {
    border-color: #ec4899;
    box-shadow: 0 0 10px #ec4899;
}

.tool-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn-wrapper.active .tool-btn {
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    transform: scale(1.1);
}

.tool-btn-wrapper.active .tool-label {
    color: #ec4899;
    font-weight: 700;
}

.tool-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.spit-tool {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    background-image: none !important;
}

.soap-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
    background: white;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.soap-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.soap-btn.active {
    background: linear-gradient(135deg, #fdf2f8, #ede9fe);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
    transform: scale(1.05);
}

.soap-icon {
    font-size: 28px;
    margin-bottom: 2px;
}

.soap-label {
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.soap-bonus {
    font-size: 10px;
    color: #8b5cf6;
    font-weight: 600;
}

.gunk-overlay {
    transition: opacity 0.15s ease-out;
}

.gunk-splotch {
    transition: opacity 0.2s, transform 0.3s;
}

@keyframes spitSplash {
    0% { transform: scale(0.3); opacity: 0.9; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.spit-splash {
    animation: spitSplash 0.4s forwards;
}

@keyframes sparkle {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.downy-sparkle {
    animation: sparkle 0.8s forwards;
    pointer-events: none;
}

.gunk-overlay {
    transition: opacity 0.15s ease-out;
    z-index: 5;
}

.gunk-clump {
    transition: opacity 0.2s, transform 0.2s;
}

.soap-sidebar {
    transition: all 0.3s;
}

.soap-brand {
    transition: all 0.2s;
    border: 2px solid transparent;
}

.soap-brand:hover {
    transform: scale(1.05);
}

.soap-brand.active-soap {
    box-shadow: 0 0 15px currentColor;
}

.toolbar {
    background: linear-gradient(to right, #1f2937, #111827);
}

.tool-wrapper .tool-btn.active {
    border-color: #ec4899 !important;
    box-shadow: 0 0 10px #ec4899;
}

.soap-foam-bubble {
    pointer-events: none;
    z-index: 6;
}
