/* V247: a mesma HUD personalizada é visível e interativa dentro da arena.
   O cenário continua sendo renderizado pelo canvas da arena, sem alterar seu mapa. */
body.eld-thunder-mode #hud{position:fixed!important;inset:0!important;z-index:16040!important;background:transparent!important;pointer-events:none!important;overflow:visible!important}
body.eld-thunder-mode #hud[hidden]{display:none!important}
body.eld-thunder-mode #hud>#ct,body.eld-thunder-mode #hud>#log,body.eld-thunder-mode #hud>#bl{pointer-events:none}
body.eld-thunder-mode #joy,body.eld-thunder-mode #atk{z-index:16060!important;pointer-events:auto!important}
/* Os botões normais são usados: nenhum analógico ou ataque duplicado. */
body.eld-thunder-mode #eldThunderArena .th-joy,body.eld-thunder-mode #eldThunderArena .th-actions,body.eld-thunder-mode #eldThunderArena .th-footer{display:none!important}
body.eld-thunder-mode #miningButton,body.eld-thunder-mode #collectMobile,body.eld-thunder-mode #cityNpcBtn{display:none!important}
/* Os controles com estado especial continuam fechados como no HUD normal. */
body.eld-thunder-mode #hud>[hidden]{display:none!important}
#eldThunderArena #eldThunderSummon{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);z-index:10;
 display:flex;align-items:center;justify-content:center;gap:9px;min-width:196px;max-width:86vw;
 padding:13px 19px;border:2px solid #f0c473;border-radius:12px;color:#fff3ce;font:bold 16px Georgia,serif;
 background:linear-gradient(170deg,#77572b,#261b16 40%,#4b2933);text-shadow:0 2px 4px #000;
 box-shadow:0 4px 20px #000d,0 0 0 2px #211526;cursor:pointer;touch-action:manipulation;pointer-events:auto}
#eldThunderArena #eldThunderSummon[hidden]{display:none!important}
#eldThunderArena #eldThunderSummon:active{transform:translate(-50%,-50%) scale(.96)}
#eldThunderArena .th-loading .th-info{display:block}
#eldThunderArena .th-info{display:none}
#eldThunderArena .th-exit{position:absolute;top:calc(env(safe-area-inset-top,0px) + 7px);left:50%;right:auto;transform:translateX(-50%);z-index:4;min-height:33px;padding:5px 11px;font-size:11px;white-space:nowrap}
#eldThunderArena .th-head{pointer-events:none}
@media(max-width:600px){#eldThunderArena .th-exit{font-size:10px;padding:4px 7px;min-height:29px}#eldThunderArena #eldThunderSummon{font-size:14px;min-width:170px;padding:10px 12px}}

/* O editor continua acima da arena; não interfere nas posições persistidas. */
body.eld-thunder-mode #eld235Editor{z-index:16110!important}
body.eld-thunder-mode #eld235Handles{z-index:16100!important}

/* V255 — mesmos elementos e hitboxes do HUD normal em ambas as arenas.
 * O contêiner é passante; somente controles interativos recebem toques. */
body.eld-thunder-mode #hud #sb,body.eld-thunder-mode #hud #pl,
body.eld-thunder-mode #hud #tb,body.eld-thunder-mode #hud #gear,
body.eld-thunder-mode #hud #skillBarLock,body.eld-thunder-mode #hud #questTracker628,
body.eld-thunder-mode #hud #eldStarBtn,body.eld-thunder-mode #hud #eld229Auto,
body.eld-thunder-mode #hud #eld229Xp,body.eld-thunder-mode #hud #eld229Chat,
body.eld-thunder-mode #hud #eldMiniMapHit,body.eld-thunder-mode #hud #bl,
body.eld-thunder-mode #hud #compassTravel,body.eld-thunder-mode #hud #menuActions,
body.eld-thunder-mode #hud #inv,body.eld-thunder-mode #hud #shop,
body.eld-thunder-mode #hud #characterProfile,body.eld-thunder-mode #hud #attrPanel,
body.eld-thunder-mode #hud #skillTree,body.eld-thunder-mode #hud #smithPanel,
body.eld-thunder-mode #hud #miningCareerPanel {pointer-events:auto!important}
body.eld-thunder-mode #hud>#tb {pointer-events:none!important}
body.eld-thunder-mode #hud>#tb>button {pointer-events:auto!important}
body.eld-thunder-mode #hud #sb {z-index:16065!important}
body.eld-thunder-mode #eldThunderArena #thBossWrap{pointer-events:none!important}

/* V263 — force the same original attack control to be VISIBLE ABOVE the
   arena, HUD wheel and movable skill icons (the wheel must not be empty).
   No duplicate attack button: it still calls the existing arena action. */
html body.eld-game-active.eld-thunder-mode #atk,
html body.eld-game-active.eld-thunder-mode #hud~#atk{
 display:grid!important;visibility:visible!important;opacity:1!important;
 z-index:16200!important;pointer-events:auto!important;
 background:url('fantasy_v229/attack.png') center/100% 100% no-repeat,radial-gradient(circle,#c81b11,#35080b)!important;
}
/* Fix image path relative to this stylesheet (in thunder_god_arena/). */
html body.eld-game-active.eld-thunder-mode #atk,
html body.eld-game-active.eld-thunder-mode #hud~#atk{
 background-image:url('../ui/fantasy_v229/attack.png'),radial-gradient(circle,#c81b11,#35080b)!important;
}
