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

body {
    overflow: hidden;
    height: 100vh;
    background-color: #fff;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* =================== */
/* Nozzle              */
/* =================== */

.nozzle-wrapper {
    position: fixed;
    bottom: -20px;
    right: 180px;
    z-index: 50;
    transform-origin: bottom center;
    transition: transform 0.4s ease-out;
}

/* Resting: drooped down */
.nozzle-wrapper.idle {
    transform: rotate(25deg);
}

/* Spraying: lifts up and aims at viewer */
.nozzle-wrapper.spraying {
    transform: rotate(-15deg);
    transition: transform 0.2s ease-out;
}

.nozzle-img {
    width: 300px;
    height: auto;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}

/* =================== */
/* Flying droplets     */
/* =================== */

.droplets-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 40;
}

.droplet {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: fly-droplet var(--duration) var(--delay) ease-out forwards;
    width: var(--size);
    height: var(--size);
}

/* Different droplet styles for variety */
.droplet.light {
    background: radial-gradient(circle at 35% 35%,
        rgba(255, 255, 255, 0.9),
        rgba(160, 210, 255, 0.6) 50%,
        rgba(100, 170, 240, 0.3)
    );
    box-shadow: 0 0 4px rgba(100, 180, 255, 0.4);
}

.droplet.medium {
    background: radial-gradient(circle at 30% 30%,
        rgba(220, 240, 255, 0.95),
        rgba(80, 160, 230, 0.7) 60%,
        rgba(50, 120, 200, 0.4)
    );
    box-shadow: 0 0 6px rgba(80, 160, 230, 0.5);
}

.droplet.heavy {
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 1),
        rgba(60, 140, 220, 0.8) 50%,
        rgba(30, 100, 190, 0.5)
    );
    box-shadow: 0 0 8px rgba(60, 140, 220, 0.6);
}

@keyframes fly-droplet {
    0% {
        opacity: 0.9;
        transform: translate(0, 0) scale(0.3);
    }
    40% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.15;
        transform: translate(var(--end-x), var(--end-y)) scale(1);
    }
}

/* =================== */
/* Wet screen          */
/* =================== */

.wet-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
}

/* Water streak running down the screen */
.water-streak {
    position: absolute;
    top: -10px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        rgba(100, 175, 255, 0.5),
        rgba(100, 175, 255, 0.3) 30%,
        rgba(100, 175, 255, 0.15) 60%,
        rgba(100, 175, 255, 0.05) 90%,
        transparent
    );
    animation: streak-down var(--streak-duration) var(--streak-delay) ease-in forwards;
    opacity: 0;
}

@keyframes streak-down {
    0% {
        opacity: 0;
        height: 0;
        top: var(--streak-start);
    }
    10% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.2;
        height: var(--streak-length);
        top: var(--streak-start);
    }
}

/* Splatter drops that stick on impact */
.splatter {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,
        rgba(255, 255, 255, 0.85),
        rgba(120, 190, 255, 0.5) 50%,
        rgba(80, 155, 235, 0.25)
    );
    box-shadow:
        inset 0 -1px 3px rgba(255, 255, 255, 0.4),
        0 1px 6px rgba(80, 155, 235, 0.3);
    animation: splatter-appear 0.15s ease-out forwards;
}

@keyframes splatter-appear {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

/* =================== */
/* Blue wash overlay   */
/* =================== */

.blue-wash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 170, 240, 0);
    pointer-events: none;
    z-index: 25;
    transition: background 1.5s ease-in;
}

.blue-wash.active {
    background: rgba(100, 170, 240, 0.22);
}

/* =================== */
/* Message             */
/* =================== */

.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: #1a5a8a;
    text-shadow: 0 2px 20px rgba(30, 100, 180, 0.3);
    z-index: 35;
    opacity: 0;
    transition: opacity 1.5s ease-in;
    white-space: nowrap;
    direction: rtl;
    user-select: none;
    pointer-events: none;
}

.message.visible {
    opacity: 1;
}

/* =================== */
/* Sound toggle        */
/* =================== */

.sound-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: transform 0.2s;
}

.sound-toggle:hover {
    transform: scale(1.1);
}

.sound-toggle img {
    width: 24px;
    height: 24px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s;
}

.sound-toggle img.active {
    opacity: 1;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #ccc;
    z-index: 1;
    letter-spacing: 0.5px;
    direction: ltr;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #999;
}

/* =================== */
/* Mobile              */
/* =================== */

@media (max-width: 768px) {
    .nozzle-wrapper {
        bottom: 15px;
        right: 15px;
    }

    .nozzle-img {
        width: 220px;
    }

    .message {
        font-size: 3.5rem;
    }

    .sound-toggle {
        width: 36px;
        height: 36px;
        top: 10px;
        left: 10px;
    }

    .sound-toggle img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .nozzle-img {
        width: 180px;
    }

    .message {
        font-size: 2.8rem;
    }

    .sound-toggle {
        width: 32px;
        height: 32px;
        top: 8px;
        left: 8px;
    }

    .sound-toggle img {
        width: 18px;
        height: 18px;
    }
}
