/* 7 October 2026: social (player profiles, tappable names, trades in Mail) */

/* ---------- A player's name or picture you can tap (data-player, js/profiles.js) ---------- */
#phone [data-player] { cursor: pointer; -webkit-tap-highlight-color: rgba(232, 182, 74, .25); }
#phone b[data-player], #phone small[data-player], #phone .plink,
#phone span[data-player]:not(.pfwrap):not(.pvppic):not(.arenapic),
#phone .row[data-player] > div > b:first-child {
  text-decoration: underline dotted rgba(232, 207, 160, .6); text-underline-offset: 3px;
}
#phone .row.static[data-player]:active { background: var(--panel2); }
#phone .plink { color: #e8cfa0; }
/* not on the log-in screens, where nobody is logged in to look at a profile; nor on the name at the top of the profile you are reading */
#phone .auth [data-player], #phone .pp-sheet .sheet-head [data-player], #phone .pp-name [data-player] { cursor: default; text-decoration: none !important; }

/* ---------- The profile ---------- */
.pp-top { display: flex; gap: 12px; align-items: center; }
.pp-pic { flex: none; line-height: 0; }
.pp-pic .pfwrap { --ps: 4; width: 104px; height: 104px; overflow: hidden; place-content: center; border-radius: 12px; background: radial-gradient(#2e2620, #15100c); }
.pp-pic .pfwrap:not(.pframe) { border: 1px solid var(--line); }
.pp-pic .hero-sprite { margin: 0; }
.pp-id { flex: 1; min-width: 0; }
.pp-id p { margin: 2px 0; font-size: 13px; }
.pp-id h3.pp-name { margin: 0 0 2px; color: var(--gold); font-size: 20px; overflow-wrap: anywhere; }
.pp-id p.pp-title { font-family: var(--pixel); color: #e8cfa0; font-size: 15px; }
.pp-guild { display: flex; align-items: center; gap: 2px; max-width: 100%; background: none; border: 0; padding: 4px 0; color: var(--ink); font-size: 13px; text-align: left; }
.pp-guild > span:last-child { text-decoration: underline dotted rgba(232, 207, 160, .6); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-id p.pp-noguild, .pp-id p.pp-seen, .pp-id p.pp-role { color: var(--muted); }
.pp-id p.pp-role { margin-top: -2px; font-size: 12px; }
.pp-motto { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--gold2); background: #1b1410; border-radius: 0 8px 8px 0; font-style: italic; overflow-wrap: anywhere; }
.pp-motto.empty { color: var(--muted); font-style: normal; }
.pp h4.pp-h, .sheet h4.pp-h { margin: 14px 0 6px; font-size: 15px; color: var(--muted); }
.pp .statgrid { margin-top: 0; }
.pp .statgrid b { font-size: 17px; overflow-wrap: anywhere; }
.pp-gear { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 2px; }
.pp-slot { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); min-width: 0; }
.pp-slot small { font-size: 10px; }
.pp-slot:disabled { opacity: .5; }
.pp .off { opacity: .5; }
.pp-private { margin: 4px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; }
.pp-pet { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pp-pet small { display: block; color: var(--muted); font-size: 12px; }
.pp-ach { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pp-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: #241c16; border: 1px solid var(--line); color: var(--ink); border-radius: 16px; padding: 4px 10px 4px 6px; font-size: 12px; text-align: left; }
.pp-chip .ico { width: 16px; height: 16px; flex: none; }
.pp-curios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pp-curio { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.pp-curio small { font-size: 11px; text-align: center; line-height: 1.2; }
.pp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pp-acts .btn { min-height: 40px; }
.card.pp-card { padding: 12px; }
.card label.switch.pp-sw { display: flex; position: relative; margin: 12px 0; color: var(--ink); font-size: 14px; }
/* the real checkbox sits under the switch, so tapping it never scrolls the screen to find it */
.switch.pp-sw input { left: 0; top: 0; width: 44px; height: 24px; margin: 0; }
.row.pp-pick.on { border-color: var(--gold); }

/* ---------- Trades (js/trade.js) ---------- */
.tr-add { display: flex; gap: 8px; margin: 8px 0; }
.tr-add .btn { flex: 1; }
.sheet-body label.tr-gold { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.sheet-body label.tr-gold input { width: 120px; flex: none; margin: 0 0 0 auto; }
.tr-worth { margin: 12px 0 4px; padding: 8px 10px; background: #1b1410; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.tr-worth:empty { display: none; }
.tr-state { margin: 12px 0 4px; }
.row.tr-line { padding: 7px 8px; }
.row.tr-line[data-trlook] { cursor: pointer; }
.row.tr-line .btn { flex: none; }
.sheet-body label.tr-gold input, .sheet-body input#tr-n { padding: 8px 10px; border-radius: 8px; border: 2px solid var(--line); background: #120e0b; color: var(--ink); outline: none; }
.sheet-body input#tr-n { margin-top: 4px; }
