/* Public player card + share dialog. Theme tokens only. */
.shx { width: 100%; max-width: 1000px; margin: 0 auto; padding: clamp(0.5rem, 2vw, 1.25rem) 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; color: var(--text); }
.shx .ph { margin-bottom: 0; }
.shx-card { display: block; width: 100%; height: auto; border-radius: calc(var(--radius, 10px) + 6px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.shx-tier { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.shx-tier.vip { background: #E8B931; color: #1a1406; }
.shx-tier.super { background: linear-gradient(110deg, #6D28D9, #2563EB); color: #fff; }
.shx-stats { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: calc(var(--radius, 10px) + 4px); background: var(--surface); }
.shx-stats > div { display: grid; gap: 0.2rem; padding: 0.85rem 1.1rem; }
.shx-stats > div + div { border-left: 1px solid var(--line); }
.shx-stats dt { font-size: 0.75rem; color: var(--text-soft); }
.shx-stats dd { margin: 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.shx-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.35rem; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: calc(var(--radius, 10px) + 4px); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.shx-cta div { display: grid; gap: 0.25rem; }
.shx-cta span { font-size: 0.9rem; color: var(--text-soft); }
.shx-dialog { width: min(720px, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--line); border-radius: calc(var(--radius, 10px) + 6px); background: var(--surface-strong); color: var(--text); box-shadow: var(--shadow-lg); }
.shx-dialog::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(2px); }
.shx-dialog[open] { display: grid; gap: 1rem; }
.shx-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.shx-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.shx-x { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-soft); cursor: pointer; }
.shx-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.shx-link { display: flex; gap: 0.5rem; }
.shx-link input { flex: 1; min-width: 0; height: 2.4rem; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: calc(var(--radius, 10px) - 2px); background: var(--field-bg, var(--surface)); color: var(--text); font: inherit; font-size: 0.88rem; }
@media (max-width: 640px) {
  .shx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shx-stats > div:nth-child(4) { border-left: 0; }
  .shx-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .shx-buttons .btn { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
}
