/* Los estilos compartidos de perfil, carnet, botones y avisos se mantienen
   en split-menus.css, cargado después de este archivo. */

/* Tamaños controlados: la foto reemplaza al escudo, no agranda su espacio. */
.fan-crest:has(>img.uc-player-avatar){
  display:inline-flex!important;
  width:30px!important;height:30px!important;
  min-width:30px!important;max-width:30px!important;
  min-height:30px!important;max-height:30px!important;
  flex:0 0 30px!important;
  align-items:center!important;justify-content:center!important;
  overflow:hidden!important;box-sizing:border-box!important}
.fan-crest>img.uc-player-avatar{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;flex:none!important}
.fan-player>.fan-crest:has(>img.uc-player-avatar){
  width:34px!important;height:34px!important;min-width:34px!important;
  max-width:34px!important;min-height:34px!important;max-height:34px!important;
  flex-basis:34px!important}
.fan-ranking .fan-crest:has(>img.uc-player-avatar){
  width:23px!important;height:23px!important;min-width:23px!important;
  max-width:23px!important;min-height:23px!important;max-height:23px!important;
  flex-basis:23px!important}
.uc-friend-score-crest .fan-crest:has(>img.uc-player-avatar){
  width:64px!important;height:64px!important;min-width:64px!important;
  max-width:64px!important;min-height:64px!important;max-height:64px!important;
  flex-basis:64px!important}
@media(max-width:440px){
 .uc-friend-score-crest .fan-crest:has(>img.uc-player-avatar){
  width:52px!important;height:52px!important;min-width:52px!important;
  max-width:52px!important;min-height:52px!important;max-height:52px!important;
  flex-basis:52px!important}}

/* Imágenes de perfil: aprovechar el círculo sin cambiar sus dimensiones. */
.fan-crest:has(>img.uc-player-avatar),
.uc-friend-score-crest:has(img.uc-player-avatar),
.uc-friend-player-crest:has(img.uc-player-avatar){
  overflow:hidden!important;
  border-radius:var(--uc-theme-border-radius-bc4afca6)!important}
.fan-crest>img.uc-player-avatar,
.uc-friend-score-crest img.uc-player-avatar,
.uc-friend-player-crest img.uc-player-avatar{
  width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:center!important;
  transform:scale(1.12);transform-origin:center;
  border-radius:var(--uc-theme-border-radius-bc4afca6)}

/* Actualización de identidad 29/10: escudos limpios y carnet con foto de Google */
#uc-avatar-change,.uc-avatar-arrows{display:none!important}
#uc-profile-panel .uc-carnet-photo{width:66px;height:66px;border-radius:var(--uc-theme-border-radius-bc4afca6);overflow:hidden;margin:7px auto 4px;background:var(--uc-theme-background-f71af6c6);display:flex;align-items:center;justify-content:center;font-size:var(--uc-theme-font-size-8339def1)}
#uc-profile-panel .uc-carnet-photo img{display:block;width:100%;height:100%;object-fit:cover}
#uc-profile-panel .uc-carnet-club{display:flex;align-items:center;justify-content:center;gap:var(--uc-theme-gap-b6da8ea1);margin:5px auto 7px;font:var(--uc-theme-font-290ffcf5);color:var(--uc-theme-color-49b4035f)}
#uc-profile-panel .uc-carnet-club .uc-carnet-crest{width:42px!important;height:42px!important;flex:0 0 42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;background:var(--uc-theme-background-14caf950)!important;border:var(--uc-theme-border-8fefc554)!important;border-radius:var(--uc-theme-border-radius-a650f311)!important;padding:var(--uc-theme-padding-fe346f18)!important;box-shadow:var(--uc-theme-box-shadow-8c4bb2e8)!important}
#uc-profile-panel .uc-carnet-club .uc-carnet-crest .fan-crest{width:100%!important;height:100%!important}
#uc-profile-panel .uc-carnet-club .uc-carnet-crest img{width:100%!important;height:100%!important;object-fit:contain!important}
.fan-player img.fan-crest,.fan-ranking img.fan-crest,.fan-preview img.fan-crest,
#ranking-content img.fan-crest,#uc-profile-panel img.fan-crest{
 background:var(--uc-theme-background-dd77378e)!important;border:var(--uc-theme-border-8fefc554)!important;border-radius:var(--uc-theme-border-radius-a650f311)!important;box-shadow:var(--uc-theme-box-shadow-8c4bb2e8)!important;padding:var(--uc-theme-padding-fe346f18)!important;
 object-fit:contain!important;image-rendering:auto!important;filter:var(--uc-theme-filter-48d4a2bc)!important;max-width:100%;max-height:100%}
.fan-player .fan-crest:not(img),.fan-ranking .fan-crest:not(img){border:var(--uc-theme-border-8fefc554)!important;border-radius:var(--uc-theme-border-radius-a650f311)!important;background:var(--uc-theme-background-dd77378e)!important;box-shadow:var(--uc-theme-box-shadow-8c4bb2e8)!important}
.fan-ranking img.fan-crest,#ranking-content .fan-ranking img.fan-crest{width:29px!important;height:29px!important}
.fan-player img.fan-crest{width:36px!important;height:36px!important}
#uc-google-registration[hidden]{display:none!important}
#uc-google-registration:not([hidden]){position:fixed!important;inset:0!important;z-index:2147483400!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:var(--uc-theme-padding-0199d971)!important;margin:0!important;background:var(--uc-theme-background-9220e149)!important;overflow-y:auto!important;box-sizing:border-box!important}
#uc-google-registration .uc-welcome-card{width:min(430px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;background:var(--uc-theme-background-4ccecc75);color:var(--uc-theme-color-fbccb7ae);border:var(--uc-theme-border-0e829e28);border-radius:var(--uc-theme-border-radius-f96a545e);box-shadow:var(--uc-theme-box-shadow-49b24219);padding:var(--uc-theme-padding-20bd8c1e);text-align:left;box-sizing:border-box}
#uc-google-registration .uc-welcome-brand{font:var(--uc-theme-font-d44f0aa7);letter-spacing:var(--uc-theme-letter-spacing-fd6c3d1a);text-align:center;color:var(--uc-theme-color-6c23ffd9)}
#uc-google-registration h2{font:var(--uc-theme-font-bfff61db);color:var(--uc-theme-color-e7e462f5);text-align:center;margin:10px 0}
#uc-google-registration p{font:var(--uc-theme-font-f077e998);margin:8px 0}
#uc-google-registration .uc-welcome-hint{font-size:var(--uc-theme-font-size-c2b35169);color:var(--uc-theme-color-74e62e78);margin:3px 0 8px}
#uc-google-registration label{font:var(--uc-theme-font-b95e39df);margin:12px 0 2px}
#uc-google-registration input,#uc-google-registration select{width:100%;box-sizing:border-box;background:var(--uc-theme-background-b601ffcd);color:var(--uc-theme-color-8ce8db97);border:var(--uc-theme-border-dd4fc428);border-radius:var(--uc-theme-border-radius-5f6d2b78);padding:var(--uc-theme-padding-eba33dff);font:var(--uc-theme-font-8fad0f66)}
#uc-google-registration #uc-reg-other-wrap{background:var(--uc-theme-background-8fcc2737);border-radius:var(--uc-theme-border-radius-5f6d2b78);padding:var(--uc-theme-padding-c0a716ee);margin-top:10px}
#uc-google-registration #uc-reg-other-wrap[hidden]{display:none!important}
#uc-google-registration #uc-register-google{display:block;width:100%;text-align:center;background:var(--uc-theme-background-7a312fff);color:var(--uc-theme-color-44a0796f);border:var(--uc-theme-border-8fefc554);border-radius:var(--uc-theme-border-radius-5f6d2b78);padding:var(--uc-theme-padding-5117b8fb);margin-top:14px;font:var(--uc-theme-font-bf69fa5d);cursor:pointer}
#uc-google-registration #uc-welcome-error{color:var(--uc-theme-color-d1abaf58);font-weight:var(--uc-theme-font-weight-1d87f5fe)}