
body{
    margin:0;
    background:#080808;
    font-family:Arial, sans-serif;
    overflow-x:hidden;
}

#pk-wrap{
    width:100%;
    min-height:100vh;
    background:
    radial-gradient(circle at top,#1e1e1e,#090909 70%);
    color:white;
}

.top-ui{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 40px;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(10px);
    border-bottom:2px solid rgba(255,215,0,0.2);
}

.logo{
    font-size:48px;
    font-weight:900;
    color:#ffd700;
    text-shadow:0 0 20px rgba(255,215,0,0.5);
}

.logo span{
    display:block;
    font-size:16px;
    color:#fff;
    letter-spacing:5px;
}

.right-ui{
    display:flex;
    gap:20px;
}

.timer-box,
.balance-box{
    background:#111;
    padding:15px 30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 0 25px rgba(255,255,255,0.08);
}

.timer-box div,
.balance-box div{
    font-size:36px;
    font-weight:bold;
    margin-top:5px;
}

.betting-panel{
    width:90%;
    margin:30px auto;
    background:rgba(20,20,20,0.85);
    border-radius:30px;
    padding:30px;
    box-shadow:0 0 40px rgba(0,0,0,0.5);
}

.bet-title{
    font-size:32px;
    font-weight:bold;
    margin-bottom:25px;
    color:#ffcc00;
}

.horses-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.horse-card{
    background:linear-gradient(145deg,#1a1a1a,#262626);
    border:2px solid rgba(255,255,255,0.08);
    border-radius:25px;
    padding:25px;
    cursor:pointer;
    transition:0.25s;
    position:relative;
    overflow:hidden;
}

.horse-card:hover{
    transform:translateY(-5px);
}

.horse-card.active{
    border:2px solid #ffd700;
    box-shadow:0 0 25px rgba(255,215,0,0.4);
}

.num{
    position:absolute;
    top:15px;
    right:20px;
    font-size:42px;
    font-weight:bold;
    opacity:0.15;
}

.name{
    font-size:28px;
    font-weight:bold;
}

.odds{
    margin-top:10px;
    color:#00ff90;
    font-size:22px;
}

.bet-controls{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:30px;
}

.bet-controls input{
    width:220px;
    padding:18px;
    font-size:22px;
    border:none;
    border-radius:15px;
}

#betBtn{
    padding:18px 35px;
    font-size:22px;
    border:none;
    border-radius:15px;
    background:linear-gradient(45deg,#ff0000,#ff6b00);
    color:white;
    cursor:pointer;
    font-weight:bold;
}

#winnerBoard{
    text-align:center;
    font-size:54px;
    font-weight:bold;
    padding:20px;
    color:#ffd700;
    text-shadow:0 0 20px rgba(255,215,0,0.5);
}

#stadium{
    width:100%;
    height:850px;
    perspective:1200px;
    overflow:hidden;
}

.track-perspective{
    position:relative;
    width:140%;
    height:100%;
    left:-10%;
    transform:rotateX(65deg);
    transform-style:preserve-3d;
    background:
    linear-gradient(#1d7c26,#0f5316);
    border-top:10px solid #5c3b11;
}

.finish-line{
    position:absolute;
    right:180px;
    top:0;
    width:18px;
    height:100%;
    background:
    repeating-linear-gradient(
        white 0px,
        white 30px,
        black 30px,
        black 60px
    );
    z-index:50;
}

.lane{
    position:relative;
    width:100%;
    height:140px;
    border-bottom:4px dashed rgba(255,255,255,0.2);
}

.horse{
    position:absolute;
    left:60px;
    top:25px;
    font-size:90px;
    transition:transform 0.08s linear;
    filter:drop-shadow(0 15px 10px rgba(0,0,0,0.5));
}

@media(max-width:900px){

    .horses-grid{
        grid-template-columns:1fr;
    }

    .logo{
        font-size:32px;
    }

    #winnerBoard{
        font-size:34px;
    }

}
