.casino-wrapper{
    max-width:1200px;
    margin:0 auto;
    padding:60px 20px;
    text-align:center;
}

.casino-wrapper h2{
    font-size:64px;
    font-weight:800;
    margin-bottom:50px;
    line-height:1.1;
}

.coin-stage{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:50px;
    perspective:1200px;
}

.coin{
    width:260px;
    height:260px;
    position:relative;
    transform-style:preserve-3d;
    transition:transform 3s cubic-bezier(.17,.67,.35,1);
    cursor:pointer;
}

.coin-face{
    position:absolute;
    inset:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:90px;
    font-weight:800;
    color:#1e293b;
    backface-visibility:hidden;
    background:
        radial-gradient(circle at 30% 30%, #fff6b7 0%, #ffd700 25%, #ffb700 60%, #d18b00 100%);
    border:10px solid #f6c344;
    box-shadow:
        inset 0 6px 20px rgba(255,255,255,.5),
        inset 0 -12px 25px rgba(0,0,0,.15),
        0 25px 60px rgba(0,0,0,.25);
}

.coin-face::before{
    content:'';
    position:absolute;
    inset:12px;
    border-radius:50%;
    border:4px dashed rgba(255,255,255,.4);
}

.coin-back{
    transform:rotateY(180deg);
}

#flipCoin{
    border:none;
    outline:none;
    padding:18px 42px;
    font-size:20px;
    font-weight:700;
    border-radius:16px;
    cursor:pointer;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    box-shadow:0 15px 35px rgba(37,99,235,.35);
    transition:all .3s ease;
    margin-top:10px;
    margin-bottom:30px;
}

#flipCoin:hover{
    transform:translateY(-3px);
}

#flipCoin:active{
    transform:translateY(1px);
}

#result{
    font-size:48px;
    font-weight:800;
    margin-top:10px;
    margin-bottom:30px;
}

#history{
    max-width:900px;
    margin:30px auto 0;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}

.history-item{
    min-width:100px;
    padding:12px 18px;
    border-radius:12px;
    background:#111827;
    color:#fff;
    font-weight:700;
}

@media(max-width:992px){

    .casino-wrapper h2{
        font-size:48px;
    }

    .coin{
        width:220px;
        height:220px;
    }

    .coin-face{
        font-size:75px;
    }

    #result{
        font-size:40px;
    }
}

@media(max-width:768px){

    .casino-wrapper{
        padding:40px 15px;
    }

    .casino-wrapper h2{
        font-size:36px;
    }

    .coin{
        width:180px;
        height:180px;
    }

    .coin-face{
        font-size:60px;
    }

    #flipCoin{
        width:100%;
        max-width:280px;
    }

    #result{
        font-size:32px;
    }
}