/* ============================================================
 * 游戏集（Games）—— 把 apps/games/<slug>/ 里的网页游戏装进标准窗口
 *
 *   .gm-root   客户区容器（黑底，撑满 .win-client）
 *   .gm-frame  游戏 iframe。⚠️ 缩放靠 transform:scale()，见 js/games.js
 *   .gm-load   载入遮罩（淡出后 .hide）
 * ============================================================ */
.gm-win .win-client { padding: 0; }

.gm-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.gm-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  transform-origin: 0 0;         /* 缩放基准：左上角，配合 width/height 补偿 */
}

/* ---------- 载入遮罩：Win3.1 启动画面配色 ---------- */
.gm-load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0000a8;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  transition: opacity 0.25s linear;
  z-index: 2;
}
.gm-load.hide { opacity: 0; pointer-events: none; }
.gm-load-t {
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #000040;
  max-width: 90%;
}
.gm-load-s {
  font-family: inherit;
  font-size: 13px;
  color: #c7ccd0;
}
