/* SR28: one site-owned viewport for native WIND GAME SOFT games. */
@layer wg-game {
  .soft-embedded-page .soft-frame-main { width:100%; min-width:0; margin:16px 0 0; padding:0; }
  .soft-embedded-page .soft-native-frame { display:block; width:100%; height:var(--soft-frame-height,720px); border:1px solid var(--wg-ui-line,#603546); border-radius:18px; overflow:hidden; background:var(--wg-ui-bg,#100f14); }
  @media (min-width:821px) { .soft-embedded-page .shell { max-width:1440px; } }
  @media (max-width:820px) { .soft-embedded-page .soft-frame-main { margin-top:8px; } .soft-embedded-page .soft-native-frame { border-radius:15px; } }
}

@layer wg-overrides {
.soft-embedded-page .soft-frame-main{max-width:1280px!important;margin-left:auto!important;margin-right:auto!important;min-width:0!important}
.soft-embedded-page .soft-native-frame{box-sizing:border-box!important;border:1px solid #603546!important;border-radius:18px!important;overflow:hidden!important;background:#100f14!important}
@media(max-width:820px){.soft-embedded-page .soft-native-frame{border-radius:12px!important}}
}

/* G145: one outer-frame focus mode, including iOS without the Fullscreen API. */
@layer wg-overrides {
/* These rules replace the ordinary framed geometry only while the player requests focus. */
html.soft-frame-focus .soft-embedded-page .shell{transform:none!important;contain:none!important}
html.soft-frame-focus .soft-embedded-page .soft-frame-main{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)!important;box-sizing:border-box!important;background:var(--wg-ui-bg,#100f14)!important}
html.soft-frame-focus .soft-embedded-page .soft-native-frame{width:100%!important;height:100%!important;border:0!important;border-radius:0!important}
}
