/* Profilseite */
/* Profil */
.profile { background: none; border: none; color: inherit; font: inherit; cursor: pointer; text-align: left; padding: 0; }
.ptitle { font-weight: 800; font-size: 17px; }
.phead { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 0; }
.avatar.lg { width: 84px; height: 84px; font-size: 36px; }
.phead h2 { margin: 6px 0 0; font-size: 22px; }
.phead small { color: var(--muted); font-size: 13px; }
.bio, .lvlbox, .friendcode { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.bio { line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bio.empty { color: var(--muted); }
.lvlrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lvlrow span { color: var(--muted); font-size: 13px; font-weight: 600; }
.lvlbox .xpbar { width: 100%; height: 8px; margin: 0; }
.field { width: 100%; background: #00000040; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; padding: 12px; user-select: text; }
textarea.field { resize: none; height: 84px; display: block; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.friendcode { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.friendcode small { color: var(--muted); font-size: 12px; display: block; }
.friendcode b { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: 1.5px; }
.friendcode .btn { flex: none; height: 40px; padding: 0 14px; font-size: 14px; }
.empty-state { text-align: center; color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: 16px; font-size: 14px; line-height: 1.5; }

/* Banner, Profilbild, Rahmen */
.phead { position: relative; }
.pbanner { align-self: stretch; height: 120px; margin-bottom: -48px; border: 1px solid var(--line); background: var(--surface) center / cover no-repeat; }
.avatar { overflow: hidden; }
.avatar img, .ava img, .pa img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.lg { position: relative; border: 4px solid var(--bg); box-sizing: content-box; }
.ava { overflow: hidden; }
#cosmetics { display: flex; flex-direction: column; gap: 10px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.picks.wide { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pick.sel { border-color: var(--text); }
.pick.locked { opacity: .45; }
.pick small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pa { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #fff; color: #0b0b0c; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.pick { position: relative; }
.pick .lock { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 11px; }
.pb { align-self: stretch; height: 44px; background: var(--sunken) center / cover no-repeat; border: 1px solid var(--line); }

/* Profilbild links am Rand, Name und Infos linksbündig darunter */
.phead { align-items: flex-start; text-align: left; }
.phead .avatar.lg { margin-left: 14px; }
.phead h2, .phead small { padding-left: 2px; }
.lvlrow { flex-wrap: wrap; gap: 4px 10px; }
.lvlrow b { white-space: nowrap; }
