/* r32.24 mobile shell: keep overlay above Cocos canvas on phones */
#competitive-game-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c171b;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* style-mobile.css sets div{display:block} — need !important to win */
#competitive-game-overlay.is-open {
  display: flex !important;
}

#competitive-game-frame {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  max-height: 100svh;
  border: 0;
  display: block;
  background: #d8eef3;
}

/* 宽屏桌面仍可居中竖屏舞台；窄屏手机铺满 */
@media (min-width: 768px) and (min-aspect-ratio: 3/4) {
  #competitive-game-frame {
    width: min(100vw, 56.25vh);
    height: min(100vh, 177.7778vw);
  }
}

#competitive-bridge-notice {
  position: fixed;
  left: 50%;
  bottom: 8vh;
  z-index: 2147483001;
  display: none;
  max-width: min(82vw, 420px);
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: rgba(24, 73, 83, .9);
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  text-align: center;
  font: 14px/1.4 "Microsoft YaHei", sans-serif;
}

#competitive-bridge-notice.is-visible {
  display: block !important;
}
