.stun-race{overflow:hidden}.stun-race-track{position:relative;margin:24px 16px 0;min-height:195px}.stun-race-line{position:absolute;left:0;right:0;top:50%;height:10px;border-radius:12px;background:linear-gradient(90deg,#51411e,#f0c742);box-shadow:0 0 0 3px #2b261b}.stun-race-runner{position:absolute;z-index:2;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;transition:left 1.2s ease;max-width:90px;white-space:nowrap}.stun-race-runner strong{font-size:10px;color:#fff;text-shadow:0 2px 3px #000}.stun-race-runner img{width:40px;height:40px;object-fit:cover;border:2px solid #f2c94c;border-radius:50%;background:#171717}.stun-race-runner span{font-size:11px;font-weight:800;color:#f2c94c;background:#171717;padding:2px 5px;border-radius:8px}.stun-race-axis{display:flex;justify-content:space-between;font-size:11px;color:#aaa}.stun-race-legend{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:14px;font-size:12px}.stun-race-legend strong{color:#f2c94c}

/* Fase 40 — melhoria exclusivamente visual da leitura dos pontos. */
.stun-race-runner{gap:5px;z-index:3}
.stun-race-runner span{display:inline-block;min-width:54px;box-sizing:border-box;text-align:center;font-size:14px;line-height:1.25;font-weight:900;color:#ffd326;background:#080a0d;border:1px solid #f2c94c;padding:5px 9px;border-radius:9px;box-shadow:0 3px 10px #000b;text-shadow:none;font-variant-numeric:tabular-nums}
.stun-race-runner strong{font-size:11px;line-height:1.2;text-align:center;max-width:110px;white-space:normal;overflow-wrap:anywhere;text-shadow:0 2px 5px #000,0 0 5px #000}
.stun-race-legend{gap:9px 10px;line-height:1.5}
.stun-race-legend>span{display:inline-block;padding:5px 9px;border:1px solid #393c43;border-radius:8px;background:#101318;color:#f5f6f8;font-size:12px}
.stun-race-legend strong{font-weight:900}
@media(max-width:640px){.stun-race-track{margin-left:22px;margin-right:22px}.stun-race-runner span{font-size:12px;min-width:48px;padding:4px 6px}.stun-race-legend>span{font-size:11px}}

/* Ranking Equipas — cartões interativos, conectores e pista preservada */
.stun-race{overflow:visible;min-width:0}
.stun-race-track-groups{margin:18px 16px 0;min-height:315px;position:relative;isolation:isolate}
.stun-race-track-groups .stun-race-line{top:var(--race-line-y);height:10px;z-index:0}
.stun-race-position{position:absolute;z-index:2;transform:translateX(-50%);width:148px;max-width:none}
.stun-race-card{position:relative;z-index:3;border:1px solid #e7bb23;border-radius:10px;background:#101319;color:#fff;box-shadow:0 5px 16px #0008;font-size:12px}
.stun-race-card>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:76px;padding:7px 8px;cursor:pointer;outline-offset:3px}
.stun-race-card>summary::-webkit-details-marker{display:none}
.stun-race-heading{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.stun-race-card-title{font-size:12px;line-height:1.25;font-weight:800;color:#fff;overflow-wrap:anywhere}
.stun-race-count{color:#ffd22d;font-weight:900;font-size:12px;line-height:1.25;font-variant-numeric:tabular-nums}
.stun-race-expand{color:#ffce00;font-size:16px;flex-shrink:0}
.stun-race-card[open] .stun-race-expand{transform:rotate(180deg)}
.stun-race-main-logo{width:35px;height:35px;object-fit:cover;border:2px solid #ffcc00;border-radius:50%;flex-shrink:0}
.stun-race-card-details{padding:4px 8px 9px;border-top:1px solid #444;max-height:220px;overflow:auto}
.stun-race-team{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #343943;min-width:0}
.stun-race-team:last-child{border-bottom:0}
.stun-race-team img{width:25px;height:25px;border:1px solid #ffcc00;border-radius:50%;object-fit:cover;flex-shrink:0}
.stun-race-team span{font-size:11px;flex:1;min-width:0;overflow-wrap:anywhere}
.stun-race-team strong{font-size:11px;color:#ffce00;white-space:nowrap}
.stun-race-connector{position:absolute;left:50%;top:90px;height:var(--race-line-distance);width:2px;background:#ffcc00;transform:translateX(-50%);z-index:1;pointer-events:none}
.stun-race-anchor{position:absolute;top:calc(90px + var(--race-line-distance) - 6px);left:50%;width:13px;height:13px;border:3px solid #ffce00;border-radius:50%;background:#fff;transform:translateX(-50%);box-shadow:0 0 7px #ffce0066;z-index:2;pointer-events:none}
.stun-race-axis{padding:0 16px;margin-top:3px;color:#ddd}
.stun-race-legend{margin-top:18px}
@media(max-width:740px){.stun-race-track-groups{min-width:680px}.stun-race{overflow-x:auto;overflow-y:visible}.stun-race-legend{min-width:0}}

/* Ranking: líderes individuais e equipas clicáveis */
.stun-race-leader{z-index:5}
.stun-race-leader-1 .stun-race-card{border:2px solid #ffce00;box-shadow:0 0 15px #ffce0040,0 5px 16px #0008}
.stun-race-leader-2 .stun-race-card{border:2px solid #bdc4cc;box-shadow:0 0 12px #bdc4cc33,0 5px 16px #0008}
.stun-race-place{font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:#ffce00}
.stun-race-leader-2 .stun-race-place{color:#d2d7de}
.stun-race-single-link{display:flex;align-items:center;gap:7px;width:100%;min-height:76px;padding:7px 8px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.stun-race-single-link:hover,.stun-race-team-link:hover{background:#292c32}
.stun-race-team-link{width:100%;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.stun-race-legend>button{display:inline-block;padding:5px 9px;border:1px solid #393c43;border-radius:8px;background:#101318;color:#f5f6f8;font-size:12px;cursor:pointer}
.stun-race-legend>button:hover{border-color:#ffce00}
.stun-team-selected{outline:2px solid #ffce00;outline-offset:4px;border-radius:10px}


/* Mobile: apenas a pista desliza; legenda e restante dashboard permanecem fixos. */
.stun-race-scroll{display:contents}
.stun-race-mobile-hint{display:none}
@media(max-width:740px){
 .stun-race{min-width:0;max-width:100%;overflow:visible}
 .stun-race-scroll{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#d8b52e #1c2026;padding-bottom:8px}
 .stun-race-track-groups{box-sizing:border-box;width:900px!important;min-width:900px!important;max-width:none!important;height:345px!important;min-height:345px!important;margin:18px 16px 0;--race-line-y:292px!important}
 .stun-race-position{width:148px!important;max-width:none!important;top:auto;transform:translateX(-50%);transition:none}
 .stun-race-track-groups .stun-race-line{top:292px!important;height:10px}
 .stun-race-connector{top:90px;height:var(--race-line-distance)}
 .stun-race-anchor{top:calc(90px + var(--race-line-distance) - 6px)}
 .stun-race-axis{box-sizing:border-box;width:932px;min-width:932px;padding:0 16px;margin-top:3px}
 .stun-race-mobile-hint{display:block;text-align:center;color:#f2c94c;font-size:12px;font-weight:700;margin:5px 0 12px}
 .stun-race-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px;min-width:0;width:100%}
 .stun-race-legend>button{min-width:0;width:100%;padding:7px;text-align:left;font-size:11px;white-space:normal;overflow-wrap:anywhere}
}

/* Mobile hotfix: remove the 900px track from the document's intrinsic width.
   Only the absolutely positioned scrolling layer may overflow. */
.stun-race-viewport{display:contents}
@media(max-width:740px){
 html,body{max-width:100%;overflow-x:clip}
 .stun-race{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden}
 .stun-race-viewport{display:block;position:relative;width:100%;max-width:100%;min-width:0;height:395px;overflow:hidden;contain:layout}
 .stun-race-scroll{position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
 .stun-race-track-groups{width:900px!important;min-width:900px!important;max-width:none!important}
 .stun-race-axis{width:932px;min-width:932px}
 .stun-race-legend{max-width:100%;min-width:0}
}
