/* 小游戏按钮 */
.game-btn {
      position: fixed;
  top: 10px;
  left: 230px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 4px;
  border-radius: 5px;
  font-size: 18px;
  z-index: 1000;
}

/* 悬浮窗半透明背景 */
.modal-overlay {
  display: none;         /* 默认隐藏 */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  resize: both;
  overflow: auto;
}

/* 小游戏窗口 */
.modal-window {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 标题栏 */
#miniGameHeader {
  cursor: move;
  padding: 0 5px;
  font-size: 10px;
  background: #333;
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 关闭按钮 */
#closeMiniGame {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}