/* css/profile.css — profile.html's own rules. They were an inline <style>
   until 2026-10-22; the pages' CSP refuses inline style
   (style-src 'self', deploy/nginx/elopros.com.conf). */
/* friends: the list on your own profile (store.js frPaint), the button on someone else's (frButton) */
.pfr-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.pfr-face {
  position: relative; flex: 0 0 32px; width: 32px; height: 32px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--store-line); border-radius: var(--r);
  background: var(--store-panel-2); color: var(--g-live); font-family: var(--sg); font-weight: 700;
}
.pfr-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pfr-name { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.pfr-st { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; }
.pfr-acts { display: flex; gap: 8px; margin-left: auto; }
.pfr-sub { margin-top: 14px; }
.pfr-add { margin-top: 14px; }
.pfr-act { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-right: 8px; }
/* the role badges beside the name (store.js fillBadges) */
.id-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.id-badges:empty { display: none; }
/* the bio a wallet signed for itself (meter/showcase.py): plain text, its own line breaks */
.id-bio { margin-top: 8px; max-width: 60ch; white-space: pre-line; overflow-wrap: anywhere; color: var(--store-ink); }
/* the items a player shows off, and their favourite games */
.pf-show { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
/* each item opens its market in the terminal */
a.pf-show-item { color: inherit; text-decoration: none; }
a.pf-show-item:hover { border-color: var(--store-line-2); }
.pf-show-blank { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
  background: var(--store-pit); color: var(--store-dim); font-size: 1.6rem; border-radius: 2px; }
.pf-favs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pf-fav { display: flex; flex-direction: column; gap: 4px; padding: 8px; text-decoration: none; color: inherit;
  background: var(--store-panel); border: 1px solid var(--store-line); border-radius: var(--r-sm); }
.pf-fav:hover { text-decoration: none; border-color: var(--store-line-2); }
.pf-fav img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 2px; background: var(--store-pit); }
.pf-fav span { font-size: .76rem; }
/* customize: your own page only */
.pf-custom { margin-top: 14px; }
.pf-custom summary { cursor: pointer; font-family: var(--sg); font-weight: 700; min-height: 44px;
  display: flex; align-items: center; }
.pf-custom textarea { width: 100%; max-width: 60ch; resize: vertical; font: inherit; color: var(--store-ink);
  background: var(--store-pit); border: 1px solid var(--store-line); border-radius: var(--r-sm); padding: 8px; }
.pf-custom .f-label { margin-top: 12px; }
.pf-themes { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-swatch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--store-line); border-radius: var(--r-sm); background: var(--pf-sw, var(--store-panel-2)); }
.pf-swatch:has(input:checked) { border-color: var(--store-ink); }
.pf-sw-lime { --pf-sw: rgba(0, 200, 5, .22); }
.pf-sw-ember { --pf-sw: rgba(255, 112, 48, .25); }
.pf-sw-frost { --pf-sw: rgba(127, 208, 255, .22); }
.pf-sw-dusk { --pf-sw: rgba(150, 110, 255, .25); }
.pf-sw-moss { --pf-sw: rgba(120, 150, 70, .3); }
.pf-sw-gold { --pf-sw: rgba(201, 162, 39, .28); }
.pf-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-pick-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; cursor: pointer;
  border: 1px solid var(--store-line); border-radius: var(--r-sm); background: var(--store-panel); }
.pf-pick-item:has(input:checked) { border-color: var(--g-live); }
.pf-pick-item:has(input:disabled) { opacity: .55; cursor: default; }
.pf-pick-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 2px; }
/* the themes a wallet picks: a wash over its header, and its section rules */
#profile-root[class*="pf-theme-"] .id-head {
  background-image: linear-gradient(135deg, var(--pf-wash) 0%, #12170f 65%);
  border-color: var(--pf-edge);
}
#profile-root[class*="pf-theme-"] .gp-h { border-bottom-color: var(--pf-edge); }
.pf-theme-lime { --pf-wash: rgba(0, 200, 5, .22); --pf-edge: rgba(0, 200, 5, .45); }
.pf-theme-ember { --pf-wash: rgba(255, 112, 48, .26); --pf-edge: rgba(255, 112, 48, .5); }
.pf-theme-frost { --pf-wash: rgba(127, 208, 255, .22); --pf-edge: rgba(127, 208, 255, .45); }
.pf-theme-dusk { --pf-wash: rgba(150, 110, 255, .26); --pf-edge: rgba(150, 110, 255, .5); }
.pf-theme-moss { --pf-wash: rgba(120, 150, 70, .32); --pf-edge: rgba(150, 180, 90, .5); }
.pf-theme-gold { --pf-wash: rgba(201, 162, 39, .28); --pf-edge: rgba(201, 162, 39, .55); }
