/* 木头的游戏屋 · 分享海报 */
.gh-share-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(35, 26, 18, .55);
  backdrop-filter: blur(3px);
  display: none;
}
.gh-share-mask.show { display: block; }

.gh-share {
  position: fixed;
  z-index: 91;
  left: 50%;
  bottom: 0;
  width: min(430px, 100%);
  transform: translate(-50%, 105%);
  transition: transform .28s ease;
  background: #fbf6ee;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(50, 35, 20, .22);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #3f342c;
}
.gh-share.show { transform: translate(-50%, 0); }

.gh-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.gh-share__title {
  font-size: 16px;
  font-weight: 800;
}
.gh-share__close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(184, 122, 78, .25);
  border-radius: 50%;
  background: #fff;
  color: #8f5a33;
  font-size: 16px;
  line-height: 1;
}
.gh-share__poster {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(120, 90, 60, .14);
}
.gh-share__tip {
  margin: 10px 2px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #8a7565;
  text-align: center;
}
.gh-share__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gh-share__btn {
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: #efe0cd;
  color: #6b4a32;
}
.gh-share__btn--main {
  background: linear-gradient(135deg, #d3a276, #b87a4e);
  color: #fff;
}
.gh-share__btn--challenge {
  grid-column: 1 / -1;
  background: #e7efe0;
  color: #4f6b45;
}
.gh-share__btn:active { transform: translateY(1px); }

/* 顶栏分享按钮 */
.gp-share {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--gp-line);
  background: #fff;
  color: var(--gp-pink-deep);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 门户分享入口 */
.share-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(184, 122, 78, .28);
  background: rgba(255, 255, 255, .7);
  color: #8f5a33;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
}
