.energy-upgrade-dialog { box-sizing: border-box; position: fixed; width: min(345px, 100vw); height: min(390px, 100dvh); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 0; background: transparent; }
.energy-upgrade-dialog::backdrop { background: rgba(18, 20, 29, .48); }
.energy-upgrade-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
.energy-upgrade-close { position: absolute; z-index: 1; top: 5px; right: 5px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #9aa1a5; cursor: pointer; }
.energy-upgrade-close:hover { background: #222; color: #fff; }
.energy-upgrade-close:focus-visible { outline: 2px solid #4cc9de; outline-offset: 2px; }
.energy-upgrade-close svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
