body{
    background:#f7f8fc;
}

.hero-top{
    padding:90px 0 45px;
    text-align:center;
}

.hero-title{
    font-size:54px;
    font-weight:900;
    margin-bottom:15px;
    color:#111;
}

.hero-sub{
    font-size:18px;
    color:#666;
    max-width:850px;
    margin:auto;
    line-height:1.8;
}

.podium-wrapper{
    padding-bottom:55px;
}

.podium{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:30px;
    flex-wrap:wrap;
}

.rank-card{
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    position:relative;
    transition:.25s;
}

.rank-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 50px rgba(0,0,0,.12);
}

.rank-img{
    width:100%;
    height:280px;
    object-fit:cover;
    background:#f3f3f3;
}

.rank-content{
    padding:24px;
    text-align:center;
}

.first-place{
    width:380px;
    transform:translateY(-25px);
    border:4px solid #ffd700;
}

.second-place{
    width:315px;
    border:4px solid #d9d9d9;
}

.third-place{
    width:315px;
    border:4px solid #cd7f32;
}

.rank-badge{
    position:absolute;
    top:14px;
    left:14px;
    background:#fff;
    padding:10px 16px;
    border-radius:40px;
    font-size:16px;
    font-weight:900;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    z-index:5;
}

.crown{
    font-size:60px;
    margin-top:-15px;
    margin-bottom:10px;
}

.rank-name{
    font-size:28px;
    font-weight:900;
    margin-bottom:5px;
    color:#111;
}

.rank-race{
    font-size:15px;
    color:#777;
    margin-bottom:18px;
}

.stats-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:12px;
}

.stat-box{
    background:#f7f8fc;
    padding:12px;
    border-radius:18px;
    font-size:13px;
    font-weight:800;
    color:#222;
}

.total-points{
    background:#fff4d7;
    padding:15px;
    border-radius:20px;
    font-size:24px;
    font-weight:900;
    color:#b37b00;
    margin-top:12px;
}

.last-visit{
    margin-top:12px;
    color:#666;
    font-size:14px;
    font-weight:700;
}

.rank-level{
    margin-top:14px;
    font-weight:900;
    font-size:15px;
}

.rest-wrapper{
    padding:10px 0 70px;
}

.rest-title{
    text-align:center;
    margin-bottom:35px;
}

.rest-title h2{
    font-size:36px;
    font-weight:900;
    color:#111;
}

.rest-title p{
    color:#666;
    margin:0;
}

.small-rank-card{
    background:#fff;
    border-radius:22px;
    padding:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.07);
    height:100%;
    display:flex;
    align-items:center;
    gap:16px;
    transition:.2s;
    border:1px solid #eef0f5;
}

.small-rank-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 38px rgba(0,0,0,.10);
}

.small-photo{
    width:94px;
    height:94px;
    border-radius:22px;
    object-fit:cover;
    background:#f3f3f3;
    flex-shrink:0;
}

.small-info{
    flex:1;
    min-width:0;
}

.small-position{
    display:inline-block;
    background:#111827;
    color:#fff;
    font-size:13px;
    font-weight:900;
    padding:5px 10px;
    border-radius:999px;
    margin-bottom:8px;
}

.small-name{
    font-size:20px;
    font-weight:900;
    color:#111;
    margin-bottom:3px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.small-race{
    color:#777;
    font-size:14px;
    margin-bottom:10px;
}

.small-stats{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.small-stat{
    background:#f7f8fc;
    border-radius:999px;
    padding:6px 10px;
    font-size:13px;
    font-weight:800;
    color:#333;
}

.empty-box{
    background:#fff;
    border-radius:30px;
    padding:50px 25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.07);
}

.empty-box h2{
    font-weight:900;
    margin-bottom:10px;
}

.info-box{
    background:#fff;
    border-radius:34px;
    padding:38px;
    box-shadow:0 10px 30px rgba(0,0,0,.07);
    text-align:center;
}

.legend-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:25px;
}

.legend-item{
    background:#f7f8fc;
    padding:18px;
    border-radius:20px;
    font-weight:800;
}

@media(max-width:991px){
    .podium{
        flex-direction:column;
        align-items:center;
    }

    .first-place,
    .second-place,
    .third-place{
        width:100%;
        max-width:390px;
        transform:none;
    }

    .hero-title{
        font-size:38px;
    }

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

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

@media(max-width:575px){
    .hero-top{
        padding:60px 0 35px;
    }

    .hero-title{
        font-size:32px;
    }

    .hero-sub{
        font-size:16px;
    }

    .small-rank-card{
        align-items:flex-start;
    }

    .small-photo{
        width:78px;
        height:78px;
        border-radius:18px;
    }

    .small-name{
        font-size:18px;
    }

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