/* Game share: WeChat hint overlay + black-gold poster sheet. */
.gs-wx {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(8, 8, 10, .55);
  color: #f4f1ea;
  font-family: ui-sans-serif, -apple-system, "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
.gs-wx-arrow {
  position: absolute; top: 8px; right: 14px;
  width: 64px; height: 86px;
  pointer-events: none;
}
.gs-wx-arrow svg { width: 100%; height: 100%; display: block; }
.gs-wx-card {
  position: absolute; top: 88px; right: 16px; left: 16px;
  max-width: 320px; margin-left: auto;
  padding: 16px 16px 14px;
  background: #16161c;
  border: 1px solid rgba(201, 169, 110, .4);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.gs-wx-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; font-weight: 650; }
.gs-wx-card button {
  display: block; width: 100%; height: 40px;
  border: 0; border-radius: 10px;
  background: #c9a96e; color: #1a1408;
  font: inherit; font-weight: 700; cursor: pointer;
}
.gs-sheet {
  position: fixed; inset: 0; z-index: 390;
  background: rgba(8, 8, 10, .72);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: ui-sans-serif, -apple-system, "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: #f4f1ea;
}
.gs-card {
  width: 100%; max-width: 520px;
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #121218;
  border-radius: 18px 18px 0 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  position: relative;
}
.gs-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #c9c4bb;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.gs-preview { padding: 4px 8px 0; text-align: center; }
.gs-preview img, .gs-preview canvas {
  display: block; margin: 0 auto;
  width: 100%; max-width: 360px; height: auto;
  border-radius: 10px;
  background: #0b0c0e;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  pointer-events: auto;
  cursor: pointer;
}
.gs-hold { margin: 8px 0 0; font-size: 12px; color: #a7a39a; }
.gs-preview-actions {
  display: flex; gap: 10px;
  margin: 12px 0 0;
}
.gs-preview-actions button {
  flex: 1; min-height: 44px;
  border-radius: 12px; border: 1px solid rgba(201,169,110,.45);
  background: #1b1b22; color: #f4f1ea;
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
}
.gs-preview-actions button[data-a="download"] {
  background: #c9a96e; color: #1a1408; border-color: #c9a96e;
}
.gs-preview-actions button:active { filter: brightness(.92); }
.gs-actions {
  display: flex; gap: 10px;
  margin: 14px 8px 0;
}
.gs-actions button {
  flex: 1; min-height: 44px;
  border-radius: 12px; border: 1px solid rgba(201,169,110,.45);
  background: #1b1b22; color: #f4f1ea;
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
}
.gs-actions button[data-a="sys"],
.gs-actions button[data-a="poster"] {
  background: #c9a96e; color: #1a1408; border-color: #c9a96e;
}
.gs-choose { margin-top: 28px; }
.gs-choose-title {
  margin: 0 8px 4px;
  font-size: 17px; font-weight: 700; text-align: center;
}
.gs-preview[hidden], .gs-choose[hidden] { display: none !important; }
.gs-actions button:active { filter: brightness(.92); }
.gs-tip {
  margin: 12px 8px 0;
  font-size: 12px; line-height: 1.45; color: #8e8a82; text-align: center;
}
.gs-sheet[hidden], .gs-wx[hidden] { display: none !important; }
@media (min-height: 760px) {
  .gs-sheet { align-items: center; }
  .gs-card { border-radius: 18px; margin: 16px; max-height: calc(100% - 32px); }
}
