*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#dbe7f7;
    font-family:Arial,sans-serif;
}

/* FAN */
.fan{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
}

/* HEAD */
.head{
    width:240px;
    height:240px;
    border:8px solid #d8d3dd;
    border-radius:50%;
    background:#fafafe;
    position:relative;
    overflow:hidden;
}

/* BLADES */
.blades{
    position:absolute;
    inset:35px;
    border-radius:50%;
    z-index:2;

    background:conic-gradient(
        from 0deg,
        rgba(180,180,200,.45) 0deg 60deg,
        transparent 60deg 120deg,
        rgba(180,180,200,.45) 120deg 180deg,
        transparent 180deg 240deg,
        rgba(180,180,200,.45) 240deg 300deg,
        transparent 300deg 360deg
    );

    animation:spin 1s linear infinite;
    animation-play-state: paused;
}

.fan.on .blades{
    animation-play-state: running;
}

.fan.speed-1 .blades{ animation-duration: 1s; }
.fan.speed-2 .blades{ animation-duration: .5s; }
.fan.speed-3 .blades{ animation-duration: .2s; }

@keyframes spin{
    to{ transform:rotate(360deg); }
}

/* GRILL */
.grill{
    position:absolute;
    inset:12px;
    border-radius:50%;
    z-index:3;

    background:repeating-conic-gradient(
        from 0deg,
        transparent 0deg 7deg,
        #c8c4cf 7deg 10deg
    );
}

/* CENTER */
.center{
    position:absolute;
    width:90px;
    height:90px;
    background:#d8d3dd;
    border-radius:50%;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:5;
}

/* HANDLE */
.handle{
    width:78px;
    height:220px;
    background:#edf6ff;
    margin-top:-5px;
    border-radius:0 0 40px 40px;
    position:relative;
    box-shadow: inset -10px 0 15px rgba(0,0,0,.05);
}

/* BUTTON */
.button{
    width:24px;
    height:24px;
    background:#ffd8ea;
    border-radius:50%;
    position:absolute;
    left:50%;
    top:28px;
    transform:translateX(-50%);
    border:3px solid rgba(255,255,255,.8);
    cursor:pointer;
    transition:.2s;
}

.button:active{
    transform:translateX(-50%) scale(.9);
}

.fan.on .button{
    background:#ff84b7;
    box-shadow:0 0 12px #ff84b7;
}

/* DOTS */
.dots{
    position:absolute;
    left:50%;
    top:65px;
    transform:translateX(-50%);
    display:flex;
    gap:6px;
}

.dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#b8c0cc;
}

.fan.speed-1 .dot:nth-child(1),
.fan.speed-2 .dot:nth-child(1),
.fan.speed-3 .dot:nth-child(1){
    background:#ff84b7;
}

.fan.speed-2 .dot:nth-child(2),
.fan.speed-3 .dot:nth-child(2){
    background:#ff84b7;
}

.fan.speed-3 .dot:nth-child(3){
    background:#ff84b7;
}

/* ======================
   🌪️ CUTE STORM WIND
====================== */

.wind{
    position:absolute;
    top:35px;
    left:50%;
    width:320px;
    height:260px;
    transform:translateX(-50%);
    pointer-events:none;
    z-index:20;
    filter:blur(1px);
}

.wind::before,
.wind::after,
.wind span{
    content:"";
    position:absolute;
    left:50%;
    border-radius:999px;
    transform:translateX(-50%);
    opacity:0;
}

/* Main wind */
.wind::before{
    width:180px;
    height:10px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,.95),
        rgba(180,220,255,.8),
        transparent
    );
}

/* Secondary wind */
.wind::after{
    width:140px;
    height:8px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(220,240,255,.9),
        transparent
    );
}

/* Third stream */
.wind span{
    width:220px;
    height:6px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,.7),
        transparent
    );
}

/* Animate when ON */
.fan.on .wind::before{
    animation:stormWind 0.9s linear infinite;
}

.fan.on .wind::after{
    animation:stormWind 0.9s linear infinite .25s;
}

.fan.on .wind span{
    animation:stormWind 0.9s linear infinite .5s;
}

/* Speed effects */
.fan.speed-1 .wind{
    opacity:.4;
}

.fan.speed-2 .wind{
    opacity:.75;
}

.fan.speed-3 .wind{
    opacity:1;
}

/* Stronger wind at high speed */
.fan.speed-3 .wind::before,
.fan.speed-3 .wind::after,
.fan.speed-3 .wind span{
    filter:drop-shadow(0 0 8px rgba(180,220,255,.8));
}

@keyframes stormWind{
    0%{
        transform:
            translateX(-50%)
            translateY(0)
            scale(.4);
        opacity:0;
    }

    20%{
        opacity:1;
    }

    100%{
        transform:
            translateX(-50%)
            translateY(220px)
            scale(2.5);
        opacity:0;
    }
}

/* SHADOW */
.fan::after{
    content:"";
    position:absolute;
    bottom:-25px;
    width:180px;
    height:25px;
    background:rgba(0,0,0,.08);
    filter:blur(12px);
    border-radius:50%;
}