.game-share-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(218, 190, 126, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(218, 190, 126, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(21, 42, 36, 0.96), rgba(8, 16, 14, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.2);
}

/* The detail page switches to a single-column document below 1000px. Keep the
   resource action stack on that same full-width track instead of the old
   two-column rule leaving an empty half beside its only child. */
@media (max-width: 1000px) {
  .detail-action-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

.game-share-card::after {
  position: absolute;
  inset: auto -45px -55px auto;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(218, 190, 126, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.game-share-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-share-copy strong {
  color: #f6eedc;
  font-size: 15px;
  line-height: 1.5;
}

.game-share-copy p {
  margin: 0;
  color: rgba(229, 236, 231, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.game-share-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #dabe7e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.game-share-url {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: rgba(218, 190, 126, 0.7);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-share-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 8px;
}

.game-share-primary,
.game-share-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.game-share-primary {
  border: 1px solid #e4ca8e;
  color: #13201c;
  background: linear-gradient(180deg, #ead39f, #cfad65);
  box-shadow: 0 8px 20px rgba(218, 190, 126, 0.18);
}

.game-share-secondary {
  border: 1px solid rgba(218, 190, 126, 0.3);
  color: #e8dcc0;
  background: rgba(255, 255, 255, 0.035);
}

.game-share-primary:hover,
.game-share-secondary:hover {
  transform: translateY(-1px);
}

.game-share-secondary:hover {
  border-color: rgba(218, 190, 126, 0.56);
  background: rgba(218, 190, 126, 0.08);
}

.game-share-primary:focus-visible,
.game-share-secondary:focus-visible {
  outline: 2px solid #f0d79f;
  outline-offset: 3px;
}

.game-share-status {
  grid-column: 1 / -1;
  min-height: 16px;
  color: #c6d9cf;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

@media (max-width: 760px) {
  .game-share-card {
    padding: 15px;
  }

  .game-share-actions {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .game-share-actions {
    grid-template-columns: 1fr;
  }
}


/* baoku r20260804: keep the resource/share track responsive on common
   notebook widths and prevent compact phone headers/cards from being clipped. */
@media (max-width: 1366px) {
  .detail-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .detail-primary-column,
  .detail-side-stack {
    display: contents;
  }

  .detail-summary-stack,
  .detail-action-stack,
  .detail-longform-stack,
  .detail-side-media-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detail-summary-stack { order: 1; }
  .detail-action-stack { order: 2; grid-template-columns: minmax(0, 1fr); }
  .detail-longform-stack { order: 3; }
  .detail-side-media-stack { order: 4; }
}

.game-share-card,
.game-share-copy,
.game-share-actions {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 520px) {
  .topbar { gap: 8px; }
  .brand-lockup { flex: 1 1 auto; min-width: 0; }
  .top-actions { flex: 0 0 auto; gap: 6px; }
  .free-top-status { display: none; }
  .detail-hero-content { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .detail-title-block { min-width: 0; }
  .detail-section p,
  .article-content-blocks { overflow-wrap: anywhere; word-break: break-word; }
}

@media (max-width: 420px) {
  .detail-resource-list .entry-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .detail-resource-list .entry-row > button,
  .detail-resource-list .entry-row > .entry-download-link {
    grid-column: 1 / -1;
    width: 100%;
  }
}
