/* Tema global del héroe activo. Se carga después de HUD y navegación. */
body[data-hero="valkron"]{--hero:#d21f32;--hero2:#ff7651;--hero-rgb:210,31,50}body[data-hero="nyxor"]{--hero:#8b3dff;--hero2:#d46cff;--hero-rgb:139,61,255}body[data-hero="zareth"]{--hero:#248cff;--hero2:#72ddff;--hero-rgb:36,140,255}body[data-hero="thorgar"]{--hero:#d3a62d;--hero2:#b8e46d;--hero-rgb:211,166,45}body[data-hero="lirael"]{--hero:#39b86c;--hero2:#c1eb71;--hero-rgb:57,184,108}body[data-hero="malgor"]{--hero:#e44720;--hero2:#ffae43;--hero-rgb:228,71,32}body[data-hero="vorlis"]{--hero:#7138c9;--hero2:#c571ff;--hero-rgb:113,56,201}body[data-hero="morvek"]{--hero:#50a83c;--hero2:#a8ed5f;--hero-rgb:80,168,60}body[data-hero="nocthar"]{--hero:#643c9e;--hero2:#cb8cff;--hero-rgb:100,60,158}body[data-hero="sentinel"]{--hero:#c6ad69;--hero2:#fff0af;--hero-rgb:198,173,105}body[data-hero="neutral"],body[data-hero=""]{--hero:#6d8da2;--hero2:#c4e1eb;--hero-rgb:109,141,162}
body.ui-reborn{background:radial-gradient(1100px 560px at 83% 0,rgba(var(--hero-rgb),.19),transparent 62%),radial-gradient(760px 480px at 8% 100%,rgba(var(--hero-rgb),.09),transparent 68%),#060b09;transition:background .45s ease,color .3s ease}.game-stage{background:radial-gradient(950px 540px at 80% 5%,rgba(var(--hero-rgb),.17),transparent 64%),linear-gradient(180deg,#09100d,#050907 72%)}.hero-atmosphere{height:300px;background:linear-gradient(112deg,rgba(var(--hero-rgb),.16),transparent 48%),repeating-linear-gradient(115deg,transparent 0 90px,rgba(var(--hero-rgb),.04) 91px 92px);border-bottom-color:rgba(var(--hero-rgb),.3)}
.game-sidebar{--side-glow:var(--hero);--side-gold:var(--hero2);background:radial-gradient(460px 330px at -18% -8%,rgba(var(--hero-rgb),.25),transparent 63%),radial-gradient(400px 290px at 115% 14%,rgba(var(--hero-rgb),.12),transparent 63%),linear-gradient(180deg,#09130f 0%,#050a08 100%);border-right-color:rgba(var(--hero-rgb),.58);box-shadow:18px 0 54px rgba(0,0,0,.62),inset -1px 0 rgba(var(--hero-rgb),.34)}.game-sidebar::after{background:linear-gradient(transparent 0 3%,var(--hero) 20%,var(--hero2) 50%,var(--hero) 80%,transparent 98%);box-shadow:0 0 17px rgba(var(--hero-rgb),.78)}.sidebar-brand{background:linear-gradient(125deg,rgba(var(--hero-rgb),.28),rgba(8,21,15,.76) 51%,rgba(var(--hero-rgb),.1));border-bottom-color:rgba(var(--hero-rgb),.35)}.sidebar-brand::before{background:linear-gradient(90deg,transparent,var(--hero2),transparent)}.brand-mark{color:var(--hero2);border-color:rgba(var(--hero-rgb),.85);background:linear-gradient(145deg,rgba(var(--hero-rgb),.3),rgba(5,21,13,.9));box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 0 19px rgba(var(--hero-rgb),.25)}.brand-copy span{color:var(--hero2)}.sidebar-collapse-btn{border-color:rgba(var(--hero-rgb),.38);color:var(--hero2)}.sidebar-collapse-btn:hover{background:rgba(var(--hero-rgb),.2);border-color:rgba(var(--hero-rgb),.8)}.sidebar-hero{border-color:rgba(var(--hero-rgb),.4);background:linear-gradient(135deg,rgba(var(--hero-rgb),.21),rgba(6,23,15,.82))}.sidebar-hero::before{background:linear-gradient(var(--hero),var(--hero2));box-shadow:0 0 16px rgba(var(--hero-rgb),.72)}.sidebar-hero-kicker{color:var(--hero2)}
.game-nav{scrollbar-color:rgba(var(--hero-rgb),.75) transparent}.game-nav::-webkit-scrollbar-thumb{background:linear-gradient(var(--hero),var(--hero2))}.nav-separator::after{background:linear-gradient(90deg,transparent,rgba(var(--hero-rgb),.38),transparent)}.nav-group{border-color:rgba(var(--hero-rgb),.27);background:linear-gradient(135deg,rgba(var(--hero-rgb),.16),rgba(4,16,10,.92))}.nav-group::before{background:linear-gradient(90deg,transparent,rgba(var(--hero-rgb),.8),transparent)}.nav-group:hover,.nav-group.is-open{border-color:rgba(var(--hero-rgb),.68)}.nav-group.is-open{background:linear-gradient(135deg,rgba(var(--hero-rgb),.25),rgba(5,21,13,.94));box-shadow:inset 0 1px rgba(255,255,255,.1),0 0 0 1px rgba(var(--hero-rgb),.13),0 12px 24px rgba(0,0,0,.2)}.nav-group-toggle:hover{background:linear-gradient(90deg,rgba(var(--hero-rgb),.2),rgba(var(--hero-rgb),.04))}.nav-group-icon{color:var(--hero2);border-color:rgba(var(--hero-rgb),.38);background:linear-gradient(145deg,rgba(var(--hero-rgb),.25),rgba(3,16,10,.85))}.nav-group:hover .nav-group-icon,.nav-group.is-open .nav-group-icon{color:var(--hero2);border-color:rgba(var(--hero-rgb),.8);background:linear-gradient(145deg,rgba(var(--hero-rgb),.4),rgba(8,40,24,.92));box-shadow:0 0 15px rgba(var(--hero-rgb),.26),inset 0 1px rgba(255,255,255,.1)}.nav-group.is-open .nav-group-caret{stroke:var(--hero2)}.nav-group-item a:hover,.nav-group-item a.active{border-left-color:rgba(var(--hero-rgb),.7);background:linear-gradient(90deg,rgba(var(--hero-rgb),.27),rgba(var(--hero-rgb),.05));box-shadow:inset 3px 0 var(--hero),0 0 14px rgba(var(--hero-rgb),.16)}.nav-group-item a:hover::before,.nav-group-item a.active::before{background:var(--hero2);box-shadow:0 0 11px rgba(var(--hero-rgb),.75)}.nav-admin,.nav-logout{border-color:rgba(var(--hero-rgb),.34);background:linear-gradient(135deg,rgba(var(--hero-rgb),.21),rgba(4,16,10,.9))}.nav-admin:hover,.nav-logout:hover{border-color:rgba(var(--hero-rgb),.8);background:linear-gradient(135deg,rgba(var(--hero-rgb),.38),rgba(7,26,16,.94))}.nav-admin i,.nav-logout i{color:var(--hero2)}
.game-header{border-bottom-color:rgba(var(--hero-rgb),.68);border-top-color:rgba(var(--hero-rgb),.42);box-shadow:0 15px 38px rgba(0,0,0,.58),0 0 28px rgba(var(--hero-rgb),.08),inset 0 1px rgba(255,255,255,.04)}.game-header:before,.game-header:after{background:linear-gradient(transparent,var(--hero) 28%,var(--hero2) 52%,var(--hero) 76%,transparent);box-shadow:0 0 14px rgba(var(--hero-rgb),.55)}.game-header__center{background:radial-gradient(circle at 50% 50%,rgba(var(--hero-rgb),.23),transparent 62%),linear-gradient(180deg,#0d1016,#05070b)}.game-header__center:before,.game-header__center:after{color:var(--hero2);text-shadow:0 0 13px var(--hero)}.header-player-panel__identity{background:linear-gradient(90deg,rgba(var(--hero-rgb),.14),transparent)}.header-player-panel__avatar{border-color:rgba(var(--hero-rgb),.7);background:radial-gradient(circle,rgba(var(--hero-rgb),.37),#080b10 70%);color:var(--hero2);box-shadow:0 0 0 3px rgba(var(--hero-rgb),.11),0 0 20px rgba(var(--hero-rgb),.28)}
.game-content h1{border-left-color:var(--hero);text-shadow:0 0 25px rgba(var(--hero-rgb),.27)}.game-content a:not(.nav-group-item a){color:var(--hero2)}.footer{border-top-color:rgba(var(--hero-rgb),.26)!important}.ui-reborn button:focus-visible,.ui-reborn a:focus-visible{outline:2px solid var(--hero2);outline-offset:2px}

/* Debe ir después del tema del héroe: conserva el PNG común en todos los menús. */
.game-sidebar .nav-group-toggle{background-image:url('../img/ui/menu-button-frame.webp?v=3')!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-color:transparent!important;border:0!important;box-shadow:none!important}
.game-sidebar.is-collapsed .nav-group-toggle{background-image:none!important}
.game-sidebar .nav-group,.game-sidebar .nav-group:hover,.game-sidebar .nav-group.is-open{border:0!important;background:transparent!important;box-shadow:none!important}
.game-sidebar .nav-group::before{display:none!important}
.game-sidebar .nav-group-toggle:hover,.game-sidebar .nav-group.is-open .nav-group-toggle{background-color:transparent!important;box-shadow:none!important;filter:brightness(1.16) drop-shadow(0 0 9px rgba(242,185,71,.36))}
.game-sidebar .nav-group-icon{left:17.2%!important;transform:translate(-50%,-50%)!important}
.game-sidebar.is-collapsed .nav-group-icon{left:auto!important;transform:none!important}
body.ui-reborn .game-sidebar .nav-group-toggle:hover,body.ui-reborn .game-sidebar .nav-group.is-open .nav-group-toggle{background-image:url('../img/ui/menu-button-frame.webp?v=3')!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-color:transparent!important}

/* HUD superior fijo dentro del marco oficial. */
body.ui-reborn .game-header{position:sticky!important;top:0;z-index:70;width:calc(100% - 18px);min-height:96px;margin:0 auto 10px;padding:8px 42px;grid-template-columns:minmax(320px,1fr) 260px minmax(500px,1.2fr);border:0!important;background:linear-gradient(180deg,#10151b,#06090d)!important;box-shadow:none!important;overflow:visible}
body.ui-reborn .game-header::before,body.ui-reborn .game-header::after{display:none!important}
body.ui-reborn .game-header__left,body.ui-reborn .game-header__center,body.ui-reborn .game-header__right{position:relative;z-index:1;border:0!important;background:transparent!important}
body.ui-reborn .header-economy,body.ui-reborn .header-player-panel{background:transparent!important;box-shadow:none!important}
body.ui-reborn .header-economy__item{min-height:78px;padding:0 15px!important;background:transparent!important;border-right-color:rgba(219,176,85,.22)!important;box-shadow:none!important}
body.ui-reborn .game-header__center::before,body.ui-reborn .game-header__center::after{display:none!important}
body.ui-reborn .header-logo{min-height:78px;background-image:url('../img/auth/defiende-el-trono-logo-gold.png?v=1')!important;background-size:auto 56px!important}
body.ui-reborn .game-header__right{background:transparent!important}
body.ui-reborn .header-player-panel__identity{background:transparent!important;border-left-color:rgba(219,176,85,.2)}
body.ui-reborn .header-player-panel__meta .ui-tag{background:transparent!important;border-right-color:rgba(219,176,85,.16)!important}
/* El marco del HUD queda detrás de los datos, sin filtros que emborronen recursos. */
body.ui-reborn .game-header{isolation:isolate;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.ui-reborn .game-header .header-economy,body.ui-reborn .game-header .header-economy__item,body.ui-reborn .game-header .header-player-panel,body.ui-reborn .game-header .header-player-panel__identity,body.ui-reborn .game-header .header-player-panel__meta{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* HUD de escritorio: cada grupo ocupa su zona y el logo permanece en el centro real. */
@media(min-width:1051px){
body.ui-reborn .game-header{display:block!important;min-height:110px;padding:0}
body.ui-reborn .game-header__left{position:absolute!important;z-index:2;left:86px;top:15px;width:420px;height:76px;padding:0}
body.ui-reborn .game-header__center{position:absolute!important;left:50%;top:50%;z-index:3;width:220px;height:76px;transform:translate(-50%,-50%);justify-content:center!important;pointer-events:none}
body.ui-reborn .header-logo{min-height:76px!important;background-position:center!important;background-size:auto 62px!important}
body.ui-reborn .game-header__right{position:absolute!important;z-index:2;right:86px;top:13px;height:80px;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px}
body.ui-reborn .header-player-panel{display:grid!important;grid-template-columns:auto 148px!important;width:auto!important;min-width:0}
body.ui-reborn .header-player-panel__meta .ui-tag{min-width:40px!important;padding:0 5px!important;font-size:8px!important}
body.ui-reborn .header-player-panel__identity{gap:7px;padding:0 8px!important}
body.ui-reborn .header-player-panel__avatar{width:38px;height:38px;font-size:16px}
body.ui-reborn .header-player-panel__name strong{font-size:14px}.header-player-panel__name span{font-size:8px;letter-spacing:.13em}
body.ui-reborn .header-vitals{min-width:152px!important;width:152px;padding:6px 8px!important;gap:4px}
body.ui-reborn .header-vitals b{grid-template-columns:17px 1fr auto;gap:4px;font-size:8px}
body.ui-reborn .header-economy__item{justify-content:center!important;min-height:70px;padding:0 15px 10px!important;gap:8px}
body.ui-reborn .header-economy__item::after{left:0!important;right:0!important;bottom:7px!important;text-align:center}
body.ui-reborn .header-economy__item strong{margin-bottom:8px!important}
body.ui-reborn .header-economy__item:nth-child(3)::after{content:"DOTIRIAN"}
}
/* HUD reconstruido: sin PNG de marco, con zonas simples y legibles. */
body.ui-reborn .game-header{position:sticky!important;top:0;z-index:70;display:grid!important;grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr);align-items:center;gap:18px;width:calc(100% - 24px);min-height:90px;margin:8px auto 12px;padding:5px 22px;border:1px solid rgba(211,166,74,.48)!important;border-radius:4px;background:linear-gradient(180deg,#10151b,#06090d)!important;box-shadow:inset 0 1px rgba(255,232,170,.1),0 12px 32px rgba(0,0,0,.42)!important;overflow:visible}
body.ui-reborn .game-header::before,body.ui-reborn .game-header::after{display:block!important;top:11px!important;bottom:11px!important;width:1px!important;background:linear-gradient(transparent,#e0ae52,transparent)!important;box-shadow:0 0 8px rgba(224,174,82,.45)!important}
body.ui-reborn .game-header__left,body.ui-reborn .game-header__center,body.ui-reborn .game-header__right{position:static!important;z-index:auto;transform:none!important;width:auto;height:auto;padding:0;background:transparent!important}
body.ui-reborn .game-header__left{justify-content:flex-start!important}.game-header__center{justify-content:center!important}.game-header__right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px}
body.ui-reborn .header-economy{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:470px;background:transparent!important}
body.ui-reborn .header-economy__item{min-height:66px;padding:0 12px 13px!important;justify-content:center!important;gap:7px;border-right:1px solid rgba(211,166,74,.22)!important;background:transparent!important;color:#f3ead8!important}
body.ui-reborn .header-economy__item:last-child{border-right:0!important}.header-economy__item::after{left:0!important;right:0!important;bottom:5px!important;text-align:center;color:#a99a7a!important}.header-economy__item:nth-child(3)::after{content:"DOTIRIAN"}
body.ui-reborn .game-header .ui-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:#d8af55!important;background:transparent!important}.hud-icon{width:100%;height:100%;display:block}
body.ui-reborn .header-economy__item strong{margin:0 0 4px!important;font-size:14px!important;letter-spacing:.06em;color:#f6eedc!important}
body.ui-reborn .header-logo{position:relative;z-index:4;width:100%;min-height:72px!important;padding:0!important;background-position:center!important;background-size:auto 82px!important;transform:translateY(9px) scale(1.18);transform-origin:center;pointer-events:none}
body.ui-reborn .header-player-panel{display:grid!important;grid-template-columns:auto 142px;width:auto!important;gap:0;background:transparent!important}
body.ui-reborn .header-player-panel__meta{gap:0}.header-player-panel__meta .ui-tag{min-width:41px!important;padding:0 5px!important;background:transparent!important;color:#bdb4a2!important;font-size:8px!important}.header-player-panel__meta .ui-tag .ui-icon{width:18px;height:18px;color:#d8af55!important}
body.ui-reborn .header-player-panel__identity{gap:8px;padding:0 9px!important;background:transparent!important;border-left:1px solid rgba(211,166,74,.24)!important}.header-player-panel__avatar{width:38px;height:38px;transform:rotate(45deg);color:#d8af55!important}.header-player-panel__avatar .hud-icon{transform:rotate(-45deg);width:20px;height:20px}.header-player-panel__name strong{font-size:14px!important;color:#f2e6d0!important}.header-player-panel__name span{font-size:8px!important;letter-spacing:.13em!important}
body.ui-reborn .header-player-panel__avatar{overflow:hidden}body.ui-reborn .header-player-panel__avatar img{width:118%;height:118%;object-fit:cover;transform:rotate(-45deg) scale(1.24)}
body.ui-reborn .header-vitals{min-width:156px;width:156px;padding:7px 9px!important;gap:4px;border-left:1px solid rgba(211,166,74,.24)!important;border-top:0!important;border-right:0!important;border-bottom:0!important;background:transparent!important}.header-vitals b{grid-template-columns:16px 1fr auto;gap:4px;font-size:8px!important}.header-vitals i{height:5px!important}.header-vitals em{font-style:normal;color:#dcd3c2}
@media(max-width:1300px){body.ui-reborn .game-header{grid-template-columns:minmax(280px,1fr) 170px minmax(410px,1fr);gap:8px;padding:5px 14px}.header-economy__item{padding-left:7px!important;padding-right:7px!important}.header-player-panel__meta .ui-tag{min-width:34px!important;padding:0 3px!important}.header-player-panel__identity{width:132px}.header-vitals{min-width:135px!important;width:135px}}
@media(max-width:1050px){body.ui-reborn .game-header{grid-template-columns:1fr;gap:7px;width:calc(100% - 16px);padding:10px 16px;background-size:auto!important}.game-header__left,.game-header__center,.game-header__right{justify-content:center!important}.game-header__right{flex-wrap:wrap}.header-economy{max-width:480px!important}.header-player-panel{min-height:64px}.header-vitals{min-width:160px!important;width:160px}}

/* Pantallas de Comunidad: usan !important porque sus estilos se cargan después del tema base. */
body[data-hero] .chat-layout{border-color:rgba(var(--hero-rgb),.42)!important}body[data-hero] .chat-panel{background:linear-gradient(180deg,rgba(var(--hero-rgb),.1),#0a100e)!important}body[data-hero] .chat-channels{border-right-color:rgba(var(--hero-rgb),.28)!important}body[data-hero] .chat-online{border-left-color:rgba(var(--hero-rgb),.28)!important}body[data-hero] .chat-live{border-color:rgba(var(--hero-rgb),.58)!important;background:rgba(var(--hero-rgb),.14)!important;color:var(--hero2)!important}body[data-hero] .chat-live span{background:var(--hero)!important;box-shadow:0 0 12px rgba(var(--hero-rgb),.8)!important}body[data-hero] .chat-channel:hover,body[data-hero] .chat-player:hover,body[data-hero] .chat-online-player:hover{border-color:rgba(var(--hero-rgb),.62)!important;background:rgba(var(--hero-rgb),.13)!important}body[data-hero] .chat-channel.is-active,body[data-hero] .chat-player.is-active{border-color:rgba(var(--hero-rgb),.78)!important;background:linear-gradient(90deg,rgba(var(--hero-rgb),.28),rgba(var(--hero-rgb),.06))!important;box-shadow:inset 3px 0 var(--hero)!important}body[data-hero] .chat-channel-icon,body[data-hero] .chat-avatar,body[data-hero] .chat-title-mark{border-color:rgba(var(--hero-rgb),.65)!important;color:var(--hero2)!important;background:linear-gradient(145deg,rgba(var(--hero-rgb),.22),#102018)!important}body[data-hero] .chat-conversation{background:radial-gradient(circle at 55% 0,rgba(var(--hero-rgb),.22),transparent 36%),#0b1410!important}body[data-hero] .chat-conversation-head{border-bottom-color:rgba(var(--hero-rgb),.35)!important}body[data-hero] .chat-refresh{border-color:rgba(var(--hero-rgb),.52)!important;color:var(--hero2)!important}body[data-hero] .chat-message b{color:var(--hero2)!important}body[data-hero] .chat-message p{border-color:rgba(var(--hero-rgb),.35)!important;background:rgba(var(--hero-rgb),.12)!important}body[data-hero] .chat-message.is-mine p{border-color:rgba(var(--hero-rgb),.6)!important;background:rgba(var(--hero-rgb),.21)!important}body[data-hero] .chat-compose{border-color:rgba(var(--hero-rgb),.52)!important}body[data-hero] .chat-compose button{border-color:var(--hero2)!important;background:var(--hero)!important;color:#07120c!important}body[data-hero] .chat-player small i.is-online,body[data-hero] .chat-online-player>i.is-online{background:var(--hero)!important;box-shadow:0 0 10px rgba(var(--hero-rgb),.8)!important}

body[data-hero] .ranking-season{border-color:rgba(var(--hero-rgb),.65)!important;background:linear-gradient(135deg,rgba(var(--hero-rgb),.28),#15130d)!important}body[data-hero] .ranking-season>span,body[data-hero] .ranking-season small,body[data-hero] .ranking-crown,body[data-hero] .ranking-podium-card strong,body[data-hero] .ranking-my-position>strong,body[data-hero] .ranking-position.is-top,body[data-hero] .ranking-row>strong{color:var(--hero2)!important}body[data-hero] .ranking-podium{border-color:rgba(var(--hero-rgb),.42)!important;background:radial-gradient(circle at 50% 0,rgba(var(--hero-rgb),.27),transparent 54%),linear-gradient(180deg,#14261d,#0b120f)!important}body[data-hero] .ranking-podium-card>.ranking-avatar,body[data-hero] .ranking-avatar{border-color:rgba(var(--hero-rgb),.62)!important;background:linear-gradient(145deg,rgba(var(--hero-rgb),.3),#122319)!important;color:var(--hero2)!important}body[data-hero] .ranking-place-1>.ranking-avatar{border-color:var(--hero2)!important;box-shadow:0 0 28px rgba(var(--hero-rgb),.4)!important}body[data-hero] .ranking-podium-card>div{border-color:rgba(var(--hero-rgb),.58)!important;background:rgba(var(--hero-rgb),.14)!important}body[data-hero] .ranking-place-1>div{border-color:var(--hero2)!important;background:linear-gradient(180deg,rgba(var(--hero-rgb),.35),#24180d)!important}body[data-hero] .ranking-my-position{border-color:rgba(var(--hero-rgb),.72)!important;background:linear-gradient(90deg,rgba(var(--hero-rgb),.31),#102118)!important}body[data-hero] .ranking-rank{border-color:rgba(var(--hero-rgb),.52)!important;background:rgba(var(--hero-rgb),.16)!important;color:var(--hero2)!important}body[data-hero] .ranking-table-wrap{border-color:rgba(var(--hero-rgb),.42)!important}body[data-hero] .ranking-table-header{border-bottom-color:rgba(var(--hero-rgb),.32)!important}body[data-hero] .ranking-row.is-me{background:linear-gradient(90deg,rgba(var(--hero-rgb),.25),transparent)!important;box-shadow:inset 3px 0 var(--hero)!important}

/* Avatar del jugador: círculo real, sin rotación ni ampliación del archivo subido. */
body.ui-reborn .header-player-panel__avatar{overflow:hidden!important;border-radius:50%!important;transform:none!important}
body.ui-reborn .header-player-panel__avatar .hud-icon{transform:none!important}
body.ui-reborn .header-player-panel__avatar img{display:block;width:100%!important;height:100%!important;object-fit:cover;object-position:center;transform:none!important}

/* HUD móvil: una sola fila. Los detalles se muestran solo al tocar el botón +. */
.mobile-hud-more{display:none}
.header-economy__compact{display:none}
@media(max-width:700px){
  body.ui-reborn .game-header{position:sticky!important;top:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 68px 42px 30px!important;grid-template-rows:60px!important;grid-auto-rows:0!important;align-items:center!important;gap:4px!important;width:100%!important;min-height:60px!important;height:60px!important;max-height:60px!important;margin:0!important;padding:0 8px 0 54px!important;border-width:0 0 1px!important;border-radius:0!important;background:linear-gradient(180deg,#111720,#080b10)!important;box-shadow:0 5px 18px rgba(0,0,0,.48)!important;overflow:visible!important}
  body.ui-reborn .game-header::before,body.ui-reborn .game-header::after{display:none!important}
  body.ui-reborn .nav-toggle{position:fixed!important;top:10px!important;left:10px!important;z-index:90!important;width:36px!important;height:40px!important;padding:8px!important;border-color:rgba(225,180,73,.65)!important;background:rgba(8,12,17,.92)!important}
  body.ui-reborn .nav-toggle span{width:18px!important}
  body.ui-reborn .game-header__left{grid-column:1!important;min-width:0!important;display:block!important}
  body.ui-reborn .game-header__center{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;grid-column:2!important;grid-row:1!important;display:block!important;align-self:stretch!important;width:68px!important;height:60px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
  body.ui-reborn .game-header__right{grid-column:3!important;display:block!important;min-width:0!important}
  body.ui-reborn .header-economy{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:none!important;width:100%!important;min-height:60px!important}
  body.ui-reborn .header-economy__item{position:relative!important;min-width:0!important;min-height:60px!important;padding:0 2px!important;gap:3px!important;border-right:1px solid rgba(211,166,74,.18)!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
  body.ui-reborn .header-economy__item:last-child{border-right:0!important}
  body.ui-reborn .header-economy__item::after{display:none!important}
  body.ui-reborn .game-header .header-economy .ui-icon{width:15px!important;height:15px!important;flex:0 0 15px!important}
  body.ui-reborn .header-economy__item strong{min-width:0!important;margin:0!important;font-size:10px!important;line-height:1!important;letter-spacing:.01em!important;white-space:nowrap!important;color:#f3e7d0!important}
  body.ui-reborn .header-economy__full{display:none!important}
  body.ui-reborn .header-economy__compact{display:inline!important}
  body.ui-reborn .header-logo{display:block!important;width:68px!important;height:60px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-size:58px auto!important;background-position:center!important;box-shadow:none!important;transform:none!important}
  body.ui-reborn .header-player-panel{display:block!important;width:auto!important;min-height:0!important;background:transparent!important}
  body.ui-reborn .header-player-panel__identity{display:grid!important;place-items:center!important;width:42px!important;height:52px!important;padding:0!important;border:0!important}
  body.ui-reborn .header-player-panel__avatar{width:35px!important;height:35px!important;font-size:13px!important;box-shadow:0 0 0 1px rgba(225,180,73,.72),0 0 10px rgba(225,180,73,.2)!important}
  body.ui-reborn .header-player-panel__name{display:none!important}
  body.ui-reborn .header-player-panel__meta,body.ui-reborn .header-vitals{display:none!important}
  body.ui-reborn .mobile-hud-more{display:grid!important;grid-column:4!important;place-items:center!important;width:28px!important;height:28px!important;padding:0!important;border:1px solid rgba(225,180,73,.68)!important;border-radius:50%!important;background:linear-gradient(145deg,#2b2518,#11151b)!important;color:#f7d477!important;font:700 20px/1 Arial,sans-serif!important;box-shadow:inset 0 0 10px rgba(225,180,73,.12)!important;cursor:pointer!important}
  body.ui-reborn .mobile-hud-more:active{transform:scale(.92)}
  body.ui-reborn .game-header.is-mobile-hud-open .header-player-panel__meta{position:absolute!important;top:calc(100% + 6px)!important;right:8px!important;left:8px!important;z-index:5!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;min-height:58px!important;padding:7px 5px!important;border:1px solid rgba(211,166,74,.5)!important;border-radius:3px!important;background:linear-gradient(180deg,rgba(20,25,33,.98),rgba(6,9,13,.98))!important;box-shadow:0 12px 24px rgba(0,0,0,.54)!important}
  body.ui-reborn .game-header.is-mobile-hud-open .header-player-panel__meta .ui-tag{display:grid!important;place-items:center!important;gap:2px!important;min-width:0!important;padding:0!important;font-size:9px!important;color:#d9cdb8!important}
  body.ui-reborn .game-header.is-mobile-hud-open .header-player-panel__meta .ui-icon{width:18px!important;height:18px!important}
  body.ui-reborn .game-header.is-mobile-hud-open .header-vitals{position:absolute!important;top:calc(100% + 70px)!important;right:8px!important;left:8px!important;z-index:5!important;display:grid!important;grid-template-columns:1fr!important;width:auto!important;min-width:0!important;padding:9px 12px!important;gap:6px!important;border:1px solid rgba(211,166,74,.5)!important;border-radius:3px!important;background:linear-gradient(180deg,rgba(20,25,33,.98),rgba(6,9,13,.98))!important;box-shadow:0 12px 24px rgba(0,0,0,.54)!important}
  body.ui-reborn .game-header.is-mobile-hud-open .header-vitals b{grid-template-columns:18px 1fr auto!important;gap:7px!important;font-size:10px!important}
  body.ui-reborn .game-header.is-mobile-hud-open .header-vitals i{height:6px!important}
}

/* Avatares globales V2 · recorte circular iOS */
body.ui-reborn[data-hero] .header-player-panel__avatar,
body.ui-reborn[data-hero] .game-content .account-profile__crest,
body.ui-reborn[data-hero] .game-content .friend-avatar,
body.ui-reborn[data-hero] .game-content .player-avatar,
body.ui-reborn[data-hero] .game-content .thread-avatar,
body.ui-reborn[data-hero] .game-content .infernal-message__avatar,
body.ui-reborn[data-hero] .game-content .ranking-avatar,
body.ui-reborn[data-hero] .game-content .chat-avatar{
  overflow:hidden!important;
  border:1px solid rgba(var(--hero-rgb),.68)!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,rgba(var(--hero-rgb),.3),#0b1117)!important;
  box-shadow:0 0 0 4px rgba(var(--hero-rgb),.08),0 8px 22px rgba(0,0,0,.3)!important;
}
body.ui-reborn[data-hero] .header-player-panel__avatar img,
body.ui-reborn[data-hero] .game-content .account-profile__crest img,
body.ui-reborn[data-hero] .game-content .friend-avatar img,
body.ui-reborn[data-hero] .game-content .player-avatar img,
body.ui-reborn[data-hero] .game-content .thread-avatar img,
body.ui-reborn[data-hero] .game-content .infernal-message__avatar img,
body.ui-reborn[data-hero] .game-content .ranking-avatar img,
body.ui-reborn[data-hero] .game-content .chat-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:none!important;
}
