.poker-mobile-fullscreen-toggle {
  position: fixed;
  z-index: 2147483000;
  width: 42px;
  height: 42px;
  left: var(--poker-fs-left, calc(100vw - 70px));
  top: var(--poker-fs-top, calc(env(safe-area-inset-top) + 120px));
  right: auto;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 8px;
  background: rgba(17, 20, 27, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 8px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.poker-mobile-fullscreen-toggle img {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  pointer-events: none;
}

html.poker-mobile-toggle-visible .poker-mobile-fullscreen-toggle {
  display: flex;
}

html.poker-mobile-toggle-fullscreen .poker-mobile-fullscreen-toggle {
  top: calc(env(safe-area-inset-top) + 102px);
}

html.poker-ios-fullscreen-fallback,
body.poker-ios-fullscreen-fallback,
body.poker-fullscreen-active {
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

body.poker-fullscreen-active #poker-mobile-stage-wrapper,
body.poker-ios-fullscreen-fallback #poker-mobile-stage-wrapper {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  min-height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  z-index: 2147482000 !important;
  background: #000 !important;
  padding-top: env(safe-area-inset-top) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
  box-sizing: border-box !important;
}

body.poker-fullscreen-active #poker-mobile-stage-wrapper .ms-mobile-poker-shell__stage,
body.poker-fullscreen-active #poker-mobile-stage-wrapper .ms-poker-view.is-mobile-fullscreen,
body.poker-fullscreen-active #poker-mobile-stage-wrapper .ms-poker-table-wrap,
body.poker-ios-fullscreen-fallback #poker-mobile-stage-wrapper .ms-mobile-poker-shell__stage,
body.poker-ios-fullscreen-fallback #poker-mobile-stage-wrapper .ms-poker-view.is-mobile-fullscreen,
body.poker-ios-fullscreen-fallback #poker-mobile-stage-wrapper .ms-poker-table-wrap {
  left: 0 !important;
  top: 0 !important;
  transform-origin: center center !important;
}

@media (orientation: landscape) {
  .poker-mobile-fullscreen-toggle {
    top: var(--poker-fs-top, calc(env(safe-area-inset-top) + 74px));
  }

  html.poker-mobile-toggle-fullscreen .poker-mobile-fullscreen-toggle {
    top: var(--poker-fs-top, calc(env(safe-area-inset-top) + 72px));
  }
}

@media (min-width: 957px), (min-height: 957px) and (min-width: 451px) {
  .poker-mobile-fullscreen-toggle {
    display: none !important;
  }
}
