.battle-modal[hidden], .battle-modal-backdrop[hidden], .battle-widget-retry[hidden] { display: none; }
.battle-modal-backdrop { position: fixed; inset: 0; z-index: 9999; background: #000c; touch-action: none; }
.battle-modal { position: fixed; top: max(20px,env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 10000; box-sizing: border-box; width: auto; max-width: 580px; max-height: calc(100vh - 40px); max-height: calc(100dvh - max(40px,env(safe-area-inset-top) + env(safe-area-inset-bottom))); margin: 0 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; border-radius: 12px; background: #fff; color: #171717; box-shadow: 0 8px 40px #0006; font-family: Manrope,Arial,sans-serif; }
.battle-modal-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: end; padding: 8px 10px; background: #fff; }
.battle-modal-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px solid #171717; border-radius: 50%; background: #fff; color: #171717; font: 24px/1 Arial,sans-serif; cursor: pointer; }
.battle-modal-close:focus-visible { outline: 2px solid #2668f6; outline-offset: 3px; }
.battle-modal-content { padding: 0 24px 24px; }
.battle-widget-slot { min-height: 320px; }
.battle-widget-slot iframe { display: block; width: var(--battle-widget-width,100%) !important; max-width: none; transform: scale(var(--battle-widget-scale,1)); transform-origin: top left; }
.battle-widget-retry { display: block; margin: 20px auto; padding: 12px 16px; border: 1px solid #a9e4ff9c; border-radius: 13px; background: linear-gradient(163deg,#52d5f4,#2668f6 78%); color: #04101e; font: 800 16px/1.3 Manrope,Arial,sans-serif; cursor: pointer; }
@media (max-width:580px) { .battle-modal-content { padding: 0 0 16px; } }
