/**
 * 游戏全屏页：iframe 全屏 + 可拖动悬浮按钮（仅 50x50 可点，不挡游戏）
 */
html.game-embed-active,
html.game-embed-active body {
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior-y: contain;
}

html.game-embed-active #app {
  height: 100%;
  overflow: hidden;
}

.game-page-root {
  background: #000;
}

.game-page-root .game-page-iframe-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

/* 悬浮按钮：只用 left/top，不用 bottom/right，避免拖动后错位 */
.game-page-root .game-float-btn {
  position: fixed !important;
  bottom: auto !important;
  right: auto !important;
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10001;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.game-page-root .game-float-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.game-page-root .game-float-btn__placeholder {
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

.game-page-root .bottom-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.45);
}

.game-page-root .bottom-menu {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10003;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

/* 首页底部 Tab：安全区 */
#app .van-tabbar,
.van-tabbar {
  box-sizing: content-box !important;
  height: 50px !important;
  padding-bottom: constant(safe-area-inset-bottom) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.footer_footer_bg__SILa5,
.footer_footer_bg_hidden__1QCjG {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
}
