/* Forge Profile (2.0). Builds on gym/gym.css (.fg); scoped under .fp. */
.fg.fp { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }

.fp .fp-hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.fp .fp-av { position: relative; width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: var(--ring, #444); }
.fp .fp-av > img, .fp .fp-av > span { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--fg-bg1); display: grid; place-items: center; object-fit: cover; background: linear-gradient(135deg, #7c6cff, #4b3fd1); font: 800 28px var(--fg-ui); color: #fff; }
.fp .fp-av i { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; font-style: normal; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--fg-bg1); }
.fp .fp-id { min-width: 0; }
.fp .fp-name { font: 700 21px var(--fg-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp .fp-handle { font-size: 11px; color: var(--fg-muted); margin: 2px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp .fp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fp .fp-lvl { grid-column: 1 / -1; }
.fp .fp-lvl-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.fp .fp-lvl-row b { font: 700 14px var(--fg-ui); }
.fp .fp-lvl-row span { font-size: 11px; color: var(--fg-muted); }
.fp .fp-lvl .bar { display: block; }

.fp .fp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.fp .fp-stat { background: var(--fg-bg1); border: 1px solid var(--fg-border); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp .fp-stat .fp-ic { font-size: 15px; }
.fp .fp-stat b { font: 800 19px var(--fg-ui); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.fp .fp-stat .fp-l { font-size: 11px; color: #aaa; }
.fp .fp-stat small { font-size: 10px; color: var(--fg-muted); }
.fp .fp-share { width: 100%; margin-top: 10px; }

.fp .fp-life { display: flex; flex-direction: column; gap: 12px; }
.fp .fp-ls-row { display: flex; justify-content: space-between; margin-bottom: 5px; font: 600 13px var(--fg-ui); }
.fp .fp-ls-row b { font-family: var(--fg-hud); font-size: 12px; }
.fp .fp-ls .bar { display: block; }

.fp .fp-form { display: flex; flex-direction: column; gap: 14px; }
.fp .fp-f { display: flex; flex-direction: column; gap: 6px; }
.fp .fp-f > span { font-family: var(--fg-hud); font-size: 9px; letter-spacing: 0.14em; color: var(--fg-muted); text-transform: uppercase; }
.fp .fp-f input, .fp .fp-f textarea { width: 100%; background: var(--fg-bg3); border: 1px solid var(--fg-border); border-radius: 12px; padding: 11px 13px; font: 16px var(--fg-ui); color: #fff; outline: none; resize: vertical; color-scheme: dark; }
.fp .fp-f textarea { min-height: 64px; line-height: 1.45; }
.fp .fp-f input:focus, .fp .fp-f textarea:focus { border-color: #555; }
.fp .fp-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp .fp-style { text-align: left; border: 1px solid var(--fg-border); background: var(--fg-bg3); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fp .fp-style b { font: 700 14px var(--fg-ui); }
.fp .fp-style small { font-size: 11px; color: var(--fg-muted); line-height: 1.35; }
.fp .fp-style.active { border-color: var(--fg-xp); background: rgba(124, 108, 255, 0.12); }
.fp .fp-style.active small { color: #b8b0ff; }
.fp .fp-rm { display: block; margin: 18px auto 0; color: #777; font-size: 12px; text-decoration: underline; }

/* badges */
.fp .fp-bcount { color: #555; margin-left: 6px; }
.fp .fp-bgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.fp .fp-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; border-radius: 12px; }
.fp .fp-b.sel { background: #1a1a1a; }
.fp .fp-b span { font: 600 10px var(--fg-ui); color: #999; text-align: center; line-height: 1.2; }
.fp .fp-b .badge-svg.earned + span { color: #eee; }
.fp .fp-bdetail { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1c1c1c; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.fp .fp-bdetail b { font: 700 15px var(--fg-ui); }
.fp .fp-bdetail span { font-size: 12px; color: #aaa; }
.fp .fp-bdetail small { font-size: 11px; color: #9b8fff; margin-top: 4px; }
