/* Profile photo = an Anti-Social PFP the wallet holds (profile-pfp.js). Black, grey and white like the rest of
   the portal; mobile first (375 px), no layout shift: every image carries its size. */

/* The verified mark on a PFP avatar (owner hero and public collector hero). */
.studio-avatar-ring, .collector-avatar-ring { position: relative; }
.pfp-check { position: absolute; right: 4%; bottom: 4%; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #f2f2f0; color: #111; font-size: 14px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 3px #161616; }
.collector-avatar-ring .pfp-check { width: 24px; height: 24px; font-size: 13px; box-shadow: 0 0 0 3px #0e0e0e; }

/* Owner Profile: "Select profile photo". */
.portal[data-page='profile'] .upload-grid .studio-pfp, .portal[data-page='profile'] .upload-grid:has(.studio-pfp) .studio-upload { grid-column: 1 / -1; }
.portal[data-page='profile'] .studio-pfp { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--studio-line, #3a3a3a); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.portal[data-page='profile'] .studio-pfp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.portal[data-page='profile'] .studio-pfp-head h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: .02em; }
.portal[data-page='profile'] .studio-pfp-head small { display: block; color: #bcbcbc; font-size: 12px; line-height: 1.45; max-width: 46ch; }
.portal[data-page='profile'] .studio-pfp [role='status'] { color: #bcbcbc; font-size: 12px; min-height: 1em; }
.portal[data-page='profile'] .studio-pfp [role='status']:empty { display: none; }
.pfp-panel[hidden] { display: none; }
.pfp-picker-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pfp-picker-head p, .pfp-picker-note { margin: 0; color: #c9c9c9; font-size: 12px; line-height: 1.5; }
.pfp-picker-head b { color: #f2f2f0; }
.pfp-test-tag { padding: 3px 8px; border: 1px solid #5a5a5a; border-radius: 999px; color: #d6d6d6; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.pfp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.pfp-option { position: relative; display: grid; gap: 6px; width: 100%; min-height: 44px; padding: 6px; border: 1px solid #3a3a3a; border-radius: 12px; background: #131313;
  color: #e2e2e2; font: inherit; font-size: 11px; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.pfp-option:hover:not(:disabled) { border-color: #f2f2f0; }
.pfp-option:disabled { cursor: progress; opacity: .6; }
.pfp-option[aria-pressed='true'] { border-color: #f2f2f0; box-shadow: 0 0 0 1px #f2f2f0; }
.pfp-option img, .pfp-option i { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; background: #1c1c1c; object-fit: cover;
  color: #8c8c8c; font-style: normal; font-weight: 800; }
.pfp-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfp-option b { position: absolute; top: 10px; left: 10px; padding: 3px 6px; border-radius: 999px; background: #f2f2f0; color: #111; font-size: 9px; letter-spacing: .08em; }
.pfp-picker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pfp-picker-actions:empty { display: none; }

/* Public collector: "PFPs held". */
.pfp-showcase h2 .pfp-count { display: inline-grid; place-items: center; min-width: 1.6em; margin-left: 6px; padding: 0 .35em; border: 1px solid currentColor; border-radius: 999px;
  font-size: .45em; vertical-align: middle; letter-spacing: 0; }
.pfp-held-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.pfp-held { display: grid; gap: 6px; color: #e2e2e2; font-size: 11px; text-decoration: none; }
.pfp-held img { width: 100%; height: auto; aspect-ratio: 1; border: 1px solid #2c2c2c; border-radius: 12px; background: #161616; object-fit: cover; transition: border-color .2s ease; }
.pfp-held:hover img, .pfp-held:focus-visible img { border-color: #f2f2f0; }
.pfp-held span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfp-showcase-more { margin: 14px 0 0; }
@media (min-width: 760px) {
  .pfp-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .pfp-held-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .pfp-option, .pfp-held img { transition: none; } }
