/* 회원 프로필 전용 */

/* 금색 칭호 칩 */
.chip--gold { color: #E3B35C; border-color: rgba(227,179,92,0.55); }
.lv--gold { color: #E3B35C; border-color: rgba(227,179,92,0.55); }

/* 상단 프로필 카드 */
.profile-card { display: flex; align-items: center; gap: var(--sp-6); padding: var(--sp-8) var(--sp-6); }
.profile-card__avatar { width: 96px; height: 96px; font-size: 34px; font-weight: 800; }
.profile-card .avatar.profile-card__avatar { box-shadow: 0 0 0 3px var(--surface-solid), 0 0 0 5px rgba(255,255,255,.18), 0 8px 20px -8px rgba(0,0,0,.7); }
.profile-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.profile-card__name { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.profile-card__bio { font-size: 15px; color: var(--text-sub); }
.profile-card__actions { flex-shrink: 0; }

/* 요약 수치 5칸 */
.profile-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
.profile-stats .stat__value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

/* 최근 글 */
.profile-posts { display: flex; flex-direction: column; }
.profile-post { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); color: var(--text); transition: background .2s ease; }
.profile-post:last-child { border-bottom: 0; }
.profile-post:hover { color: var(--text); background: rgba(255,255,255,0.035); }
.profile-post__title { flex: 1; }
.profile-post__time { flex-shrink: 0; font-size: 13px; color: var(--muted); }

/* 글이 없을 때 · 게임장 기록 */
.profile-empty { padding: var(--sp-8) var(--sp-5); text-align: center; color: var(--muted); }
.profile-game { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.profile-game > div { display: flex; flex-direction: column; gap: 2px; }
.profile-game b { font-size: var(--fs-lg); color: var(--text-strong); }

/* 대표 동료 */
.profile-buddy__img { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-lg); font-size: 11px; }
.profile-buddy__text { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.profile-buddy__name { color: var(--text-strong); }

@media (max-width: 1024px) {
  .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .profile-card { flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); padding: var(--sp-6) var(--sp-5); }
  .profile-card__avatar { width: 72px; height: 72px; font-size: 26px; }
  .profile-card__actions { width: 100%; }
  .profile-card__actions .btn { flex: 1; }
  .profile-stats .stat__value { font-size: 20px; }
}
@media (max-width: 480px) {
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 다섯째 칸(포인트)이 반 칸으로 혼자 남지 않게 */
  .profile-card__body { flex-basis: 100%; }
  .profile-post { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
  .profile-post .chip { font-size: 11px; padding: 2px 8px; }
}
