*{box-sizing:border-box}

:root{
    --bg:#f5f7fb;
    --card:#fff;
    --text:#101828;
    --muted:#667085;
    --line:#e4e7ec;
    --dark:#101828;
    --orange:#ff8a00;
    --green:#07883b;
    --gold:#f5b700;
    --silver:#94a3b8;
    --bronze:#b87333;
}

html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
    line-height:1.5;
}

.hero{
    position:relative;
    background:var(--dark);
    color:#fff;
    padding:0 0 62px;
}

.hero:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:5px;
    background:linear-gradient(
        to right,
        var(--orange) 0 33.333%,
        #fff 33.333% 66.666%,
        var(--green) 66.666% 100%
    );
}

.nav,
.hero-content,
.section,
.footer-inner{
    width:min(1040px,calc(100% - 40px));
    margin-left:auto;
    margin-right:auto;
}

.nav{
    padding-top:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:800;
}

.brand span{
    font-size:18px;
}

.year{
    padding:6px 11px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    background:rgba(255,255,255,.06);
    color:#d0d5dd;
    font-size:11px;
    font-weight:800;
}

.hero-content{
    padding-top:82px;
    text-align:center;
}

.tag,
.eyebrow{
    margin:0;
    color:#ffad32;
    font-size:11px;
    font-weight:900;
    letter-spacing:.14em;
}

.hero h1{
    margin:17px 0 20px;
    font-size:clamp(48px,7vw,78px);
    line-height:.95;
    letter-spacing:-.06em;
}

.hero h1 span{
    color:#f2f4f7;
}

.subtitle{
    margin:0;
    color:#cbd5e1;
    font-size:15px;
}

.stats{
    width:min(690px,100%);
    margin:38px auto 0;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    overflow:hidden;
    background:rgba(255,255,255,.045);
}

.stat{
    padding:18px 12px;
    text-align:center;
}

.stat+.stat{
    border-left:1px solid rgba(255,255,255,.12);
}

.stat strong{
    display:block;
    font-size:20px;
    font-weight:900;
}

.stat span{
    display:block;
    margin-top:3px;
    color:#98a2b3;
    font-size:9px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.section{
    margin-top:68px;
}

.podium-section{
    margin-top:64px;
}

.intro{
    margin-bottom:28px;
}

.center{
    text-align:center;
}

.intro h2{
    margin:5px 0 7px;
    font-size:clamp(29px,4vw,39px);
    line-height:1.05;
    letter-spacing:-.045em;
}

.intro p:last-child{
    margin:0;
    color:var(--muted);
    font-size:13px;
}

.podium{
    display:grid;
    grid-template-columns:1fr 1.08fr 1fr;
    grid-template-areas:"second first third";
    align-items:end;
    gap:18px;
}

.podium-card{
    position:relative;
    padding:27px 20px 21px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:21px;
    box-shadow:0 14px 38px rgba(16,24,40,.07);
    text-align:center;
}

.podium-card.first{grid-area:first;border:2px solid rgba(245,183,0,.7);padding-top:34px}
.podium-card.second{grid-area:second;border-color:rgba(148,163,184,.65)}
.podium-card.third{grid-area:third;border-color:rgba(184,115,51,.55)}

.podium-card.first:before,
.podium-card.second:before,
.podium-card.third:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    border-radius:20px 20px 0 0;
}

.podium-card.first:before{background:var(--gold)}
.podium-card.second:before{background:var(--silver)}
.podium-card.third:before{background:var(--bronze)}

.medal{
    font-size:43px;
    line-height:1;
}

.place{
    margin:9px 0 7px;
    color:var(--muted);
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.podium-name{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow-wrap:anywhere;
    font-size:18px;
    font-weight:900;
}

.podium-score{
    margin-top:10px;
    font-size:30px;
    font-weight:900;
    letter-spacing:-.04em;
}

.podium-percent{
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}

.podium-time{
    margin-top:16px;
    padding-top:12px;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:12px;
}

.leaderboard-section{
    margin-top:76px;
    margin-bottom:76px;
}

.table-card{
    overflow:hidden;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 8px 26px rgba(16,24,40,.04);
}

.mobile-note{
    display:none;
    padding:10px 14px;
    background:#f8fafc;
    border-bottom:1px solid var(--line);
    color:var(--muted);
    font-size:11px;
    text-align:center;
}

.table-scroll{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

table{
    width:100%;
    min-width:650px;
    border-collapse:collapse;
}

th{
    padding:14px 20px;
    background:#f8fafc;
    color:var(--muted);
    font-size:9px;
    font-weight:900;
    letter-spacing:.11em;
    text-align:left;
    text-transform:uppercase;
}

td{
    padding:16px 20px;
    border-top:1px solid var(--line);
    font-size:13px;
}

tbody tr:hover{
    background:#fbfcfe;
}

.rank-badge{
    display:inline-flex;
    min-width:36px;
    height:27px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#f2f4f7;
    font-size:10px;
    font-weight:900;
}

.top-rank .rank-badge{
    background:#fff7ed;
    color:var(--orange);
}

.name{
    font-weight:800;
    overflow-wrap:anywhere;
}

.score,
.percent{
    font-weight:900;
    white-space:nowrap;
}

.time{
    color:var(--muted);
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}

footer{
    background:var(--dark);
    color:#98a2b3;
}

.footer-inner{
    min-height:92px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    font-size:12px;
}

.footer-inner strong{
    color:#fff;
}

@media(max-width:800px){
    .podium{
        grid-template-columns:1fr;
        grid-template-areas:
            "first"
            "second"
            "third";
        max-width:620px;
        margin:auto;
    }
}

@media(max-width:560px){
    .nav,
    .hero-content,
    .section,
    .footer-inner{
        width:calc(100% - 24px);
    }

    .hero{
        padding-bottom:48px;
    }

    .hero-content{
        padding-top:64px;
    }

    .hero h1{
        font-size:clamp(43px,14vw,64px);
    }

    .tag{
        font-size:9px;
    }

    .subtitle{
        font-size:13px;
    }

    .stats{
        margin-top:30px;
    }

    .stat{
        padding:15px 6px;
    }

    .stat strong{
        font-size:17px;
    }

    .stat span{
        font-size:8px;
        letter-spacing:.04em;
    }

    .section{
        margin-top:48px;
    }

    .podium-section{
        margin-top:44px;
    }

    .leaderboard-section{
        margin-top:58px;
        margin-bottom:55px;
    }

    .podium-card{
        border-radius:18px;
    }

    .mobile-note{
        display:block;
    }

    footer .footer-inner{
        min-height:88px;
        flex-direction:column;
        justify-content:center;
        gap:4px;
        text-align:center;
    }
}

@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
}
