/* Bebalap v406 — compact Tournament podium result on Home */
.tournament-result-card-v405{border-radius:18px!important;border-color:#dfe6ef!important;background:#fff!important;box-shadow:0 10px 28px rgba(16,24,40,.07)!important}
.tournament-result-card-v405 .tournament-head-v405{height:32px!important;padding:0 10px!important;background:linear-gradient(90deg,#f8fbff,#fff)!important}
.tournament-result-card-v405 .tournament-head-v405 time{margin-left:auto!important}
.tournament-title-v405{padding:9px 10px 7px!important;display:block!important}
.tournament-title-v405>div{width:100%!important}.tournament-title-v405 b{font-size:8.5px!important;color:#182230!important}.tournament-title-v405 small{margin-top:3px!important;font-size:5.8px!important;color:#8793a5!important}.tournament-title-v405>span{display:none!important}
.tournament-duel-board-v405{margin:0 9px 8px;padding:10px 8px;display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:center;gap:7px;border:1px solid #e7edf5;border-radius:14px;background:linear-gradient(135deg,#fbfdff 0%,#f7faff 100%)}
.tournament-duel-racer-v405{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative}.tournament-avatar-v405{width:42px!important;height:42px!important;margin:0 0 6px!important;border-radius:13px!important;background:#eef3f9!important;overflow:visible!important}.tournament-avatar-v405>img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important;clip-path:inset(0 round 13px)}.tournament-duel-racer-v405.is-winner .tournament-avatar-v405{border-color:#1768ff!important;box-shadow:0 0 0 3px rgba(23,104,255,.08)!important}.tournament-duel-racer-v405>b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#182230;font-size:8px;font-weight:950}.tournament-duel-racer-v405>small{max-width:100%;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#98a2b3;font-size:5.5px;font-weight:700}.tournament-winner-v405{margin-top:5px;padding:3px 6px;border-radius:999px;background:#1768ff;color:#fff;font-size:4.8px;font-weight:950;letter-spacing:.07em}.tournament-vs-v405{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}.tournament-vs-v405 strong{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#182230;color:#fff;font-size:7.5px;font-weight:950;box-shadow:0 5px 12px rgba(16,24,40,.13)}.tournament-vs-v405 span{max-width:42px;padding:4px 5px;border-radius:999px;background:#eef4ff;color:#1768ff;font-size:4.8px;font-weight:900;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tournament-podium-board-v406{margin:0 9px 8px;padding:10px 8px 8px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);align-items:end;gap:6px;border:1px solid #e6ecf4;border-radius:15px;background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%)}
.tournament-podium-card-v406{position:relative;min-width:0;min-height:91px;padding:10px 5px 7px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:1px solid #e5eaf1;border-radius:13px;background:#fff;text-align:center;box-shadow:0 3px 10px rgba(16,24,40,.035)}
.tournament-podium-card-v406.pos-1{min-height:108px;padding-top:11px;border-color:#bcd2ff;background:linear-gradient(180deg,#edf4ff 0%,#fff 72%);box-shadow:0 8px 18px rgba(23,104,255,.10)}
.tournament-podium-rank-v406{position:absolute;top:5px;left:5px;min-width:22px;height:18px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#667085;color:#fff;font-size:5.5px;font-weight:950;line-height:1}.tournament-podium-card-v406.pos-1 .tournament-podium-rank-v406{background:#1768ff}.tournament-podium-card-v406.pos-3 .tournament-podium-rank-v406{background:#b86f20}
.tournament-podium-avatar-v406{width:36px!important;height:36px!important;margin:8px 0 5px!important;border-radius:11px!important;background:#eef2f7!important;overflow:visible!important;flex:0 0 auto!important}.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406{width:46px!important;height:46px!important;margin-top:7px!important;border-radius:14px!important;background:#dfeaff!important}.tournament-podium-avatar-v406>img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;border-radius:inherit!important;clip-path:inset(0 round 11px)}.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406>img{clip-path:inset(0 round 14px)}
.tournament-podium-label-v406{display:block;margin-top:1px;color:#98a2b3;font-size:4.9px;line-height:1;font-weight:950;letter-spacing:.07em}.tournament-podium-card-v406.pos-1 .tournament-podium-label-v406{color:#1768ff}
.tournament-podium-card-v406>b{width:100%;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#182230;font-size:7px;line-height:1.1;font-weight:950}.tournament-podium-card-v406.pos-1>b{font-size:8px;color:#101828}.tournament-podium-card-v406>small{width:100%;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#98a2b3;font-size:4.8px;line-height:1.1;font-weight:650}
.tournament-podium-note-v406{margin:0 9px 8px;padding:7px 9px;border-radius:10px;background:#fff4f6;color:#b42318;font-size:6px;font-weight:750;line-height:1.35}
.tournament-result-banner-v405{margin:0 9px 8px;padding:8px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:11px;background:linear-gradient(135deg,#1768ff,#1457d5);color:#fff}.tournament-result-banner-v405>div{min-width:0}.tournament-result-banner-v405>div span{display:block;font-size:4.8px;font-weight:900;letter-spacing:.12em;opacity:.72}.tournament-result-banner-v405>div b{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;font-weight:950}.tournament-result-banner-v405>small{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:5.2px;font-weight:750;opacity:.82;text-align:right}.tournament-result-banner-v405.is-dnf{background:linear-gradient(135deg,#df3048,#c51f36)}
.tournament-result-card-v405 .tournament-meta{background:#fbfcfe!important}.tournament-result-card-v405 .tournament-detail-btn{height:31px!important;font-size:6.2px!important}
@media(max-width:390px){.tournament-duel-board-v405,.tournament-podium-board-v406,.tournament-result-banner-v405,.tournament-podium-note-v406{margin-left:7px;margin-right:7px}.tournament-podium-board-v406{gap:4px;padding-left:6px;padding-right:6px}.tournament-podium-card-v406{min-height:86px;padding-left:4px;padding-right:4px}.tournament-podium-card-v406.pos-1{min-height:103px}.tournament-podium-avatar-v406{width:33px!important;height:33px!important}.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406{width:43px!important;height:43px!important}.tournament-podium-card-v406>b{font-size:6.5px}.tournament-podium-card-v406.pos-1>b{font-size:7.5px}}


/* Bebalap v408 — robust podium avatar clipping + safe PRO badge spacing */
.tournament-podium-avatar-v406{
    position:relative!important;
    overflow:visible!important;
    isolation:isolate!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}
.tournament-podium-photo-v408{
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
    border:1px solid #e1e6ed!important;
    border-radius:11px!important;
    background:#eef2f7!important;
    color:#405069!important;
    font-size:8px!important;
    font-weight:950!important;
    box-sizing:border-box!important;
}
.tournament-podium-card-v406.pos-1 .tournament-podium-photo-v408{
    border-radius:14px!important;
    border-color:#c7d8ff!important;
    background:#dfeaff!important;
}
.tournament-podium-photo-v408>img{
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:cover!important;
    border:0!important;
    border-radius:inherit!important;
    clip-path:none!important;
}
/* Keep the PRO badge above the clipped photo, but never let it collide with JUARA label. */
.tournament-podium-avatar-v406.is-racer-pro-avatar::before,
.tournament-podium-avatar-v406.is-racer-pro-avatar::after{z-index:6!important}
.tournament-podium-avatar-v406.is-racer-pro-avatar{margin-bottom:9px!important}
.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406.is-racer-pro-avatar{margin-bottom:9px!important}
.tournament-podium-label-v406{
    position:relative!important;
    z-index:8!important;
    min-height:9px!important;
    margin-top:2px!important;
    padding:1px 3px 0!important;
    border-radius:999px!important;
    background:#fff!important;
}
.triple-podium-board-v407 .tournament-podium-label-v406{margin-top:3px!important}
.triple-podium-board-v407 .tournament-podium-avatar-v406.is-racer-pro-avatar{margin-bottom:10px!important}


/* Bebalap v409 — JUARA badge above avatar; safe spacing for Racer Pro badge. */
.tournament-podium-label-v406{
    order:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-height:16px!important;
    margin:0 0 6px!important;
    padding:0 7px!important;
    border-radius:999px!important;
    background:#f2f4f7!important;
    color:#667085!important;
    font-size:5px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:.08em!important;
    white-space:nowrap!important;
    position:relative!important;
    z-index:10!important;
}
.tournament-podium-card-v406.pos-1 .tournament-podium-label-v406{background:#eaf1ff!important;color:#1768ff!important}
.tournament-podium-card-v406.pos-3 .tournament-podium-label-v406{background:#fff3e8!important;color:#a85d13!important}
.tournament-podium-avatar-v406{order:2!important;margin:1px 0 5px!important}
.tournament-podium-avatar-v406.is-racer-pro-avatar{margin:5px 0 5px!important}
.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406{margin-top:1px!important}
.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406.is-racer-pro-avatar{margin-top:5px!important}
.tournament-podium-card-v406>b{order:3!important}
.tournament-podium-card-v406>small{order:4!important}
.triple-podium-board-v407 .tournament-podium-label-v406{margin:0 0 6px!important}
.triple-podium-board-v407 .tournament-podium-avatar-v406.is-racer-pro-avatar{margin:5px 0 5px!important}


/* Bebalap v410 — numeric podium badge only, centered above avatar. */
.tournament-podium-label-v406{display:none!important}
.tournament-podium-rank-v406{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    order:1!important;
    min-width:25px!important;
    height:19px!important;
    margin:0 0 5px!important;
    padding:0 7px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    border-radius:999px!important;
    background:#667085!important;
    color:#fff!important;
    font-size:6px!important;
    line-height:1!important;
    font-weight:950!important;
    z-index:12!important;
    box-shadow:0 3px 8px rgba(16,24,40,.10)!important;
}
.tournament-podium-card-v406.pos-1 .tournament-podium-rank-v406{background:#1768ff!important}
.tournament-podium-card-v406.pos-3 .tournament-podium-rank-v406{background:#b86f20!important}
.tournament-podium-avatar-v406{
    order:2!important;
    margin:0 0 5px!important;
}
.tournament-podium-avatar-v406.is-racer-pro-avatar{
    margin:3px 0 5px!important;
}
.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406{
    margin-top:0!important;
}
.tournament-podium-card-v406.pos-1 .tournament-podium-avatar-v406.is-racer-pro-avatar{
    margin-top:3px!important;
}
.tournament-podium-card-v406>b{order:3!important}
.tournament-podium-card-v406>small{order:4!important}
.triple-podium-board-v407 .tournament-podium-avatar-v406.is-racer-pro-avatar{margin:3px 0 5px!important}


/* Bebalap v411 — restore Venue card for Home 1 VS 1 result only. */
.home-last-match-item.global-duel .home-duel-venue-v411{grid-template-columns:minmax(0,1fr)!important;padding-bottom:7px!important}
.home-last-match-item.global-duel .home-duel-venue-v411>div{width:100%!important;box-sizing:border-box!important}

/* Bebalap v412 — Tournament detail modal uses the same winner arrangement as Home Tournament Result. */
.tournament-result-modal .tournament-modal-result-v412 .tournament-podium-board-v406,
.tournament-result-modern-card .tournament-modal-podium-v412{
    width:100%!important;
    box-sizing:border-box!important;
    margin:0!important;
}
.tournament-result-modal .tournament-modal-result-v412 .tournament-duel-board-v405,
.tournament-result-modern-card .tournament-modal-duel-v412{
    width:100%!important;
    box-sizing:border-box!important;
    margin:0!important;
}
.tournament-result-modal .tournament-racers-section.tournament-modal-result-v412 .last-match-detail-section-title{
    margin-bottom:9px!important;
}
.tournament-result-modern-body.tournament-modal-result-v412 .tournament-result-modern-body-title{
    margin-bottom:9px!important;
}
