/* 第 3 轮：分享卡。版式见 playground/round3.html（1B 竖版、2A 四个按钮、3A 带二维码） */
#share { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: rgba(28, 27, 31, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
#share.on { opacity: 1; pointer-events: auto; }
.sh-hold { min-height: 0; display: grid; place-items: center; padding: calc(var(--safe-t) + 56px) 32px 16px; }
/* 图片本身是直角，圆角只在页面上显示；长按保存的是整张图 */
#sh-img { display: block; max-width: 280px; max-height: 100%; width: auto; height: auto; border-radius: 24px; background: #fffdfa;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45); transform: translateY(16px) scale(.96); transition: transform .5s var(--ease);
  -webkit-touch-callout: default; user-select: auto; }
#share.on #sh-img { transform: none; }
#sh-img:not([src]) { visibility: hidden; }
.sh-sheet { width: 100%; max-width: 480px; justify-self: center; padding: 20px 24px calc(var(--safe-b) + 24px); border-radius: 24px 24px 0 0; background: rgba(255, 253, 250, .96);
  transform: translateY(24px); transition: transform .5s var(--ease); }
#share.on .sh-sheet { transform: none; }
#sh-tip { display: none; margin: -4px 0 12px; text-align: center; font-size: 12px; line-height: 16px; color: rgba(28, 27, 31, .4); }
#share.wx #sh-tip { display: block; }
.sh-bt { display: flex; justify-content: space-around; }
.sh-bt button { width: 64px; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; font: 400 12px var(--sans); color: rgba(28, 27, 31, .62); cursor: pointer; }
.sh-bt i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 .5px rgba(28, 27, 31, .08) inset, 0 2px 8px -4px rgba(90, 60, 30, .3);
  transition: transform .2s var(--ease); }
.sh-bt button:active i { transform: scale(.94); }
.sh-bt svg { width: 22px; height: 22px; fill: none; stroke: #1c1b1f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-bt .wx i { background: #07c160; box-shadow: none; }
.sh-bt .wx svg { stroke: #fff; }
@media (hover: hover) { .sh-bt button:hover i { box-shadow: 0 0 0 .5px rgba(28, 27, 31, .16) inset, 0 4px 12px -4px rgba(90, 60, 30, .35); } }
/* 分享卡开着时，提示放在画面中间，不压住按钮 */
body.sharing #toast.plain { bottom: auto; top: calc(var(--safe-t) + 16px); }
body.sharing #seatcard { opacity: 0; pointer-events: none; }

/* ---------- 朋友打开分享链接：顶栏下面一条「朋友的座位」+「看看我的」，宽度和底栏、座位小卡一致 ---------- */
#friend { position: fixed; z-index: 11; left: 50%; top: calc(var(--safe-t) + 64px); width: min(320px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 20px; border-radius: 24px; opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--ease); }
#friend.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#friend > div { flex: 1; min-width: 0; font-size: 12px; line-height: 16px; color: var(--g-sub); }
#friend b { display: block; font: 600 16px/24px var(--mono); color: var(--g-fg); white-space: nowrap; }
#friend b em { font: 500 13px var(--sans); font-style: normal; color: var(--g-sub); margin: 0 6px 0 2px; }
#friend b em:last-child { margin-right: 0; }
#fr-mine { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--p-bg, var(--red)); color: var(--p-fg, #fff); font: 600 15px var(--sans); cursor: pointer; }
body.home #friend, body.singer #friend, body.pv #friend, body.sharing #friend { opacity: 0 !important; pointer-events: none !important; }
