/* ===========================================================================
   Born from Blood — Profile · profile.css
   Profile-specific layout: header (avatar/showcase/featured deck), settings
   form, search box, and the avatar/showcase picker overlay.
   Reuses .rv-*, .coll-*, .gcard*, .pack-count-box, .gacha-* from gacha.css /
   style.css as-is.
   =========================================================================== */

.profile-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(150,40,55,.35); }

.profile-sub { text-align: center; color: var(--muted); font-size: 0.85rem; margin: -8px 0 8px; }

/* ---- header row: avatar / showcase card / featured deck ---- */
.profile-header { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; justify-content: center; margin: 18px 0; }

.profile-avatar { display: flex; align-items: center; }
.avatar-circle { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold2); background: #0c0609; display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.avatar-empty { color: var(--muted); }

/* ---- showcase flip card (reuses .rv-card / .rv-inner / .rv-front / .rv-back) ---- */
.profile-showcase { flex-shrink: 0; }
.showcase-card .rv-back, .showcase-card .rv-front { background: #0c0609; }
.showcase-card .rv-back img, .showcase-card .rv-front img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.showcase-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.showcase-placeholder .showcase-icon { font-size: 32px; line-height: 1; }

/* ---- featured deck card (reuses .gcard / .gcard-img / .gcard-body etc.) ---- */
.profile-deck { width: 170px; flex-shrink: 0; }
.deck-empty-box { width: 170px; height: 238px; border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 13px; padding: 10px; }

/* ---- settings form ---- */
.pf-label { display: block; margin-top: 12px; color: #d7b9bf; font-size: 0.78rem; font-weight: 700; }
.pf-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* ---- avatar / showcase picker overlay ---- */
.picker-modal { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.picker-modal[hidden] { display: none; }
.picker-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; max-width: 680px; max-height: 80vh; overflow-y: auto; width: 100%; }
.picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.picker-head h3 { font-family: var(--display); color: var(--gold); margin: 0; }
.picker-head button { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.picker-head button:hover { color: var(--text); }
.picker-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.picker-none .coll-img { display: flex; }
.picker-none-inner { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; color: var(--muted); font-size: 0.85rem; text-align: center; }
