.wechat-share-guide {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(10, 15, 11, .9);
  animation: wechat-share-appear 180ms ease-out both;
}

.share-toggle[hidden],
.wechat-share-guide[hidden] { display: none; }

.wechat-share-arrow {
  position: absolute;
  top: max(4px, env(safe-area-inset-top));
  right: max(0px, env(safe-area-inset-right));
  width: 96px;
  height: 96px;
  pointer-events: none;
}

.wechat-share-message {
  width: min(100%, 380px);
  margin-left: auto;
  padding: calc(112px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) 24px;
  text-align: right;
}

.wechat-share-kicker {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 12px;
  line-height: 1.6;
}

.wechat-share-message h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wechat-share-instruction {
  margin: 16px 0 24px;
  color: #c2cbbd;
  font-size: 14px;
  line-height: 2;
}

.wechat-share-dots {
  display: inline-block;
  color: var(--brass);
  font-size: 24px;
  font-weight: 700;
  line-height: 14px;
  vertical-align: -2px;
}

.wechat-share-dismiss {
  width: 112px;
  min-height: 44px;
  color: #cfdbca;
  border-color: #56634e;
  background: #20291e;
}

.wechat-share-dismiss:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

@keyframes wechat-share-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wechat-share-guide { animation: none; }
}

.connection-section .wechat-share-toggle[hidden] { display: none; }
#share-modal.is-wechat-quick .share-dialog,
#share-modal.is-wechat-quick .wechat-share-card-hint { display: none; }
@media (min-width: 701px) and (max-height: 480px) {
  .connection-section.has-wechat-share { column-gap: 4px; }
}

.wechat-share-card-hint {
  display: block;
  margin-top: 12px;
  color: #ffe1a6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.wechat-share-card-hint br { display: none; }
