/* ======================================================
   BULLFROG — LEADERBOARD V3
   KING OF THE LAKE ARENA
====================================================== */

:root{
    --lb-bg:#010604;
    --lb-panel:rgba(4,15,10,.77);
    --lb-panel2:rgba(7,25,16,.72);

    --lb-text:#f5fff7;
    --lb-muted:#7d9084;

    --lb-lime:#c8ff4d;
    --lb-green:#6dff9b;
    --lb-gold:#e8c76c;
    --lb-aqua:#58ead4;

    --lb-line:rgba(194,255,105,.13);
    --lb-gold-line:rgba(232,199,108,.18);
    --lb-line2:rgba(255,255,255,.055);
}

body.leaderboard-v3-loaded{
    background:#010604 !important;
}

/* ======================================================
   AMBIENT ARENA
====================================================== */

#leaderboardV3Glow{
    position:fixed;
    inset:0;
    z-index:-30;
    pointer-events:none;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(232,199,108,.09),
            transparent 27%
        ),
        radial-gradient(
            circle at 75% 36%,
            rgba(195,255,75,.07),
            transparent 31%
        ),
        radial-gradient(
            circle at 12% 76%,
            rgba(81,234,203,.04),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(1,8,5,.15),
            rgba(1,5,3,.91) 73%,
            #010403
        );
}

#leaderboardV3Particles{
    position:fixed;
    inset:0;
    z-index:-29;
    pointer-events:none;

    background-size:cover;
    background-position:center;

    opacity:.18;
    mix-blend-mode:screen;
}

/* ======================================================
   HERO ARENA
====================================================== */

.leaderboard-v3-hero{
    width:min(1340px,calc(100% - 28px));

    min-height:min(750px,calc(100vh - 105px));

    margin:112px auto 14px;

    position:relative;
    overflow:hidden;

    display:flex;
    align-items:flex-end;

    border-radius:34px;

    border:
        1px solid
        rgba(232,199,108,.18);

    background:#030c08;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 55px 150px rgba(0,0,0,.56);
}

.leaderboard-v3-hero-bg{
    position:absolute;
    inset:0;

    background-size:cover;
    background-position:center;

    opacity:.68;

    filter:
        brightness(.50)
        saturate(.85)
        contrast(1.12);
}

.leaderboard-v3-hero-bg:after{
    content:"";

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            90deg,
            rgba(1,7,4,.88) 0%,
            rgba(1,7,4,.62) 42%,
            rgba(1,7,4,.24) 73%,
            rgba(1,7,4,.48)
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,.04),
            rgba(1,6,4,.92) 88%,
            #010403
        );
}

.leaderboard-v3-hero-grid{
    position:relative;
    z-index:3;

    width:100%;

    display:grid;
    grid-template-columns:.95fr 1.05fr;
    gap:24px;

    align-items:end;

    padding:clamp(28px,5vw,60px);
}

.leaderboard-v3-kicker{
    color:var(--lb-gold);

    font-size:9px;
    font-weight:950;
    letter-spacing:.20em;
}

.leaderboard-v3-title{
    margin:15px 0 17px;

    color:#fff;

    font-size:clamp(65px,8.3vw,116px);
    line-height:.78;
    letter-spacing:-.085em;
}

.leaderboard-v3-title span{
    color:var(--lb-gold);
}

.leaderboard-v3-copy{
    max-width:690px;

    margin:0;

    color:#a2b3a8;

    font-size:clamp(14px,1.4vw,17px);
    line-height:1.7;
}

.leaderboard-v3-actions{
    display:flex;
    flex-wrap:wrap;

    gap:8px;

    margin-top:25px;
}

.leaderboard-v3-action{
    min-height:51px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 18px;

    border-radius:14px;

    text-decoration:none;

    color:#fff;

    border:1px solid rgba(232,199,108,.18);

    background:rgba(2,12,7,.56);

    backdrop-filter:blur(15px);

    font-size:9px;
    font-weight:950;
    letter-spacing:.10em;

    transition:
        transform .18s ease,
        border-color .18s ease;
}

.leaderboard-v3-action:hover{
    transform:translateY(-2px);
    border-color:rgba(232,199,108,.36);
}

.leaderboard-v3-action.primary{
    color:#120f04;

    border:0;

    background:
        linear-gradient(
            135deg,
            #f1d981,
            var(--lb-gold)
        );
}

/* ======================================================
   KING CHAMBER
====================================================== */

.leaderboard-v3-king{
    padding:20px;

    border-radius:23px;

    border:
        1px solid
        rgba(232,199,108,.13);

    background:
        rgba(0,10,6,.67);

    backdrop-filter:
        blur(28px)
        saturate(145%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(145%);
}

.leaderboard-v3-king-head{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;
}

.leaderboard-v3-king-head span{
    color:#837f68;

    font-size:8px;
    font-weight:950;
    letter-spacing:.14em;
}

.leaderboard-v3-king-head strong{
    color:var(--lb-gold);

    font-size:8px;
    letter-spacing:.10em;
}

.leaderboard-v3-trophy{
    position:relative;

    min-height:310px;

    display:grid;
    place-items:center;

    margin:0 0 8px;
}

.leaderboard-v3-trophy:before{
    content:"";

    position:absolute;

    width:230px;
    height:230px;

    border-radius:50%;

    background:rgba(232,199,108,.10);

    filter:blur(58px);

    animation:
        leaderboardV3Glow
        3s ease-in-out
        infinite;
}

.leaderboard-v3-trophy-ring{
    position:absolute;

    width:245px;
    height:245px;

    border-radius:50%;

    border:
        1px solid
        rgba(232,199,108,.12);

    animation:
        leaderboardV3Ring
        18s linear
        infinite;
}

.leaderboard-v3-trophy-ring.r2{
    width:195px;
    height:195px;

    border-style:dashed;

    animation:
        leaderboardV3RingReverse
        13s linear
        infinite;
}

.leaderboard-v3-trophy img{
    position:relative;
    z-index:3;

    width:min(82%,320px);
    max-height:295px;

    object-fit:contain;

    filter:
        drop-shadow(0 0 28px rgba(232,199,108,.25))
        drop-shadow(0 0 80px rgba(194,255,75,.08));

    animation:
        leaderboardV3Float
        5s ease-in-out
        infinite;
}

@keyframes leaderboardV3Glow{
    50%{
        opacity:.52;
        transform:scale(1.16);
    }
}

@keyframes leaderboardV3Ring{
    to{
        transform:rotate(360deg);
    }
}

@keyframes leaderboardV3RingReverse{
    to{
        transform:rotate(-360deg);
    }
}

@keyframes leaderboardV3Float{
    50%{
        transform:translateY(-7px) scale(1.015);
    }
}

.leaderboard-v3-king-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:7px;
}

.leaderboard-v3-stat{
    padding:13px;

    border-radius:13px;

    border:1px solid var(--lb-line2);

    background:rgba(255,255,255,.021);
}

.leaderboard-v3-stat span{
    display:block;

    color:#78897f;

    font-size:7px;
    font-weight:950;
    letter-spacing:.12em;
}

.leaderboard-v3-stat strong{
    display:block;

    margin-top:6px;

    color:#f4fff5;

    font-size:10px;
}

.leaderboard-v3-stat strong.gold{
    color:var(--lb-gold);
}

/* ======================================================
   SEASON STRIP
====================================================== */

.leaderboard-v3-season{
    width:min(1340px,calc(100% - 28px));

    margin:0 auto 14px;

    display:grid;
    grid-template-columns:1.1fr repeat(3,.633fr);
    gap:8px;
}

.leaderboard-v3-season-main,
.leaderboard-v3-season-stat{
    min-height:130px;

    padding:18px;

    border-radius:18px;

    border:1px solid var(--lb-line);

    background:rgba(2,13,8,.78);
}

.leaderboard-v3-season-main{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.leaderboard-v3-season-main span,
.leaderboard-v3-season-stat span{
    display:block;

    color:#77897e;

    font-size:7px;
    font-weight:950;
    letter-spacing:.13em;
}

.leaderboard-v3-season-main strong{
    display:block;

    margin-top:7px;

    color:var(--lb-gold);

    font-size:28px;
    letter-spacing:-.04em;
}

.leaderboard-v3-season-stat{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.leaderboard-v3-season-stat strong{
    display:block;

    margin-top:8px;

    color:#fff;

    font-size:13px;
}

/* ======================================================
   PODIUM
====================================================== */

.leaderboard-v3-arena{
    width:min(1340px,calc(100% - 28px));

    margin:0 auto 14px;

    padding:clamp(22px,4vw,38px);

    border-radius:30px;

    border:1px solid var(--lb-gold-line);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(232,199,108,.055),
            transparent 36%
        ),
        rgba(2,13,8,.78);

    backdrop-filter:blur(26px) saturate(140%);
}

.leaderboard-v3-section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;

    gap:20px;

    margin-bottom:22px;
}

.leaderboard-v3-section-head span{
    color:var(--lb-gold);

    font-size:8px;
    font-weight:950;
    letter-spacing:.17em;
}

.leaderboard-v3-section-head h2{
    margin:6px 0 0;

    color:#fff;

    font-size:clamp(38px,5vw,65px);
    letter-spacing:-.06em;
}

.leaderboard-v3-section-head p{
    max-width:550px;

    margin:0;

    color:#7e9185;

    font-size:11px;
    line-height:1.6;
}

.leaderboard-v3-podium{
    min-height:390px;

    display:grid;
    grid-template-columns:repeat(3,1fr);

    gap:8px;

    align-items:end;

    padding-top:15px;
}

.leaderboard-v3-place{
    position:relative;

    min-height:275px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:20px;

    border-radius:19px;

    border:1px solid var(--lb-line2);

    background:
        rgba(255,255,255,.018);

    text-align:center;
}

.leaderboard-v3-place.first{
    min-height:340px;

    border-color:
        rgba(232,199,108,.17);

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(232,199,108,.08),
            transparent 40%
        ),
        rgba(255,255,255,.021);
}

.leaderboard-v3-place-number{
    position:absolute;

    top:12px;
    left:50%;

    transform:translateX(-50%);

    color:
        rgba(255,255,255,.05);

    font-size:82px;
    font-weight:950;
    letter-spacing:-.07em;
}

.leaderboard-v3-place-icon{
    position:relative;
    z-index:2;

    width:70px;
    height:70px;

    margin:0 auto 16px;

    display:grid;
    place-items:center;

    border-radius:50%;

    border:1px solid rgba(232,199,108,.13);

    color:var(--lb-gold);

    background:
        rgba(232,199,108,.035);

    font-size:22px;
    font-weight:950;
}

.leaderboard-v3-place strong{
    position:relative;
    z-index:2;

    font-size:14px;
}

.leaderboard-v3-place span{
    position:relative;
    z-index:2;

    display:block;

    margin-top:6px;

    color:#798b80;

    font-size:9px;
}

/* ======================================================
   VERIFIED BOARD
====================================================== */

.leaderboard-v3-board{
    width:min(1340px,calc(100% - 28px));

    margin:0 auto 14px;

    padding:clamp(22px,4vw,38px);

    border-radius:30px;

    border:1px solid var(--lb-line);

    background:rgba(2,13,8,.78);
}

.leaderboard-v3-table-head{
    display:grid;

    grid-template-columns:
        80px
        1.5fr
        1fr
        1fr
        1fr;

    gap:12px;

    padding:0 16px 12px;

    color:#6f8276;

    font-size:7px;
    font-weight:950;
    letter-spacing:.12em;
}

.leaderboard-v3-empty{
    min-height:240px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    padding:30px;

    text-align:center;

    border-radius:18px;

    border:
        1px dashed
        rgba(194,255,105,.14);

    background:
        rgba(255,255,255,.012);
}

.leaderboard-v3-empty-mark{
    width:58px;
    height:58px;

    display:grid;
    place-items:center;

    margin-bottom:15px;

    border-radius:50%;

    color:var(--lb-lime);

    border:
        1px solid
        rgba(194,255,105,.14);

    background:
        rgba(194,255,105,.03);

    font-size:20px;
}

.leaderboard-v3-empty strong{
    font-size:16px;
}

.leaderboard-v3-empty p{
    max-width:600px;

    margin:8px 0 0;

    color:#788b80;

    font-size:10px;
    line-height:1.6;
}

/* ======================================================
   DIVISION / RANK HALL
====================================================== */

.leaderboard-v3-ranks{
    width:min(1340px,calc(100% - 28px));

    margin:0 auto 18px;

    padding:clamp(22px,4vw,38px);

    border-radius:30px;

    border:1px solid var(--lb-line);

    background:rgba(2,13,8,.78);
}

.leaderboard-v3-rank-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
}

.leaderboard-v3-rank{
    min-height:300px;

    padding:15px;

    text-align:center;

    border-radius:18px;

    border:1px solid var(--lb-line2);

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(194,255,105,.045),
            transparent 42%
        ),
        rgba(255,255,255,.016);

    transition:
        transform .18s ease,
        border-color .18s ease;
}

.leaderboard-v3-rank:hover{
    transform:translateY(-4px);

    border-color:
        rgba(194,255,105,.20);
}

.leaderboard-v3-rank.king{
    border-color:
        rgba(232,199,108,.15);

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(232,199,108,.07),
            transparent 42%
        ),
        rgba(255,255,255,.018);
}

.leaderboard-v3-rank img{
    width:100%;
    height:190px;

    object-fit:contain;

    filter:
        drop-shadow(
            0 18px 30px
            rgba(0,0,0,.32)
        );
}

.leaderboard-v3-rank strong{
    display:block;

    margin-top:10px;

    color:#fff;

    font-size:13px;
}

.leaderboard-v3-rank span{
    display:block;

    margin-top:4px;

    color:#718379;

    font-size:8px;
    font-weight:950;
    letter-spacing:.10em;
}

/* ======================================================
   SCORING DOCTRINE
====================================================== */

.leaderboard-v3-rules{
    width:min(1340px,calc(100% - 28px));

    margin:0 auto 18px;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.leaderboard-v3-rule{
    min-height:190px;

    padding:18px;

    border-radius:18px;

    border:1px solid var(--lb-line);

    background:rgba(2,13,8,.76);
}

.leaderboard-v3-rule b{
    display:block;

    color:var(--lb-gold);

    font-size:23px;
}

.leaderboard-v3-rule strong{
    display:block;

    margin-top:14px;

    font-size:12px;
}

.leaderboard-v3-rule p{
    margin:7px 0 0;

    color:#7d9084;

    font-size:10px;
    line-height:1.55;
}

/* ======================================================
   EXISTING V2 POLISH
====================================================== */

body.leaderboard-v3-loaded
.glass,

body.leaderboard-v3-loaded
.rank,

body.leaderboard-v3-loaded
.method-card,

body.leaderboard-v3-loaded
.board{
    border-color:
        rgba(194,255,105,.10) !important;
}

/* ======================================================
   MOBILE
====================================================== */

@media(max-width:1050px){

    .leaderboard-v3-hero-grid{
        grid-template-columns:1fr;
    }

    .leaderboard-v3-season{
        grid-template-columns:repeat(2,1fr);
    }

    .leaderboard-v3-rank-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:850px){

    .leaderboard-v3-podium{
        grid-template-columns:1fr;
        align-items:stretch;
    }

    .leaderboard-v3-place,
    .leaderboard-v3-place.first{
        min-height:220px;
    }

    .leaderboard-v3-table-head{
        display:none;
    }

    .leaderboard-v3-rules{
        grid-template-columns:1fr;
    }

}

@media(max-width:650px){

    .leaderboard-v3-hero,
    .leaderboard-v3-season,
    .leaderboard-v3-arena,
    .leaderboard-v3-board,
    .leaderboard-v3-ranks,
    .leaderboard-v3-rules{
        width:calc(100% - 18px);
    }

    .leaderboard-v3-hero{
        margin-top:95px;
    }

    .leaderboard-v3-title{
        font-size:
            clamp(
                56px,
                19vw,
                84px
            );
    }

    .leaderboard-v3-season,
    .leaderboard-v3-rank-grid,
    .leaderboard-v3-king-grid{
        grid-template-columns:1fr;
    }

    .leaderboard-v3-section-head{
        align-items:flex-start;
        flex-direction:column;
    }

}

/* ======================================================
   BULLFROG LEADERBOARD V3.1 TOP GAP FIX

   Purpose:
   Reduce only the excessive vertical gap between
   the ecosystem header and King of the Lake arena.
====================================================== */

/*
 * V3 hero / arena candidates.
 * These selectors are intentionally presentation-only.
 */

body .leaderboard-v3-hero,
body .leaderboard-v3-arena,
body .leaderboard-v3-stage,
body .leaderboard-v3-championship,
body .leaderboard-v3-world{
    margin-top:12px !important;
}

/*
 * The V3 layer may be inserted directly after the header.
 * Pull only that first sibling upward.
 */

body > header + .leaderboard-v3-hero,
body > header + .leaderboard-v3-arena,
body > header + .leaderboard-v3-stage,
body > header + section{
    margin-top:12px !important;
}

/*
 * Some versions place the V3 environment inside main.
 */

body main{
    margin-top:0 !important;
    padding-top:0 !important;
}

body main > .leaderboard-v3-hero:first-child,
body main > .leaderboard-v3-arena:first-child,
body main > .leaderboard-v3-stage:first-child,
body main > section:first-child{
    margin-top:12px !important;
}

/*
 * If the existing V3 hero itself has the large offset,
 * this is the primary correction.
 */

.leaderboard-v3-hero{
    margin-top:12px !important;
}

/* Keep intentional breathing room — don't glue it to header. */

@media(max-width:1000px){

    .leaderboard-v3-hero,
    .leaderboard-v3-arena,
    .leaderboard-v3-stage{
        margin-top:10px !important;
    }

}

@media(max-width:650px){

    .leaderboard-v3-hero,
    .leaderboard-v3-arena,
    .leaderboard-v3-stage{
        margin-top:8px !important;
    }

    body main{
        margin-top:0 !important;
        padding-top:0 !important;
    }

}

/* BULLFROG FINAL V3 TOP SPACING NORMALIZER START */

/* ======================================================
   LEADERBOARD — FINAL HERO SPACING NORMALIZATION

   This intentionally overrides every earlier experimental
   spacing patch on this page.

   Goal:
   - hero close to header
   - hero content starts near top
   - no giant empty vertical dead zone
   - retain enough breathing room for premium layout
====================================================== */

/* ------------------------------------------------------
   PAGE WRAPPER
------------------------------------------------------ */

body main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body main > :first-child {
    margin-top: 0 !important;
}


/* ------------------------------------------------------
   MAJOR V3 HERO CONTAINERS
------------------------------------------------------ */

body :is(
    .leaderboard-v3-hero,
    .leaderboard-v3-world,
    .leaderboard-v3-stage,
    .leaderboard-v3-shell,
    .leaderboard-v3-arena,
    .leaderboard-v3-command,
    .leaderboard-v3-terminal,
    .leaderboard-v3-championship
) {
    margin-top: 10px !important;

    padding-top: 22px !important;
    padding-bottom: 28px !important;

    min-height: 0 !important;
    height: auto !important;

    align-items: start !important;
    align-content: start !important;

    justify-items: stretch;
}


/* ------------------------------------------------------
   DIRECT HERO CONTENT
------------------------------------------------------ */

body :is(
    .leaderboard-v3-hero,
    .leaderboard-v3-world,
    .leaderboard-v3-stage,
    .leaderboard-v3-shell,
    .leaderboard-v3-arena
) > * {
    margin-top: 0 !important;

    align-self: start !important;
}


/* ------------------------------------------------------
   COMMON INNER V3 WRAPPERS
------------------------------------------------------ */

body :is(
    .leaderboard-v3-hero-inner,
    .leaderboard-v3-inner,
    .leaderboard-v3-container,
    .leaderboard-v3-grid,
    .leaderboard-v3-hero-grid,
    .leaderboard-v3-layout,
    .leaderboard-v3-content,
    .leaderboard-v3-stage-inner,
    .leaderboard-v3-command-grid,
    .leaderboard-v3-terminal-grid
) {
    margin-top: 0 !important;
    padding-top: 0 !important;

    min-height: 0 !important;
    height: auto !important;

    align-items: start !important;
    align-content: start !important;
}


/* ------------------------------------------------------
   LEFT-SIDE HERO COPY
------------------------------------------------------ */

body :is(
    .leaderboard-v3-copy,
    .leaderboard-v3-hero-copy,
    .leaderboard-v3-intro,
    .leaderboard-v3-left,
    .leaderboard-v3-content-left
) {
    margin-top: 0 !important;
    padding-top: 0 !important;

    align-self: start !important;

    transform: none !important;
}


/* ------------------------------------------------------
   RIGHT-SIDE HERO PANEL
------------------------------------------------------ */

body :is(
    .leaderboard-v3-right,
    .leaderboard-v3-core,
    .leaderboard-v3-panel,
    .leaderboard-v3-vault,
    .leaderboard-v3-radar,
    .leaderboard-v3-telemetry,
    .leaderboard-v3-terminal,
    .leaderboard-v3-identity,
    .leaderboard-v3-trophy
) {
    margin-top: 0 !important;

    align-self: start !important;

    transform: none !important;
}


/* ------------------------------------------------------
   HEADER TO FIRST PRODUCT AREA
------------------------------------------------------ */

header + main,
header + section,
header + div {
    margin-top: 10px !important;
}


/* ------------------------------------------------------
   PREVENT OLD HUGE HERO MIN-HEIGHTS
------------------------------------------------------ */

body [class*="leaderboard-v3-hero"] {
    min-height: 0 !important;
}

body [class*="leaderboard-v3-world"] {
    min-height: 0 !important;
}

body [class*="leaderboard-v3-stage"] {
    min-height: 0 !important;
}


/* ------------------------------------------------------
   IMPORTANT:
   Hero cards should size from their actual content,
   not viewport height.
------------------------------------------------------ */

body :is(
    .leaderboard-v3-hero,
    .leaderboard-v3-world,
    .leaderboard-v3-stage,
    .leaderboard-v3-arena,
    .leaderboard-v3-shell
) {
    max-height: none !important;
}


/* ------------------------------------------------------
   TABLET
------------------------------------------------------ */

@media(max-width: 1000px) {

    body :is(
        .leaderboard-v3-hero,
        .leaderboard-v3-world,
        .leaderboard-v3-stage,
        .leaderboard-v3-shell,
        .leaderboard-v3-arena
    ) {
        margin-top: 8px !important;

        padding-top: 18px !important;
        padding-bottom: 24px !important;

        min-height: 0 !important;
    }

}


/* ------------------------------------------------------
   MOBILE
------------------------------------------------------ */

@media(max-width: 650px) {

    body main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body :is(
        .leaderboard-v3-hero,
        .leaderboard-v3-world,
        .leaderboard-v3-stage,
        .leaderboard-v3-shell,
        .leaderboard-v3-arena
    ) {
        margin-top: 6px !important;

        padding-top: 14px !important;
        padding-bottom: 20px !important;

        min-height: 0 !important;
        height: auto !important;
    }

    body :is(
        .leaderboard-v3-copy,
        .leaderboard-v3-hero-copy,
        .leaderboard-v3-intro,
        .leaderboard-v3-left,
        .leaderboard-v3-right,
        .leaderboard-v3-core,
        .leaderboard-v3-panel,
        .leaderboard-v3-vault,
        .leaderboard-v3-radar,
        .leaderboard-v3-telemetry,
        .leaderboard-v3-terminal
    ) {
        transform: none !important;
    }

}

/* BULLFROG FINAL V3 TOP SPACING NORMALIZER END */

/* BULLFROG FINAL TINY HEADER GAP START */

/* ======================================================
   LEADERBOARD — FINAL TINY HEADER GAP
====================================================== */

/*
 * Previous cleanup removed excessive dead space.
 * This restores only a small intentional separation
 * so hero cards do not visually collide with header.
 */

body :is(
    .leaderboard-v3-hero,
    .leaderboard-v3-world,
    .leaderboard-v3-stage,
    .leaderboard-v3-shell,
    .leaderboard-v3-arena,
    .leaderboard-v3-command,
    .leaderboard-v3-terminal,
    .leaderboard-v3-championship
) {
    margin-top: 16px !important;
}

/* Direct first content after header */

header + main,
header + section,
header + div {
    margin-top: 16px !important;
}

/* Tablet */

@media(max-width:1000px) {

    body :is(
        .leaderboard-v3-hero,
        .leaderboard-v3-world,
        .leaderboard-v3-stage,
        .leaderboard-v3-shell,
        .leaderboard-v3-arena
    ) {
        margin-top: 12px !important;
    }

    header + main,
    header + section,
    header + div {
        margin-top: 12px !important;
    }

}

/* Mobile */

@media(max-width:650px) {

    body :is(
        .leaderboard-v3-hero,
        .leaderboard-v3-world,
        .leaderboard-v3-stage,
        .leaderboard-v3-shell,
        .leaderboard-v3-arena
    ) {
        margin-top: 10px !important;
    }

    header + main,
    header + section,
    header + div {
        margin-top: 10px !important;
    }

}

/* BULLFROG FINAL TINY HEADER GAP END */


/* ======================================================
   BULLFROG LEADERBOARD FINAL HEADER CLEARANCE
   PAGE-SPECIFIC OVERRIDE
====================================================== */

/*
 * Leaderboard needs more clearance than the global
 * 16px V3 rule because its arena shell sits higher.
 */

body :is(
    .leaderboard-v3-hero,
    .leaderboard-v3-world,
    .leaderboard-v3-stage,
    .leaderboard-v3-shell,
    .leaderboard-v3-arena,
    .leaderboard-v3-championship
){
    margin-top:34px !important;
    transform:none !important;
}

/* First major wrapper */

body main{
    margin-top:0 !important;
    padding-top:0 !important;
}

body main > :first-child{
    margin-top:34px !important;
}

/* Make sure inner content is not pulled upward */

body :is(
    .leaderboard-v3-inner,
    .leaderboard-v3-container,
    .leaderboard-v3-grid,
    .leaderboard-v3-hero-grid,
    .leaderboard-v3-content,
    .leaderboard-v3-copy,
    .leaderboard-v3-left,
    .leaderboard-v3-right,
    .leaderboard-v3-trophy
){
    transform:none !important;
}

@media(max-width:1000px){

    body :is(
        .leaderboard-v3-hero,
        .leaderboard-v3-world,
        .leaderboard-v3-stage,
        .leaderboard-v3-shell,
        .leaderboard-v3-arena
    ){
        margin-top:28px !important;
    }

    body main > :first-child{
        margin-top:28px !important;
    }

}

@media(max-width:650px){

    body :is(
        .leaderboard-v3-hero,
        .leaderboard-v3-world,
        .leaderboard-v3-stage,
        .leaderboard-v3-shell,
        .leaderboard-v3-arena
    ){
        margin-top:20px !important;
    }

    body main > :first-child{
        margin-top:20px !important;
    }

}

