*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#0f172a;
    color:#fff;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.top{
    display:flex;
    justify-content:space-between;
    padding:20px;
}

.coins,
.level{
    background:#1e293b;
    padding:12px 18px;
    border-radius:15px;
    font-size:22px;
    font-weight:bold;
    box-shadow:0 0 15px rgba(0,255,255,.25);
}

.click-area{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

#clickButton{
    width:220px;
    height:220px;
    border:none;
    border-radius:50%;
    font-size:80px;
    cursor:pointer;
    background:linear-gradient(145deg,#ffcc00,#ff9800);
    transition:.12s;
    box-shadow:
        0 0 35px #ff9800,
        inset 0 0 20px rgba(255,255,255,.3);
}

#clickButton:hover{
    transform:scale(1.05);
}

#clickButton:active{
    transform:scale(.92);
}

.stats{
    text-align:center;
    font-size:22px;
    padding:20px;
    line-height:40px;
}

.bottom{
    display:flex;
    gap:15px;
    padding:20px;
}

.bottom button{
    flex:1;
    border:none;
    padding:18px;
    border-radius:15px;
    background:#2563eb;
    color:white;
    font-size:20px;
    cursor:pointer;
    transition:.2s;
}

.bottom button:hover{
    background:#1d4ed8;
}

.window{
    position:fixed;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:90%;
    max-width:420px;
    max-height:80vh;
    overflow:auto;
    background:#1e293b;
    border-radius:20px;
    padding:20px;
    box-shadow:0 0 35px rgba(0,0,0,.6);
    z-index:10;
}

.hidden{
    display:none;
}

.window h2{
    text-align:center;
    margin-bottom:20px;
}

.item{
    background:#334155;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
}

.item h3{
    margin-bottom:8px;
}

.item p{
    margin-bottom:12px;
    color:#ddd;
}

.buyBtn{
    width:100%;
    border:none;
    background:#10b981;
    color:white;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
    font-size:17px;
}

.buyBtn:hover{
    background:#059669;
}

.close{
    width:100%;
    margin-top:15px;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#ef4444;
    color:white;
    cursor:pointer;
}

.popup{
    position:absolute;
    color:#ffe600;
    font-size:24px;
    font-weight:bold;
    pointer-events:none;
    animation:fly .8s linear forwards;
}

@keyframes fly{
    0%{
        opacity:1;
        transform:translateY(0);
    }
    100%{
        opacity:0;
        transform:translateY(-80px);
    }
}

@media(max-width:480px){

#clickButton{
    width:170px;
    height:170px;
    font-size:60px;
}

.stats{
    font-size:18px;
}

.bottom button{
    font-size:17px;
}

}