/* Holi Effect Styles */
#holi-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999998;
    pointer-events: none;
    display: none;
}

#holi-canvas.active {
    pointer-events: auto;
    display: block;
    cursor: crosshair;
}

.holi-trigger {
    position: fixed;
    bottom: 130px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.holi-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

/* High-Fidelity Gulal Bowls */
.gulal-container {
    position: relative;
    width: 60px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bowl-wrapper {
    position: absolute;
    width: 32px;
    height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.powder-pile {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 22px solid;
    margin-bottom: -5px;
    filter: contrast(1.1);
}

.bowl-base {
    width: 30px;
    height: 12px;
    background: #757575;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #9e9e9e;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Specific Bowl Positions & Colors */
.bowl-1 {
    bottom: 0;
    left: 0;
    z-index: 2;
    transform: scale(1.1);
}

.bowl-1 .powder-pile {
    border-bottom-color: #e91e63;
}

/* Pink */

.bowl-2 {
    bottom: 0;
    right: 0;
    z-index: 2;
    transform: scale(1.15);
}

.bowl-2 .powder-pile {
    border-bottom-color: #ffeb3b;
}

/* Yellow */

.bowl-3 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.bowl-3 .powder-pile {
    border-bottom-color: #2196f3;
}

/* Blue */

#holi-wash {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #2196f3;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

#holi-wash.active {
    display: flex;
    transform: translateX(-50%) scale(1);
}

#holi-wash:hover {
    background: #bbdefb;
    transform: translateX(-50%) scale(1.1);
}

/* Water Wash Animation Overlay */
#wash-overlay {
    position: fixed;
    top: -110%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #87cefa;
    /* Sky Blue */
    z-index: 1000001;
    transition: top 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#wash-overlay::after {
    content: '';
    position: absolute;
    bottom: -50px;
    /* Peak out from the bottom */
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V0C48.1,6,108.31,16.51,170,23.5c41.31,4.68,85.25,5.19,151.39,32.94Z' fill='%2387cefa'/%3E%3C/svg%3E");
    background-size: 100% 50px;
    background-repeat: no-repeat;
}

#wash-overlay.washing {
    top: 0;
}

#wash-overlay.finishing {
    opacity: 0;
}

/* Holi Balloon Projectile */
.holi-balloon {
    position: fixed;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999997;
    /* Just below the canvas */
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.3), inset 5px 5px 10px rgba(255, 255, 255, 0.4);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Instruction Labels */
.holi-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.holi-trigger:hover .holi-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

#holi-wash:hover .holi-label {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

.holi-trigger .holi-label {
    bottom: 100%;
    right: 0;
    transform: translateY(0);
}

#holi-wash .holi-label {
    bottom: 110%;
    left: 50%;
    transform: translate(-50%, 0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .holi-trigger,
    #holi-wash {
        width: 50px;
        height: 50px;
        font-size: 20px;
        left: 15px;
    }

    .holi-trigger {
        bottom: 120px;
    }

    #holi-wash {
        bottom: 65px;
    }
}