*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:'Segoe UI',sans-serif;
}

body{
    height:100vh;
    background:#121417;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:0.5s;
}

.container{
    width:100%;
    max-width:400px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:60px;
    padding:20px;
}

/* LAMPA */
.lamp{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.shade{
    width:150px;
    height:80px;
    background:#f1f1f1;
    border-radius:90px 90px 10px 10px;
    z-index:2;
    transition:0.5s;
}
.pole{
    width:8px;
    height:110px;
    background:#f1f1f1;
}
.base{
    width:100px;
    height:15px;
    background:linear-gradient(90deg,#d4af37,#f7e27a);
    border-radius:50px;
}
.chain{
    position:absolute;
    top:80px;
    right:50%;
    transform:translateX(40px);
    width:3px;
    height:70px;
    background:repeating-linear-gradient(
        to bottom,
        #d4af37,
        #d4af37 4px,
        transparent 4px,
        transparent 8px
    );
    cursor:pointer;
}
.chain::after{
    content:"";
    position:absolute;
    bottom:-8px;
    left:50%;
    transform:translateX(-50%);
    width:12px;
    height:12px;
    background:#d4af37;
    border-radius:50%;
}

/* CARD */
.card{
    width:100%;
    padding:30px;
    border-radius:20px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    opacity:0;
    transform:translateY(20px);
    transition:0.5s;
}
.card.active{
    opacity:1;
    transform:translateY(0);
}
.card h2{
    color:white;
    text-align:center;
    margin-bottom:15px;
}
input{
    width:100%;
    padding:15px;
    font-size:22px;
    text-align:center;
    letter-spacing:10px;
    border:none;
    border-radius:10px;
    background:#2a2d33;
    color:white;
    margin-bottom:15px;
}
button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,#d4af37,#f7e27a);
    font-weight:bold;
    cursor:pointer;
}
.error{
    color:#ff4d4d;
    text-align:center;
    margin-bottom:10px;
    min-height:20px;
}

/* SHAKE i FLASH */
@keyframes shake{
    0%{transform:translateX(0);}
    20%{transform:translateX(-6px);}
    40%{transform:translateX(6px);}
    60%{transform:translateX(-6px);}
    80%{transform:translateX(6px);}
    100%{transform:translateX(0);}
}
.shake{
    animation:shake 0.35s;
}
@keyframes flash{
    0%{opacity:0;}
    50%{opacity:1;}
    100%{opacity:1;}
}
.flash{
    animation:flash 0.3s;
}

/* MOBILNE DOPASOWANIE */
@media (max-width:400px){
    .container{
        gap:40px;
        padding:15px;
    }

    /* LAMPA */
    .shade{
        width:120px;
        height:70px;
        border-radius:70px 70px 10px 10px;
    }
    .pole{
        width:6px;
        height:90px;
    }
    .base{
        width:80px;
        height:12px;
    }
    .chain{
        top:70px;
        transform:translateX(36px);
        height:60px;
    }
    .chain::after{
        bottom:-6px;
        width:10px;
        height:10px;
    }

    /* KARTA / INPUT */
    input{
        font-size:20px;
        padding:12px;
        letter-spacing:8px;
    }
}