/* =========================
   iframe 容器
========================= */
.game-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
  z-index: 9999;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =========================
   悬浮按钮
========================= */
#floatBackBtn {
  position: fixed;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 14px;
  z-index: 2147483647;
  display: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  pointer-events: auto;
  cursor: pointer;
}

/* =========================
   iOS 风格弹窗
========================= */
#iosModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483648;
}

.ios-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.ios-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
  animation: iosFadeIn 0.2s ease;
}

.ios-title {
  font-size: 16px;
  font-weight: bold;
  padding: 16px 10px 6px;
}

.ios-content {
  font-size: 14px;
  color: #666;
  padding: 0 16px 16px;
}

.ios-actions {
  display: flex;
  border-top: 1px solid #eee;
}

.ios-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
}

.ios-btn.cancel {
  color: #666;
}

.ios-btn.confirm {
  color: #007aff;
  font-weight: bold;
  border-left: 1px solid #eee;
}

@keyframes iosFadeIn {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
