/* Optimized Widget: leaderboard */
.widget-leaderboard--hud { position: relative; opacity: 1; visibility: visible; }
@keyframes leaderboardBgFadeIn {
  0% { opacity: 0; background-color: rgba(11, 12, 23, 0); }
  100% { opacity: 1; background-color: rgba(11, 12, 23, 0.9); }
}
@keyframes leaderboardSlideUpContainer {
  0% { opacity: 0; transform: translate3d(0, 80px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes card-highlight-pulse {
  0%, 100% { background: rgba(108, 99, 255, 0.2); box-shadow: inset 0 0 5px rgba(108, 99, 255, 0.4); transform: scale(1); }
  50% { background: rgba(108, 99, 255, 0.4); box-shadow: inset 0 0 20px rgba(108, 99, 255, 0.8), inset 0 0 40px rgba(139, 92, 246, 0.4); transform: scale(1.02); }
}
.player-cards-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: rgba(11, 12, 23, 0.86); border: 1px solid rgba(108, 99, 255, 0.2); border-radius: 6px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); position: relative; contain: layout; /* GPU:SAFARI-FIX */ transform: translate3d(0,0,0); animation: leaderboardSlideUpContainer 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.leaderboard-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; background: rgba(13, 15, 25, 0.6); border: 1px dashed rgba(108, 99, 255, 0.3); border-radius: 12px; margin: 2rem 0; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); }
.empty-icon-wrapper { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(108, 99, 255, 0.05) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; border: 1px solid rgba(167, 139, 250, 0.3); box-shadow: 0 0 20px rgba(108, 99, 255, 0.2), inset 0 0 15px rgba(108, 99, 255, 0.1); }
.empty-state-icon { font-size: 1.8rem; color: #a78bfa; filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6)); }
.empty-state-title { font-size: 1.4rem; font-weight: 800; color: #f8fafc; font-family: "Kanit", sans-serif; letter-spacing: 0.1em; margin-bottom: 0.5rem; text-shadow: 0 0 15px rgba(255, 255, 255, 0.3); text-transform: uppercase; }
.empty-state-desc { font-size: 0.95rem; color: #94a3b8; margin-bottom: 2rem; max-width: 80%; line-height: 1.5; font-weight: 400; }
.empty-state-btn { background: rgba(108, 99, 255, 0.15) !important; border: 1px solid rgba(108, 99, 255, 0.4) !important; color: #e2e8f0 !important; font-size: 0.8rem !important; padding: 0.6rem 1.5rem !important; transition: all 0.2s ease; }
.empty-state-btn:hover { background: rgba(108, 99, 255, 0.3) !important; border-color: rgba(167, 139, 250, 0.8) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3); }
.player-card { display: flex; align-items: center; height: 64px; padding: 0 1.5rem; gap: 0.75rem; position: relative; background: transparent; border-bottom: 2px solid rgba(255, 255, 255, 0.04); cursor: pointer; transition: background-color 0.12s ease-out, box-shadow 0.12s ease-out; overflow: visible !important; z-index: 1; /* ISOLATION:ROW */ isolation: isolate; /* DFI: Row animation disabled for global container performance on Safari */ transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.player-card:last-child { border-bottom: none; }
.player-card:hover { background: rgba(108, 99, 255, 0.18); transform: none !important; z-index: 50; box-shadow: inset 0 0 20px rgba(108, 99, 255, 0.1), 0 0 30px rgba(0, 0, 0, 0.4); will-change: background-color; }
.player-card:hover::before, .player-card:hover .player-card__rank, .player-card:hover .rank-badge-column, .player-card:hover .player-card__info, .player-card:hover .player-card__end-section, .player-card:hover .player-card__identity-rail { transform: translate3d(6px, 0, 0); }
.player-card__rank, .rank-badge-column, .player-card__info, .player-card__end-section, .player-card__identity-rail { transition: transform 0.12s ease-out; }
.player-card:hover::after { content: ""; position: absolute; top: 0; left: -20px; width: 25px; height: 100%; background: inherit; z-index: -1; pointer-events: none; }
/* ROW-ANIM:DISABLED */
/* --- VFX: PODIUM FLASH POP (SFX Style) --- */
@keyframes podiumFlashPop {
  0% { transform: translate3d(0,0,0) scale(1); filter: brightness(1) contrast(1); }
  20% { transform: translate3d(0,0,0) scale(0.96); filter: brightness(2.5) contrast(0.25); }
  100% { transform: translate3d(0,0,0) scale(1); filter: brightness(1.08) contrast(1.05); }
}
@keyframes flashSweep {
  0% { transform: translateX(-105%) skewX(-20deg); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateX(105%) skewX(-20deg); opacity: 0; }
}
.player-card--top1, .player-card--top2, .player-card--top3 { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.2) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); z-index: 10; will-change: filter, transform; }
.player-card--top1 { animation: podiumFlashPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards; }
.player-card--top2 { animation: podiumFlashPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards; }
.player-card--top3 { animation: podiumFlashPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards; }
.podium-shimmer { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); z-index: 200; pointer-events: none; transform: translateX(-105%) skewX(-20deg); opacity: 0; }
.player-card--top1 .podium-shimmer { animation: flashSweep 0.8s ease-out 0.3s forwards; }
.player-card--top2 .podium-shimmer { animation: flashSweep 0.8s ease-out 0.5s forwards; }
.player-card--top3 .podium-shimmer { animation: flashSweep 0.8s ease-out 0.7s forwards; }
/* GPU:SAFARI-OPTIM */
.widget-leaderboard--initializing .player-card__fog-placeholder { filter: none !important; }
.widget-leaderboard--initializing .player-card__fog-placeholder { filter: blur(0.85px) !important; }
.player-card--has-avatar { position: relative; background-image: none !important; }
.player-card--has-avatar::before { display: block; content: ""; position: absolute; inset: 0; background-image: var(--leaderboard-avatar); background-repeat: no-repeat !important; background-size: auto 100%; background-position: left center; z-index: 0; -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 10%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 10%); pointer-events: none; /* GPU:HARDWARE-LAYER */ transform: translate3d(0,0,0); will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; /* TRANSITION:HOVER-ENABLE */ transition: transform 0.2s ease-out, opacity 0.2s ease-out, filter 0.2s ease-out; }
/* Désactivation spécifique pendant l'ouverture */
.widget-leaderboard--initializing .player-card--has-avatar::before { transition: none !important; }
/* Stabilisation des positions d'avatars sans sélecteurs :has() */
.player-card--has-avatar.player-card--no-badge::before { background-position: -76px center; }
.player-card--top1.player-card--has-avatar::before { background-position: -69px center !important; }
.player-card--top1.player-card--has-avatar.player-card--no-badge::before { background-position: -135px center !important; }
.player-card--top2.player-card--has-avatar::before { background-position: -23px center !important; }
.player-card--top2.player-card--has-avatar.player-card--no-badge::before { background-position: -95px center !important; }
.player-card__decor-layer { position: absolute; top: 0; bottom: 0; left: 34%; width: min(47%, 470px); z-index: 0; overflow: hidden; pointer-events: none; background-image: var(--leaderboard-decor); background-repeat: no-repeat; background-size: cover; background-position: center 60%; opacity: 0.7; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%, #000 84%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 32%, #000 84%, transparent 100%); contain: layout paint; transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.2s ease-out, opacity 0.2s ease-out; }
.player-card--has-avatar > .player-card__decor-layer { position: absolute; z-index: 0; }
.player-card:hover .player-card__decor-layer { opacity: 0.9; transform: translate3d(6px,0,0); }
.player-card__ghost-link { position: absolute; top: 0; left: 20%; width: 7%; height: 100%; z-index: 5; cursor: pointer; background: transparent; }
.player-card__ghost-link:hover ~ .player-card__info .player-card__username { color: #fff; }
.player-card--has-avatar > * { position: relative; z-index: 1; }
.player-card--premium { box-shadow: inset 3px 0 0 rgba(250, 204, 21, 0.6), inset 0 0 20px rgba(250, 204, 21, 0.08); }
.player-card--self { background: rgba(108, 99, 255, 0.2) !important; border-left: 4px solid var(--accent-color, #6c63ff) !important; box-shadow: inset 0 0 25px rgba(108, 99, 255, 0.15), 0 0 15px rgba(108, 99, 255, 0.2); }
.player-card--highlight { animation: card-highlight-pulse 0.6s ease-in-out 4; z-index: 50; transform-origin: left center; }
.player-card--top1 { height: 85px; background: linear-gradient(90deg, rgba(250, 204, 21, 0.15) 0%, rgba(20, 22, 35, 0.2) 100%); border-left: 5px solid #facc15; box-shadow: inset 25px 0 35px -15px rgba(250, 204, 21, 0.8), 0 0 40px rgba(250, 204, 21, 0.15); will-change: transform, box-shadow; }
.player-card--top1 .player-card__rank { color: #fcefb9; font-size: 1.8rem; text-shadow: 0 0 15px rgba(255, 237, 165, 0.6); }
.player-card--top1 .player-card__username { color: #fcefb9 !important; font-size: 1.25rem; margin-bottom: 0; text-shadow: 0 0 10px rgba(250, 204, 21, 0.2); }
.player-card--top1 .player-card__score { color: #facc15; font-size: 1.5rem; text-shadow: 0 0 20px rgba(250, 204, 21, 0.3); }
.player-card--top2 { height: 70px; background: linear-gradient(90deg, rgba(226, 232, 240, 0.1) 0%, rgba(20, 22, 35, 0.1) 100%); border-left: 5px solid #e2e8f0; box-shadow: inset 18px 0 30px -15px rgba(226, 232, 240, 0.5); will-change: transform; }
.player-card--top2 .player-card__rank { color: #a5b4fc; font-size: 1.55rem; text-shadow: 0 0 15px rgba(165, 180, 252, 0.6); }
.player-card--top2 .player-card__username { color: #a5b4fc !important; font-size: 1rem; text-shadow: 0 0 8px rgba(34, 50, 70, 0.6); }
.player-card--top2 .player-card__score { color: #a5b4fc; font-size: 1.35rem; text-shadow: 0 0 15px rgba(226, 232, 240, 0.4); }
.player-card--top3 { height: 62px; background: linear-gradient(90deg, rgba(251, 146, 60, 0.08) 0%, rgba(20, 22, 35, 0.1) 100%); border-left: 5px solid #fb923c; box-shadow: inset 18px 0 30px -15px rgba(251, 146, 60, 0.4); will-change: transform; }
.player-card--top3 .player-card__rank { color: #fb923c; font-size: 1.3rem; text-shadow: 0 0 10px rgba(251, 146, 60, 0.5); }
.player-card--top3 .player-card__username { color: #fb923c !important; font-size: 0.95rem; }
.player-card--top3 .player-card__score { color: #fb923c; font-size: 1.25rem; text-shadow: 0 0 15px rgba(251, 146, 60, 0.3); }
/* Container Global (Gestion de l'overflow pour les ornements débordants) */
.widget-leaderboard { position: relative !important; overflow: visible !important; }
.leaderboard-list { list-style: none; padding: 0; margin: 0; overflow: visible !important; }
/* Force l'overflow visible sur les cartes pour laisser sortir les ornements */
.player-card { overflow: visible !important; }
/* --- VFX: ENROBEUR & ORNEMENTS (TOP 1, 2, 3) --- */
.player-card__enrobeur { position: absolute; inset: 0; pointer-events: none; z-index: 100; overflow: visible !important; /* Accélération GPU */ transform: translate3d(0,0,0); backface-visibility: hidden; }
/* Lignes Lumineuses (Bordures) */
.player-card__enrobeur::before, .player-card__enrobeur::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; z-index: 110; }
.player-card--top1 .player-card__enrobeur::before { top: 0; background: linear-gradient(90deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0) 25%, rgba(250, 204, 21, 0.6) 45%, #fff9e3 50%, rgba(250, 204, 21, 0.6) 55%, rgba(250, 204, 21, 0) 75%, rgba(250, 204, 21, 0.2) 100%); }
.player-card--top1 .player-card__enrobeur::after { bottom: 0; background: linear-gradient(90deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0) 25%, rgba(250, 204, 21, 0.6) 45%, #fff9e3 50%, rgba(250, 204, 21, 0.6) 55%, rgba(250, 204, 21, 0) 75%, rgba(250, 204, 21, 0.2) 100%); }
.player-card--top2 .player-card__enrobeur::before { top: 0; background: linear-gradient(90deg, rgba(165, 180, 252, 0.2) 0%, rgba(165, 180, 252, 0) 25%, rgba(165, 180, 252, 0.6) 45%, #ffffff 50%, rgba(165, 180, 252, 0.6) 55%, rgba(165, 180, 252, 0) 75%, rgba(165, 180, 252, 0.2) 100%); }
.player-card--top2 .player-card__enrobeur::after { bottom: 0; background: linear-gradient(90deg, rgba(165, 180, 252, 0.2) 0%, rgba(165, 180, 252, 0) 25%, rgba(165, 180, 252, 0.6) 45%, #ffffff 50%, rgba(165, 180, 252, 0.6) 55%, rgba(165, 180, 252, 0) 75%, rgba(165, 180, 252, 0.2) 100%); }
.player-card--top3 .player-card__enrobeur::before { top: 0; background: linear-gradient(90deg, rgba(251, 146, 60, 0.2) 0%, rgba(251, 146, 60, 0) 25%, rgba(251, 146, 60, 0.6) 45%, #ffeadb 50%, rgba(251, 146, 60, 0.6) 55%, rgba(251, 146, 60, 0) 75%, rgba(251, 146, 60, 0.2) 100%); }
.player-card--top3 .player-card__enrobeur::after { bottom: 0; background: linear-gradient(90deg, rgba(251, 146, 60, 0.2) 0%, rgba(251, 146, 60, 0) 25%, rgba(251, 146, 60, 0.6) 45%, #ffeadb 50%, rgba(251, 146, 60, 0.6) 55%, rgba(251, 146, 60, 0) 75%, rgba(251, 146, 60, 0.2) 100%); }
/* Ornements aux coins */
.ornement-corner { position: absolute; width: 86px; /* Taille par défaut (Top 1) */ height: 86px; z-index: 120; pointer-events: none; /* DFI optimization & Juicy transition */ transform: translate3d(0,0,0); backface-visibility: hidden; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); --ornement-hover-offset: 0px; }
/* Au hover de la ligne, les ornements rentrent à l'intérieur (effet de profondeur) */
/* Note: On réduit la course à gauche (4px) car la ligne parente se décale déjà de 6px vers la droite au hover */
.player-card:hover .ornement-corner--tl, .player-card:hover .ornement-corner--bl { --ornement-hover-offset: 5px; }
.player-card:hover .ornement-corner--tr, .player-card:hover .ornement-corner--br { --ornement-hover-offset: 8px; }
/* Tailles spécifiques par Rang */
.player-card--top2 .ornement-corner { width: 66px; height: 66px; }
.player-card--top3 .ornement-corner { width: 46px; height: 46px; }
/* Technique du Double Background pour une coloration organique sans aplat */
/* On superpose l'image originale (en haut) sur une couleur de fond avec un mode de fusion */
.ornement-corner::before { content: ""; position: absolute; inset: 0; background-image: var(--ornement-url); background-size: contain; background-repeat: no-repeat; z-index: 1; }
.ornement-corner::after { content: ""; position: absolute; inset: 0; z-index: 2; /* On utilise l'image comme masque pour la couleur, mais on joue sur l'opacité */ -webkit-mask-image: var(--ornement-url); mask-image: var(--ornement-url); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; mix-blend-mode: multiply; /* Fusionne la couleur dans les ombres du PNG */ opacity: 0.6; }
/* Coloration par Rang (Teintes riches et métalliques) */
.player-card--top1 .ornement-corner::after { background-color: #d4af37; }
/* Or Antique */
.player-card--top2 .ornement-corner::after { background-color: #71717a; }
/* Argent froid */
.player-card--top3 .ornement-corner::after { background-color: #92400e; }
/* Bronze profond */
/* Positions et Inversions (Sortie du cadre assumée) */
.ornement-corner--tl { top: -3px; left: -7px; transform: translate3d(var(--ornement-hover-offset), 0, 0); }
.ornement-corner--tr { top: -3px; right: -1px; transform: scaleX(-1) translate3d(var(--ornement-hover-offset), 0, 0); }
.ornement-corner--bl { bottom: -3px; left: -7px; transform: scaleY(-1) translate3d(var(--ornement-hover-offset), 0, 0); }
.ornement-corner--br { bottom: -3px; right: -1px; transform: scale(-1) translate3d(var(--ornement-hover-offset), 0, 0); }
/* Gestion de l'affichage sélectif via variables CSS (Défaut: 4 ornements) */
.player-card__enrobeur { --show-ornements-bottom: block; }
.ornement-corner--bl, .ornement-corner--br { display: var(--show-ornements-bottom); }
/* Masquage des ornements du bas pour le Top 1-3 (Désactivé pour test) */
.player-card--top1 .player-card__enrobeur, .player-card--top2 .player-card__enrobeur, .player-card--top3 .player-card__enrobeur { --show-ornements-bottom: block; }
.player-card--has-avatar.player-card--top1, .player-card--has-avatar.player-card--top2, .player-card--has-avatar.player-card--top3, .player-card--has-avatar.player-card--premium { background-color: rgba(11, 12, 23, 0.4) !important; background-image: none !important; }
.player-card__rank { width: 65px; display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 1.2rem; font-weight: 800; font-family: "Kanit", sans-serif; color: #4b5563; flex-shrink: 0; position: relative; }
.rank-badge-column { display: flex; align-items: center; justify-content: center; width: var(--rank-col-width, 64px); margin-right: var(--rank-col-margin, 0.75rem); flex-shrink: 0; position: relative; z-index: 5; transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), margin-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.rank-badge-icon { width: 44px; height: 44px; transform: scale(0.85) translate3d(0, 0, 0); object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.player-card:hover .rank-badge-icon { transform: scale(1) rotate(-5deg) translate3d(0, 0, 0); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); will-change: transform, filter; }
.player-card--top1 .rank-badge-icon { width: 82px; height: 82px; margin: -2px 0 0 -8px; z-index: 10; transform: scale(0.79) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.7)); will-change: transform, filter; }
.player-card--top2 .rank-badge-icon { width: 68px; height: 68px; margin-left: -10px; transform: scale(0.78) translate3d(0, 0, 0); filter: drop-shadow(0 0 10px rgba(165, 180, 252, 0.5)); will-change: transform, filter; }
.player-card--top3 .rank-badge-icon { width: 58px; height: 58px; margin-left: -12px; transform: scale(0.77) translate3d(0, 0, 0); filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.4)); will-change: transform, filter; }
@keyframes oracle-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)); transform: translate3d(0,0,0) scale(0.76); }
  50% { filter: drop-shadow(0 0 15px rgba(251, 191, 36, 1)); transform: translate3d(0,0,0) scale(0.8); }
}
.rank-oracle .rank-badge-icon { animation: oracle-pulse 3s infinite; }
.player-card__meta-column { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; min-width: 0; margin-right: 0.5rem; }
.player-card__meta-column--has-identity { gap: 2.8rem; }
.player-card__info { display: flex; flex-direction: column; min-width: 0; width: auto; flex: 0 1 auto; gap: 0; position: relative; }
.player-card__info--has-identity-rail { padding-right: 0; }
.player-card__username { font-size: 1rem; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.63); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s ease; }
.player-card__status-line { display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; margin-top: 1px; min-width: 0; width: auto; overflow: visible; }
.player-card__status-meta { display: flex; align-items: center; gap: 0.5rem; min-width: 0; overflow: visible; flex: 0 1 auto; }
.player-card__tier, .player-card__level { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.player-card__tier--premium { color: #fbbf24; }
.player-card__level { color: #6c63ff; font-size: 0.8rem; }
.player-card__battle-pass-inline { display: inline-flex; align-items: center; justify-content: flex-start; gap: 0; position: relative; flex-shrink: 0; white-space: nowrap; margin-left: 0.05rem; overflow: visible; }
.player-card__battle-pass-inline-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 0; color: inherit; text-decoration: none; white-space: nowrap; overflow: visible; }
.player-card__battle-pass-icon { width: 35px; height: 35px; object-fit: contain; flex-shrink: 0; position: absolute; left: -11px; top: 50%; transform: translate3d(0, -44%, 0) scale(1.04); z-index: 3; filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.35)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.player-card__battle-pass-inline.is-final .player-card__battle-pass-icon { filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.35)); }
.player-card__battle-pass-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px 0 0; border-radius: 5px; background: linear-gradient(135deg, rgba(139, 125, 255, 0.96) 0%, rgba(176, 102, 255, 0.88) 100%); border: 1px solid rgba(250, 204, 21, 0.30); box-shadow: 0 0 6px rgba(176, 102, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14); color: #facc15; font-size: 0.6rem; font-weight: 800; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.player-card__battle-pass-chip > span { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; padding: 0 5px 0 30px; }
.player-card__battle-pass-chip i { font-size: 0.44rem; line-height: 1; }
.player-card__battle-pass-chip.is-final { background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 0 8px rgba(250, 204, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18); color: #111827; }
.player-card__battle-pass-chip.is-final i { color: #5b2c00; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.player-card__battle-pass-chip.is-archive { background: linear-gradient(135deg, rgba(139, 125, 255, 0.72) 0%, rgba(176, 102, 255, 0.56) 100%); border-color: rgba(250, 204, 21, 0.18); box-shadow: none; color: #f5d36b; }
.player-card__battle-pass-chip.is-archive.is-final { background: linear-gradient(135deg, #f8d66a 0%, #f59e0b 58%, #b45309 100%); border-color: rgba(255, 248, 214, 0.42); box-shadow: 0 0 8px rgba(250, 204, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22); color: #5b2c00; }
.player-title-badge { display: inline-flex; align-items: center; justify-content: center; padding: 1px 8px; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 4px; font-size: 0.55rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; height: 17px; flex-shrink: 0; white-space: nowrap; width: max-content; min-width: max-content; }
.player-card__identity-rail { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: var(--identity-rail-width, 112px); min-width: var(--identity-rail-width, 112px); max-width: var(--identity-rail-width, 112px); flex-shrink: 0; overflow: visible; opacity: 1; position: static; transform: translate3d(0,0,0); margin-left: 2.6rem; align-self: center; }
.player-card__identity-rail.is-empty { visibility: hidden; }
.player-card__identity-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 2px; background: rgba(10, 12, 20, 0.6); border: 1px solid rgba(108, 99, 255, 0.2); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.35); flex-shrink: 0; overflow: hidden; transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.player-card__identity-badge--forge-rank { background: rgba(10, 12, 20, 0.72); border-color: rgba(167, 139, 250, 0.34); }
.player-card__identity-badge--forge-badge { background: rgba(10, 12, 20, 0.72); border-color: rgba(148, 163, 184, 0.34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 10px rgba(148, 163, 184, 0.10), 0 2px 6px rgba(0, 0, 0, 0.35); }
.player-card__identity-badge-icon { width: 34px; height: 34px; object-fit: contain; transform: scale(1) translate3d(0,0,0); filter: drop-shadow(0 0 5px rgba(0,0,0,0.45)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.player-card__identity-badge--battle-pass { position: relative; text-decoration: none; color: inherit; overflow: visible; background: linear-gradient(135deg, rgba(108, 99, 255, 0.24) 0%, rgba(176, 102, 255, 0.16) 58%, rgba(10, 12, 20, 0.72) 100%); }
.player-card__identity-badge--battle-pass::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 34% 34%, rgba(176, 102, 255, 0.18) 0%, rgba(108, 99, 255, 0.08) 42%, transparent 72%); opacity: 1; }
.player-card__identity-badge--battle-pass::after { content: ""; position: absolute; inset: -10%; z-index: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 74% 18%, rgba(250, 204, 21, 0.14) 0%, rgba(176, 102, 255, 0.07) 34%, transparent 68%); opacity: 0.44; filter: blur(2px); }
.player-card__identity-badge--battle-pass.is-live { border-color: rgba(250, 204, 21, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 7px rgba(108, 99, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.35); }
.player-card__identity-badge--battle-pass .player-card__identity-badge-icon { width: 35px; height: 35px; transform: translate3d(0, -1px, 0); position: relative; z-index: 4; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.50)) drop-shadow(0 0 5px rgba(167, 139, 250, 0.26)); }
.player-card__identity-badge-bp { position: absolute; top: auto; right: -5px; bottom: -5px; left: auto; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, rgba(139, 125, 255, 0.94) 0%, rgba(176, 102, 255, 0.88) 100%); border: 1px solid rgba(250, 204, 21, 0.30); box-shadow: 0 0 6px rgba(176, 102, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14); pointer-events: none; z-index: 3; transform: none; }
.player-card__identity-badge-bp__fill { position: absolute; inset: 0 auto 0 0; width: var(--bp-progress, 0%); background: linear-gradient(90deg, rgba(108, 99, 255, 0.90) 0%, rgba(176, 102, 255, 0.94) 74%, rgba(216, 180, 254, 0.96) 100%); box-shadow: 0 0 7px rgba(176, 102, 255, 0.24); transition: width 0.25s ease-out, box-shadow 0.25s ease-out; }
.player-card__identity-badge-bp__text { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: "Kanit", sans-serif; font-size: 0.46rem; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; color: #facc15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72); white-space: nowrap; padding: 0; }
.player-card__identity-badge-bp__current { color: #facc15; font-size: 1.35em; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.76), 0 0 7px rgba(250, 204, 21, 0.18); }
.player-card__identity-badge-bp__separator { color: #fde68a; font-size: 0.75em; font-weight: 500; opacity: 0.88; margin: 0 1px; }
.player-card__identity-badge-bp__total { color: #fde68a; font-size: 0.9em; font-weight: 500; opacity: 0.9; }
.player-card__identity-badge--battle-pass.is-archive { background: rgba(10, 12, 20, 0.66); border-color: rgba(108, 99, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 6px rgba(0, 0, 0, 0.32); }
.player-card__identity-badge--battle-pass.is-archive::before { background: radial-gradient(circle at 42% 38%, rgba(108, 99, 255, 0.12) 0%, transparent 68%); }
.player-card__identity-badge--battle-pass.is-archive::after { opacity: 0; }
.player-card__end-section { display: flex; align-items: center; margin-left: auto; gap: 0.5rem; }
.player-card__quota-reached { min-width: 114px; height: 38px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px 9px; flex-shrink: 0; cursor: help; outline: none; border: 1px solid rgba(74, 222, 128, 0.4); border-radius: 6px; background: linear-gradient(135deg, rgba(6, 78, 59, 0.68), rgba(8, 47, 73, 0.76)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 11px rgba(34, 197, 94, 0.12); text-transform: uppercase; transform: translate3d(0,0,0); backface-visibility: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; }
.player-card__quota-reached:hover, .player-card__quota-reached:focus-visible { border-color: rgba(134, 239, 172, 0.76); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 15px rgba(34, 197, 94, 0.24); }
.player-card__quota-main { display: inline-flex; align-items: center; gap: 4px; color: #86efac; font-family: "Kanit", sans-serif; font-size: 0.64rem; font-weight: 900; line-height: 1; letter-spacing: 0.03em; white-space: nowrap; }
.player-card__quota-main i { color: #4ade80; font-size: 0.62rem; filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.48)); }
.player-card__quota-state { margin-top: 2px; color: rgba(186, 230, 253, 0.84); font-family: "JetBrains Mono", monospace; font-size: 0.54rem; font-weight: 700; line-height: 1; letter-spacing: 0.08em; white-space: nowrap; }
.quota-tooltip__lead { color: #d1fae5; }
.quota-tooltip__lead i { color: #4ade80 !important; }
.quota-tooltip__lead strong { color: #86efac; font-weight: 900; }
.quota-tooltip__note { color: #bae6fd; }
.quota-tooltip__note strong { color: #facc15; font-weight: 900; }
.player-card__score-container { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; }
.player-card__score { font-size: 1.05rem; font-weight: 700; font-family: "Kanit", sans-serif; color: #94a3b8; text-align: right; min-width: 80px; }
.player-card--premium .player-card__score { color: #fbbf24; }
.player-card__rank-evo { position: absolute; left: 100%; margin-left: 2px; font-size: 0.85rem; font-weight: 900; display: flex; align-items: center; white-space: nowrap; }
.player-card__rank-evo.is-up { color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.player-card__rank-evo.is-down { color: #f87171; text-shadow: 0 0 8px rgba(248, 113, 113, 0.6); }
.player-card__fog { position: relative; display: inline-flex; align-items: center; justify-content: center; color: #ced9ec; font-size: 0.9rem; min-width: 40px; }
.player-card__fog-placeholder { opacity: 0.4; font-weight: 800; filter: blur(3px); }
.player-card__fog i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); text-shadow: 0 0 10px rgba(0, 0, 0, 0.9); }
.player-card__rewards { display: flex; align-items: center; flex-shrink: 0; }
.player-card__reward-wrapper { position: relative; cursor: help; display: flex; flex-direction: column; align-items: flex-end; outline: none; z-index: auto; }
.player-card__reward-wrapper:hover, .player-card__reward-wrapper:focus-within { z-index: 10001; }
.player-card__reward-line { font-size: 0.65rem; font-weight: 500; white-space: nowrap; line-height: 1; display: flex; align-items: center; gap: 4px; opacity: 0.85; }
.reward-tooltip__item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.reward-tooltip__item i { font-size: 0.9rem; width: 1.1rem; text-align: center; margin-top: 2px; }
.reward-tooltip__item span { flex: 1; font-size: 0.75rem; color: #f8fafc; font-weight: 500; }
.reward-tooltip__item.is-locked span { color: #94a3b8; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.4); }
.reward-tooltip__note { width: 100%; font-size: 0.65rem; font-style: italic; color: #ef4444; margin-left: 1.7rem; }
.reward-tooltip__note--eligible { margin-left: 0; margin-top: 0.2rem; color: #4ade80; font-style: normal; font-weight: 700; line-height: 1.25; }
.reward-tooltip__note--pass { margin-left: 0; margin-top: 0.2rem; color: #fb923c; font-style: normal; font-weight: 700; line-height: 1.25; }
.reward-tooltip__action { width: 100%; display: flex; justify-content: flex-start; margin-top: 0.45rem; pointer-events: none; position: relative; z-index: 1; }
.reward-tooltip__action .player-hud-widget__cta { margin-left: 0 !important; flex: 0 0 auto; max-width: none; pointer-events: auto; color: #fff !important; text-decoration: none !important; }
.reward-tooltip__cta { align-self: flex-start; pointer-events: auto; color: #fff !important; text-decoration: none !important; }
.reward-tooltip__cta i,
.reward-tooltip__cta span { color: #fff !important; text-decoration: none !important; }
.reward-status { color: #94a3b8; text-transform: lowercase; font-weight: 400; }
.reward-status--eligible { color: #4ade80; font-weight: 700; }
.reward-status--locked,
.reward-status--perdu { color: #fb923c; opacity: 1; font-weight: 700; }
.reward-value { color: #e2e8f0; font-family: "Kanit", sans-serif; font-weight: 700; }
.reward-lot { position: relative; padding: 0 2px; }
.reward-lot--active { color: #4ade80; font-weight: 700; }
.reward-lot--locked { color: #64748b; opacity: 0.6; }
.reward-lot--locked::after { content: ""; position: absolute; left: -2px; top: 50%; width: calc(100% + 4px); height: 1px; background-color: #fb923c; transform: translateY(-50%) rotate(-15deg); }
.player-card__compare-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: rgba(108, 99, 255, 0.1); border: 1px solid rgba(108, 99, 255, 0.3); border-radius: 6px; transition: all 0.2s; flex-shrink: 0; }
.player-card__compare-btn:hover { background: rgba(108, 99, 255, 0.25); border-color: rgba(108, 99, 255, 0.6); transform: scale(1.1) rotate(5deg); z-index: 10002; }
.player-card__compare-icon { width: 44px; height: 44px; object-fit: contain; }
.player-card .player-hud-widget__cta { height: 32px; padding: 0 10px; margin-left: 0.5rem; flex-shrink: 0; }
.player-card__skin-cta { min-width: 150px; height: 34px; box-sizing: border-box; position: absolute; top: 50%; left: 50%; z-index: 8; display: inline-flex; align-items: center; justify-content: center; gap: 0.42rem; padding: 0 0.8rem; overflow: hidden; color: #ecfeff; text-decoration: none; text-transform: uppercase; border: 1px solid rgba(34, 211, 238, 0.5); border-radius: 7px; background: linear-gradient(135deg, rgba(76, 29, 149, 0.94), rgba(8, 145, 178, 0.9)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 14px rgba(34, 211, 238, 0.16); font-family: "Kanit", sans-serif; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.04em; white-space: nowrap; transform: translate3d(-50%, -50%, 0); backface-visibility: hidden; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; }
.player-card__skin-cta:hover, .player-card__skin-cta:focus-visible { color: #fff; border-color: rgba(165, 243, 252, 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 20px rgba(34, 211, 238, 0.34); filter: brightness(1.12); transform: translate3d(-50%, -50%, 0) scale(1.05); outline: none; }
.player-card__skin-cta img { width: 25px; height: 25px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 0 5px rgba(165, 243, 252, 0.5)); transform: translate3d(0,0,0); backface-visibility: hidden; }
.player-hud-widget { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; align-items: center; gap: 1rem; background: rgba(13, 17, 34, 0.92); border: 2px solid rgba(108, 99, 255, 0.3); border-radius: 16px; padding: 0.8rem 1.5rem; box-shadow: 0 0 25px rgba(108, 99, 255, 0.4), 0 15px 50px rgba(0, 0, 0, 0.8); animation: hud-slide-up 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); transition: all 0.3s; overflow: visible; }
.player-hud-widget:hover { background: rgba(18, 22, 45, 0.98); border-color: #fff; transform: translateX(-50%) translateY(-5px) scale(1.02); box-shadow: 0 0 50px rgba(108, 99, 255, 0.6), 0 20px 60px rgba(0, 0, 0, 0.9); }
@keyframes hud-slide-up {
  0% { opacity: 0; transform: translateX(-50%) translateY(40px) scale(0.7); }
  70% { transform: translateX(-50%) translateY(-5px) scale(1.05); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.player-hud-widget__border-light { position: absolute; inset: 0; border-radius: 16px; padding: 2px; background: conic-gradient(from var(--light-angle, 0deg), transparent 0%, transparent 80%, rgba(167, 139, 250, 0.8) 90%, #fff 95%, rgba(167, 139, 250, 0.8) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; animation: border-light-rotate 4s linear infinite; }
@property --light-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-light-rotate {
  from { --light-angle: 0deg; }
  to { --light-angle: 360deg; }
}
.player-hud-widget__inner { display: flex; align-items: center; gap: 0.75rem; }
.player-hud-widget__avatar-container { position: relative; width: 201px; height: 86px; flex-shrink: 0; z-index: 1; display: flex; align-items: center; justify-content: center; margin: -0.8rem -3rem -0.8rem -1.5rem; overflow: hidden; border-radius: 14px 0 0 14px; }
.player-hud-widget__rank { display: flex; align-items: center; justify-content: center; min-width: 56px; height: 32px; padding: 0 0.5rem; background: transparent; border: 1px solid rgba(108, 99, 255, 0.4); border-radius: 6px; z-index: 2; }
.hud-rank-number { font-size: 1.4rem; font-weight: 900; color: #fff; font-family: "Kanit", sans-serif; text-shadow: 0 0 10px rgba(108, 99, 255, 0.8); }
.hud-rank-evolution { font-size: 0.8rem; font-weight: 700; margin-left: 0.3rem; }
.hud-rank-evolution.is-up { color: #4ade80; }
.hud-rank-evolution.is-down { color: #f87171; }
.player-hud-widget__stats { display: flex; flex-direction: column; gap: 1px; z-index: 2; }
.hud-stat-score { font-size: 1.1rem; font-weight: 800; color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, 0.3); font-family: "Kanit", sans-serif; }
.hud-stat-name { font-size: 0.75rem; color: #e2e8f0; font-weight: 600; text-transform: uppercase; }
.hud-stat-name--fog { display: inline-flex; align-items: flex-start; gap: 0.35rem; text-transform: uppercase; font-size: 0.72rem; line-height: 1.1; }
.hud-stat-name--fog .hud-stat-name__icon { font-size: 0.95rem; color: #c7d2fe; margin-top: 0.1rem; }
.hud-stat-name--fog .hud-stat-name__text { display: inline-flex; flex-direction: column; gap: 0; font-size: 0.72rem; line-height: 1.1; font-weight: 600; color: #94a3b8; }
.hud-stat-name--fog .hud-stat-name__line { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; font-size: 0.72rem; line-height: 1.1; font-weight: 700; }
.hud-stat-fog-pill { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-glow 2s infinite; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
@keyframes hud-fog-pill-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); transform: translate3d(0, 0, 0) scale(1); }
  50% { box-shadow: 0 0 0.6rem 0 rgba(74, 222, 128, 0.18); transform: translate3d(0, 0, 0) scale(1.05); }
}
.player-hud-widget__cta { display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.7rem; background: linear-gradient(135deg, #ea580c, #dc2626); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; }
.player-hud-widget__cta:hover { background: linear-gradient(135deg, #f97316, #ef4444); transform: scale(1.05); }
.player-hud-widget__actions { min-width: 116px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; position: relative; z-index: 2; }
.player-hud-widget__actions .player-hud-widget__cta { width: 100%; height: 28px; box-sizing: border-box; justify-content: center; margin: 0; flex: 0 0 auto; }
.player-hud-widget__actions .player-hud-widget__premium-badge { width: 100%; min-height: 28px; box-sizing: border-box; }
.player-hud-widget__skin-cta { width: 100%; height: 28px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; padding: 0 0.45rem; overflow: hidden; color: #cffafe; text-decoration: none; text-transform: uppercase; border: 1px solid rgba(34, 211, 238, 0.46); border-radius: 6px; background: linear-gradient(135deg, rgba(76, 29, 149, 0.88), rgba(8, 145, 178, 0.84)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 10px rgba(34, 211, 238, 0.12); font-family: "Kanit", sans-serif; font-size: 0.57rem; font-weight: 900; letter-spacing: 0.025em; white-space: nowrap; transform: translate3d(0,0,0); backface-visibility: hidden; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; }
.player-hud-widget__skin-cta:hover, .player-hud-widget__skin-cta:focus-visible { color: #fff; border-color: rgba(165, 243, 252, 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 15px rgba(34, 211, 238, 0.28); filter: brightness(1.12); transform: translate3d(0,0,0) scale(1.04); outline: none; }
.player-hud-widget__skin-cta img { width: 19px; height: 19px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 0 4px rgba(165, 243, 252, 0.42)); transform: translate3d(0,0,0); backface-visibility: hidden; }
.player-hud-widget__find-me { min-width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: rgba(108, 99, 255, 0.2); border: 2px solid rgba(167, 139, 250, 0.4); border-radius: 12px; color: #c084fc; cursor: pointer; transition: all 0.3s; overflow: visible; }
.player-hud-widget__find-me:hover { background: rgba(108, 99, 255, 0.4); color: #fff; border-color: #fff; transform: scale(1.15) rotate(3deg); box-shadow: 0 0 25px rgba(167, 139, 250, 0.6); }
.player-hud-widget__find-me i { font-size: 1.4rem; transition: 0.4s; }
.find-me-text { font-size: 0.55rem; font-weight: 900; text-transform: uppercase; }
body.has-sticky-bottom-ad .player-hud-widget { bottom: 119px; }
@media (min-width: 768px) {
  .widget-leaderboard--initializing .player-cards-list { animation: leaderboardBgFadeIn 0.3s ease-out backwards; }
}
@media (min-width: 768px) and (max-width: 1279.98px) {
  .player-card__info { width: auto; flex: 1 1 auto; }
  .player-card__skin-cta { display: none; }
  .player-hud-widget { bottom: calc(env(safe-area-inset-bottom) + 138px); transform: translateX(-50%) scale(0.9) translate3d(0, 0, 0); will-change: transform, bottom; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.4s ease; }
}
@media (max-width: 767.98px) {
  .player-hud-widget { bottom: calc(env(safe-area-inset-bottom) + 110px); }
}
@media (max-width: 767px) {
  * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .player-hud-widget { animation: none !important; transform: translateX(-50%) !important; filter: none !important; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s !important; width: calc(100% - 20px); max-width: 400px; padding: 0.5rem 0.3rem; gap: 0.3rem; bottom: calc(env(safe-area-inset-bottom) + 110px); border-radius: 12px; box-shadow: none !important; z-index: 39; }
  .player-card__fog-placeholder, .rank-badge-icon, .player-title-badge, .leaderboard-empty, [class*="tooltip"] { filter: none !important; animation: none !important; }
  .player-card__fog-placeholder { filter: blur(0.85px) !important; }
  .reward-tooltip__action .player-hud-widget__cta span { display: inline !important; }
  @keyframes hud-slide-up {
    0% { opacity: 0; transform: translateX(-50%) translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }
  .widget-leaderboard--initializing .player-card, .widget-leaderboard--initializing .player-cards-list { animation: none !important; opacity: 1 !important; transform: none !important; }
  .player-card { transition: none !important; height: 60px; padding: 0 0.5rem; gap: 0.4rem; }
  .player-card--has-avatar::before { background-position: -120px center !important; -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 20%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 20%); }
  .player-card--top1.player-card--has-avatar::before { background-position: -130px center !important; }
  .player-card--top2.player-card--has-avatar::before { background-position: -130px center !important; }
  .player-card__decor-layer { left: 30%; width: 58%; opacity: 0.54; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%, #000 82%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 32%, #000 82%, transparent 100%); }
  .player-card__rank { width: 32px; font-size: 0.85rem; gap: 1px; }
  .player-card--top1 .player-card__rank { font-size: 1.1rem; }
  .rank-badge-column { width: 42px !important; margin-right: 2px !important; }
  .rank-badge-icon { width: 38px !important; height: 38px !important; transform: scale(0.85) !important; margin: 0 0 0 -10px !important; }
  .player-card__meta-column { gap: 0.6rem; margin-right: 0.25rem; }
  .player-card__meta-column--has-identity { gap: 2rem; }
  .player-card__info { flex: 1; min-width: 0; width: auto; background: linear-gradient(to right, rgba(11, 12, 23, 0.8) 0%, rgba(11, 12, 23, 0.4) 40%, transparent 100%); padding-left: 0.5rem; margin-left: -0.25rem; border-radius: 3px; }
  .player-card__info--has-identity-rail { padding-right: 0; }
  .player-card__username { font-size: 0.85rem; max-width: 120px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
  .player-card__status-line { gap: 0.3rem; }
  .player-card__identity-rail { width: var(--identity-rail-width, 78px); min-width: var(--identity-rail-width, 78px); max-width: var(--identity-rail-width, 78px); gap: 3px; margin-left: 1.8rem; }
  .player-card__identity-badge { width: 42px; height: 42px; padding: 2px; }
  .player-card__identity-badge-icon { width: 34px; height: 34px; }
  .player-card__tier { font-size: 0.55rem; }
  .player-card__battle-pass-inline { gap: 0; margin-left: 0; }
  .player-card__battle-pass-icon { width: 12px; height: 12px; left: -4px; transform: translate3d(0, -50%, 0) scale(1); }
  .player-card__battle-pass-chip { min-width: 16px; height: 16px; padding: 0 4px 0 0; font-size: 0.42rem; border-radius: 4px; }
  .player-card__battle-pass-chip > span { padding: 0 4px 0 12px; }
  .player-title-badge { padding: 0 5px; font-size: 0.5rem; height: 15px; border-color: rgba(255, 255, 255, 0.1); }
  .player-card--no-badge.player-card--has-avatar::before { background-position: -155px center !important; }
  .player-card__end-section { margin-left: auto; gap: 0.4rem; flex-shrink: 0; }
  .player-card__quota-reached { min-width: 94px; height: 34px; padding: 2px 6px; }
  .player-card__quota-main { font-size: 0.55rem; }
  .player-card__quota-state { margin-top: 1px; font-size: 0.47rem; }
  .player-card__score-container { align-items: flex-end; gap: 0; }
  .player-card__score { font-size: 0.95rem; min-width: 60px; line-height: 1.1; }
  .player-card__reward-line { font-size: 0.55rem; opacity: 0.7; }
  .player-card__compare-btn { width: 30px; height: 30px; }
  .player-card__compare-icon { width: 30px; height: 30px; }
  .player-card .player-hud-widget__cta { height: 28px; padding: 0 8px; margin-left: 0.2rem; }
  .player-card .player-hud-widget__cta span { display: none; }
  body.has-sticky-bottom-ad .player-hud-widget { bottom: calc(env(safe-area-inset-bottom) + 195px); }
  .player-hud-widget__border-light { display: none !important; }
  .player-hud-widget__inner { width: 100%; gap: 0.3rem; justify-content: space-between; }
  .player-hud-widget__avatar-container { width: 131px !important; height: 58px !important; margin: -0.5rem 0 -0.5rem -0.2rem !important; border-radius: 8px; flex-shrink: 0; background: rgba(255, 255, 255, 0.05); }
  .player-hud-widget__avatar-container img { width: 100%; height: 100%; object-fit: cover; }
  .player-hud-widget__rank { min-width: 42px; height: 28px; padding: 0 4px; margin-left: -50px; }
  .hud-rank-number { font-size: 1rem; }
  .player-hud-widget__stats { gap: 0; min-width: 0; }
  .hud-stat-score { font-size: 0.85rem; line-height: 1; }
  .hud-stat-name { font-size: 0.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player-card__skin-cta { display: none !important; }
  .player-hud-widget__actions { width: 98px; min-width: 98px; gap: 3px; }
  .player-hud-widget__actions .player-hud-widget__cta { height: 25px; padding: 0 0.35rem; font-size: 0.62rem; }
  .player-hud-widget__skin-cta { height: 25px; padding: 0 0.25rem; gap: 0.18rem; font-size: 0.49rem; letter-spacing: 0; }
  .player-hud-widget__skin-cta img { width: 16px; height: 16px; }
  .player-hud-widget__cta { padding: 0.4rem 0.6rem; font-size: 0.75rem; flex: 1; justify-content: center; max-width: 105px; }
  .player-hud-widget__cta i { font-size: 0.9rem; }
  .player-hud-widget__find-me { width: 42px; height: 42px; min-width: 42px; border-radius: 10px; }
  .player-hud-widget__find-me i { font-size: 1.1rem; }
  .find-me-text { display: none; }
}

@media (max-width: 767px) {
  .widget-leaderboard { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }
  .widget-leaderboard .jgtr-window-glued { overflow-x: hidden !important; }
  .widget-leaderboard .jgtr-glued-scroll { overflow-x: hidden !important; }
  .player-card { min-width: 0 !important; width: 100% !important; padding: 0 0.35rem !important; gap: 0.25rem !important; }
  .player-card__rank { min-width: 0 !important; width: 28px !important; font-size: 0.8rem !important; gap: 0.25rem !important; }
  .player-card__meta-column { flex: 1 1 0 !important; min-width: 0 !important; gap: 0.4rem !important; margin-right: 0.2rem !important; }
  .player-card__info { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; padding-left: 0.35rem !important; margin-left: 0 !important; }
  .player-card__identity-rail { min-width: 0 !important; width: max-content !important; max-width: 82px !important; margin-left: 0.85rem !important; gap: 2px !important; }
  .player-card__username { max-width: 100% !important; white-space: normal !important; }
  .player-card__rank-evo { left: auto !important; right: 0 !important; margin-left: 0 !important; transform: translateX(0) !important; }
  .player-card__end-section { min-width: 0 !important; flex-shrink: 1 !important; gap: 0.25rem !important; }
  .player-card--has-quota .player-card__end-section { display: grid !important; grid-template-columns: 50px 28px; grid-template-rows: 24px 28px; align-items: center; justify-items: end; column-gap: 3px !important; row-gap: 1px !important; width: 81px !important; min-width: 81px !important; flex: 0 0 81px !important; }
  .player-card--has-quota .player-card__quota-reached { grid-column: 1 / 3; grid-row: 1; width: 81px !important; min-width: 81px !important; height: 24px !important; box-sizing: border-box; padding: 1px 2px !important; gap: 1px !important; }
  .player-card--has-quota .player-card__quota-main { font-size: 0.38rem !important; }
  .player-card--has-quota .player-card__quota-state { margin-top: 0 !important; font-size: 0.38rem !important; }
  .player-card--has-quota .player-card__score-container { grid-column: 1; grid-row: 2; }
  .player-card--has-quota .player-card__compare-btn, .player-card--has-quota .player-card__end-section > .player-hud-widget__cta { grid-column: 2; grid-row: 2; margin-left: 0 !important; }
  .player-card--has-quota .player-card__identity-rail { margin-left: 0.2rem !important; }
  .player-card--has-quota .player-card__username { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .player-card--has-quota .player-card__enrobeur { z-index: 0 !important; }
  .player-card--has-quota > .player-card__end-section { position: relative; z-index: 2 !important; }
  .player-card__quota-reached { min-width: 62px !important; width: 62px !important; height: 30px !important; padding: 2px !important; }
  .player-card__quota-main { gap: 2px !important; font-size: 0.4rem !important; letter-spacing: 0 !important; }
  .player-card__quota-main i { display: none !important; }
  .player-card__quota-state { margin-top: 1px !important; font-size: 0.4rem !important; letter-spacing: 0.02em !important; }
  .rank-badge-column { width: 32px !important; margin-right: 1px !important; }
  .rank-badge-icon { width: 32px !important; height: 32px !important; margin: 0 0 0 -8px !important; }
  .player-card__score { min-width: 50px !important; font-size: 0.9rem !important; }
  .player-card__compare-btn { width: 28px !important; height: 28px !important; }
  .player-card__compare-icon { width: 28px !important; height: 28px !important; }
  .player-card__identity-rail { width: max-content !important; max-width: 82px !important; }
  .player-card__username { font-size: 0.85rem !important; }
  .player-card__status-line { gap: 0.25rem !important; }
  .player-card__status-meta { min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; }
  .player-card__identity-badge { width: 38px !important; height: 38px !important; padding: 1px !important; }
  .player-card__identity-badge--battle-pass .player-card__identity-badge-icon { width: 28px !important; height: 28px !important; transform: translate3d(0,-1px,0) scale(1) !important; }
  .player-card__identity-badge-bp { width: 16px !important; height: 16px !important; top: auto !important; right: -4px !important; bottom: -4px !important; left: auto !important; transform: none !important; }
  .player-card__identity-badge-bp__text { font-size: 0.42rem !important; letter-spacing: 0 !important; padding: 0 !important; }
  .player-card__tier { font-size: 0.5rem !important; }
  .player-title-badge { padding: 0 4px !important; font-size: 0.45rem !important; height: 14px !important; max-width: 82px !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
}

/* --- LEADERBOARD STANDARDIZED FEED SCROLL (Internalized) --- */
.widget-leaderboard .jgtr-window-glued { --glued-accent: #6c63ff; --glued-accent-hover: #a78bfa; margin-top: 1rem; background: rgba(11, 12, 23, 0.9) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 8px; overflow: visible !important; /* Crucial pour laisser la scrollbar respirer */ }
.widget-leaderboard .jgtr-glued-scroll { background: transparent; overflow-y: scroll !important; overflow-x: hidden !important; display: block !important; }
@media (max-width: 767px) {
  body.page-rankings .widget-leaderboard .jgtr-window-glued { overflow: visible !important; overflow-x: hidden !important; max-width: 100% !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-scroll { height: auto !important; max-height: none !important; overflow-y: visible !important; overflow-x: hidden !important; -webkit-overflow-scrolling: auto; touch-action: pan-y; }
  body.page-rankings .widget-leaderboard .jgtr-scroll-hint { display: none !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination { width: 100% !important; overflow-x: hidden !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex { gap: 0.35rem !important; min-width: 0 !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .space-x-3 { column-gap: 0.35rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .space-x-2 { column-gap: 0.25rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .space-x-4 { column-gap: 0.35rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .space-x-3 > * + * { margin-left: 0.35rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .space-x-2 > * + * { margin-left: 0.25rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .space-x-4 > * + * { margin-left: 0.35rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex:first-child { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex:first-child > .flex.items-center.space-x-2 { min-width: 0 !important; overflow: hidden !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex:first-child > .flex.items-center.space-x-2 > a, body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex:first-child > .flex.items-center.space-x-2 > span { flex: 0 0 auto !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .pagination-button { width: 32px !important; min-width: 32px !important; height: 32px !important; padding: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; font-size: 0 !important; letter-spacing: 0 !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination .pagination-button i { margin: 0 !important; font-size: 0.72rem !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex.items-center.space-x-4 > span { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 46px !important; height: 38px !important; padding: 0 0.45rem !important; white-space: nowrap !important; font-size: 0 !important; line-height: 1 !important; letter-spacing: 0 !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex.items-center.space-x-4 > span > span { font-size: 0.64rem !important; line-height: 1 !important; }
  body.page-rankings .widget-leaderboard .jgtr-glued-pagination > .flex > .flex.items-center.space-x-4 > span > span:first-child::after { content: "/"; color: rgba(148, 163, 184, 0.8); margin: 0 0.2rem; }
}
/* MÉTHODE DE PERSISTANCE ABSOLUE (Webkit) */
.widget-leaderboard .jgtr-glued-scroll::-webkit-scrollbar { width: 10px !important; height: 10px !important; display: block !important; }
.widget-leaderboard .jgtr-glued-scroll::-webkit-scrollbar-track { background: #0f111a !important; border-radius: 0; }
.widget-leaderboard .jgtr-glued-scroll::-webkit-scrollbar-thumb { background: #6c63ff !important; border: 3px solid #0f111a !important; border-radius: 10px !important; min-height: 40px !important; }
@media (min-width: 1024px) {
  .widget-leaderboard .tactical-tooltip { display: none !important; }
  .player-hud-widget .tactical-tooltip { display: none !important; }
}
/* BADGE PREMIUM COMPÉTITEUR DANS LEADERBOARD HUD */
.player-hud-widget__premium-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px 6px 30px; background: linear-gradient(135deg, #6c63ff 0%, #b066ff 100%); border: 1px solid rgba(250, 204, 21, 0.3); border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #facc15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); position: relative; overflow: visible; }
.player-hud-widget__premium-badge .pass-icon { position: absolute; left: -6px; top: 56%; transform: translateY(-50%); width: 34px; height: 44px; object-fit: contain; z-index: 1; }
@keyframes hud-premium-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); transform: scale(1); }
  50% { box-shadow: 0 6px 18px rgba(108, 99, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); transform: scale(1.02); }
}
/* Responsive: cacher le texte sur mobile */
@media (max-width: 640px) {
  .player-hud-widget__premium-badge { padding: 4px 8px; }
  .player-hud-widget__premium-badge span { display: none; }
  .player-hud-widget__premium-badge .pass-icon { width: 20px; height: 20px; }
}
