/* 공유 이미지 — 브라우저에서 PNG 로 만드는 전용 카드 템플릿 (static/share-image.js)
 * - 화면에 보이는 카드를 캡처하지 않고, 이 스타일의 전용 DOM 을 화면 밖(.shc-stage)에 만들어 렌더링한다.
 * - 크기는 CSS px 고정 → pixelRatio 2 로 1080px 폭 PNG. 색·글꼴은 style.css 토큰을 그대로 쓴다.
 * - 의사 요소(::before/::after)는 쓰지 않는다 (이미지 변환 라이브러리가 별도 <style> 을 만들지 않도록).
 */
.shc-stage { position: fixed; left: -12000px; top: 0; pointer-events: none; z-index: -1; contain: layout paint; }
.shc {
  position: relative; overflow: hidden; box-sizing: border-box;
  font-family: var(--font); color: var(--text); letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fbf6ee 0%, #f6ecdd 100%);
  -webkit-font-smoothing: antialiased;
}
.shc * { box-sizing: border-box; }
.shc-party { width: 540px; height: 540px; padding: 18px 28px 26px; }
.shc-board { width: 540px; height: 675px; padding: 18px 26px 22px; }

/* 배경 장식: 부드러운 원 + 별 */
.shc-blob { position: absolute; border-radius: 50%; }
.shc-blob.b1 { width: 250px; height: 230px; left: -90px; top: -100px; background: #fdeed9; }
.shc-blob.b2 { width: 230px; height: 230px; right: -100px; bottom: -110px; background: #fde8e5; }
.shc-blob.b3 { width: 120px; height: 110px; right: -30px; top: -50px; background: rgba(248, 200, 205, .45); }
.shc-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #f6c544; }
.shc-dot.d2 { width: 7px; height: 7px; background: #f2a650; }
.shc-dot.d3 { width: 6px; height: 6px; background: #d9474b; }

/* 머리: 로고 스티커 + 사이트 이름 + 기준 시각 */
.shc-head { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; }
.shc-logo { width: 46px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 2px 3px rgba(84, 52, 26, .2)); }
.shc-brand { display: flex; flex-direction: column; line-height: 1.12; }
.shc-b1 { font-size: 12px; font-weight: 700; color: var(--apricot-deep); letter-spacing: 0; }
.shc-b2 { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.shc-time { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-3); background: rgba(255, 253, 249, .8);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

/* 본 카드 */
.shc-panel {
  position: relative; margin-top: 10px; background: #fffdf9; border: 1.5px solid #ecdfcd; border-radius: 26px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(84, 52, 26, .06), 0 10px 24px -8px rgba(84, 52, 26, .18);
}
.shc-party .shc-panel { height: 438px; padding: 22px 26px 18px; display: flex; flex-direction: column; }
.shc-sticker { position: absolute; height: auto; filter: drop-shadow(0 3px 4px rgba(84, 52, 26, .2)); }
.shc-party .shc-sticker { width: 108px; right: 14px; top: -20px; transform: rotate(7deg); }

.shc-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.shc-cat { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.shc-cat.cat-rank { background: var(--c-rank); color: var(--c-rank-t); }
.shc-cat.cat-normal { background: var(--c-normal); color: var(--c-normal-t); }
.shc-cat.cat-scrim { background: var(--c-scrim); color: var(--c-scrim-t); }
.shc-cat.cat-cobalt { background: var(--c-cobalt); color: var(--c-cobalt-t); }
.shc-cat.cat-event { background: var(--c-event); color: var(--c-event-t); }
.shc-cat.cat-other { background: var(--c-other); color: var(--c-other-t); }
.shc-pno { font-size: 14px; font-weight: 800; color: var(--text-3); }
.shc-st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: var(--apricot-soft); color: var(--apricot-deep); }
.shc-st.full { background: var(--surface-3); color: var(--text-2); }

.shc-title { margin: 12px 0 0; padding-right: 92px; font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -.035em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 68px; }
.shc-count { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.shc-num { font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.shc-num small { font-size: 18px; font-weight: 800; color: var(--text-2); margin-left: 3px; }
.shc-seats { display: flex; gap: 5px; }
.shc-seats i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e6d8c5; background: #fffdf9; }
.shc-seats i.on { border-color: var(--accent); background: var(--accent); }
.shc-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.shc-opt { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: var(--accent-deep); background: #fff; border: 1.5px solid var(--accent-soft); }

/* 파티원 목록 */
.shc-members { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 2px dashed #efe3d3;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.shc-members.one-col { grid-template-columns: 1fr; gap: 7px; }
.shc-members.one-col .shc-m { height: 44px; padding-left: 7px; }
.shc-members.one-col .shc-av { width: 31px; height: 31px; font-size: 14px; }
.shc-members.one-col .shc-name { font-size: 16.5px; }
.shc-members.rows4 .shc-m { height: 40px; }
.shc-m { display: flex; align-items: center; gap: 9px; min-width: 0; height: 38px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--surface-2); }
.shc-m.leader { background: #fff6e2; }
.shc-av { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; }
.shc-av.av0 { background: #e0787c; } .shc-av.av1 { background: #e9a15a; } .shc-av.av2 { background: #6aa776; }
.shc-av.av3 { background: #6a95c4; } .shc-av.av4 { background: #b892d6; } .shc-av.av5 { background: #c9a04a; }
.shc-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shc-lead { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: #a3770d; }
.shc-lead .ic { width: 13px; height: 13px; }
.shc-m.free { background: transparent; border: 1.5px dashed #e3d4c0; color: var(--text-3); font-size: 13px; font-weight: 700; padding-left: 12px; }
.shc-more { font-size: 13px; font-weight: 700; color: var(--text-3); padding-left: 6px; align-self: center; }

.shc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1.5px solid var(--surface-3); font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.shc-cta { color: var(--accent); font-weight: 800; }

/* 현황판 */
.shc-board .shc-titlebar { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.shc-h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.shc-h2 em { font-style: normal; color: var(--accent); }
.shc-board .shc-sticker { width: 96px; right: 6px; top: -10px; transform: rotate(6deg); }
.shc-stats { display: flex; gap: 6px; margin-top: 10px; }
.shc-stat { display: inline-flex; align-items: baseline; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 253, 249, .9); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); line-height: 28px; }
.shc-stat b { font-size: 15px; color: var(--text); }
.shc-stat.rec b { color: var(--apricot-deep); }
.shc-list { position: relative; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.shc-item { display: flex; flex-direction: column; justify-content: center; gap: 5px; height: 74px; padding: 0 16px; background: #fffdf9;
  border: 1.5px solid #ecdfcd; border-radius: 18px; box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(84, 52, 26, .2); }
.shc-item.full { background: #fbf7f1; }
.shc-item .shc-row { gap: 7px; }
.shc-item .shc-cat { height: 23px; padding: 0 9px; font-size: 12px; }
.shc-ititle { flex: 1 1 auto; min-width: 0; font-size: 16.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shc-icount { flex: 0 0 auto; font-size: 15px; font-weight: 900; color: var(--accent); }
.shc-icount small { font-size: 12px; color: var(--text-2); font-weight: 800; }
.shc-item.full .shc-icount { color: var(--text-2); }
.shc-imembers { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shc-imembers .shc-iopt { color: var(--accent-deep); font-weight: 700; }
.shc-rest { align-self: center; margin-top: 2px; padding: 6px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13.5px; font-weight: 800; }
.shc-board .shc-foot { position: absolute; left: 26px; right: 26px; bottom: 18px; border-top: 0; padding-top: 0; }
.shc-board .shc-foot .shc-peek { width: 40px; height: auto; }

/* 빈 상태 */
.shc-empty { position: relative; margin-top: 18px; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: #fffdf9; border: 1.5px solid #ecdfcd; border-radius: 26px;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -8px rgba(84, 52, 26, .18); }
.shc-empty img { width: 180px; height: auto; filter: drop-shadow(0 3px 4px rgba(84, 52, 26, .18)); }
.shc-empty b { margin-top: 18px; font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.shc-empty span { margin-top: 6px; font-size: 14px; color: var(--text-2); font-weight: 600; }

/* 미리보기 시트 */
.share-preview { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px auto 0; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--sh-2); background: var(--surface-2); }
.share-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.share-actions > * { flex: 1 1 120px; justify-content: center; }
.share-loading { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s6) 0; color: var(--text-2); }
.share-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.share-btns > .btn { flex: 1 1 140px; justify-content: center; }
.share-box { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line-2); }
.share-label { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s2); font-size: var(--fs-meta); font-weight: 800; color: var(--text-2); }
.share-callout { background: var(--accent-soft); color: var(--accent-deep); }
.share-callout .btn { display: inline-flex; }
.share-main { margin-top: var(--s4); }
.share-main .btn { width: 100%; justify-content: center; }
.share-note { margin: var(--s3) 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: var(--fs-meta); color: var(--text-2); }
.share-note.err { background: var(--err-soft); color: var(--err); }
.share-note.ok { background: var(--ok-soft); color: #2f6e3c; }

/* 퇴장 예정 표시 (파티 카드) */
.shc-m.intent-one_more { box-shadow: inset 0 0 0 2px rgba(201, 122, 38, .55); }
.shc-m.intent-soon { box-shadow: inset 0 0 0 2px rgba(184, 51, 58, .55); }
.shc-intent { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.shc-intent.i-one_more { background: var(--apricot-soft); color: var(--apricot-deep); }
.shc-intent.i-soon { background: var(--accent-soft); color: var(--accent-deep); }
.shc-members.one-col .shc-intent { font-size: 13px; padding: 3px 10px; }
