/* GameCenter 移动端游玩层 */

body.gc-mobile-play {
  overflow: hidden;
}

body.gc-mobile-play .gc-header,
body.gc-mobile-play header:not(.gc-mobile-bar),
body.gc-mobile-play .gc-play-header,
body.gc-mobile-play .gc-leaderboard,
body.gc-mobile-play footer,
body.gc-mobile-play .au-footer,
body.gc-mobile-play .site-footer {
  display: none !important;
}

body.gc-mobile-play .gc-main,
body.gc-mobile-play main {
  padding: 0 !important;
  margin: 0 !important;
}

body.gc-mobile-play .gc-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body.gc-mobile-play .gc-play-layout {
  display: block;
  margin: 0;
  padding: 0;
}

body.gc-mobile-play .gc-play-stage {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.gc-mobile-play .gc-play-stage::before {
  display: none;
}

body.gc-mobile-play .gc-play-stage .gc-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

body.gc-mobile-play.gc-mobile-zones .gc-play-stage .gc-iframe {
  pointer-events: none;
}

body.gc-mobile-play.gc-mobile-tap .gc-play-stage .gc-iframe {
  pointer-events: auto;
}

body.gc-mobile-play .gc-play-stage .gc-fullscreen-btn {
  display: none;
}

body.gc-mobile-play .gc-play-stage.game-fs-active {
  top: 52px;
  bottom: 0;
}

/* 顶栏 */
.gc-mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 12px;
  background: rgba(7, 11, 20, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
}

.gc-mobile-bar-back,
.gc-mobile-bar-exit {
  flex-shrink: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.gc-mobile-bar-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 操作提示 */
.gc-mobile-hint {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.gc-mobile-hint--hidden {
  display: none;
}

.gc-mobile-hint-card {
  width: min(420px, 100%);
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 20, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.gc-mobile-hint-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f8fafc;
}

.gc-mobile-hint-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

.gc-mobile-hint-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: #94a3b8;
}

.gc-mobile-hint-start {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  cursor: pointer;
}
