#player-profile{--pp-ink:#f8eed8;--pp-muted:#bed2d0;color:var(--pp-ink);max-width:720px;margin:auto;padding:4px 0 12px}#player-profile button{min-height:44px}#player-profile h2{padding-right:46px;margin:8px 0;font-size:clamp(27px,5vw,40px)}#player-profile h3{margin:0 0 12px;font-size:19px}#player-profile p{line-height:1.6}#player-profile .pp-muted{color:var(--pp-muted);font-size:13px}.pp-hero{position:relative;padding:24px;border-radius:22px;background:linear-gradient(135deg,#164854,#0a2835);border:1px solid #92bbb738;overflow:hidden}.pp-hero:before{content:'';position:absolute;width:230px;height:230px;right:-90px;top:-130px;border:30px solid #d5c19710;border-radius:50%;pointer-events:none}.pp-identity{display:flex;gap:16px;align-items:center}.pp-avatar{width:70px;height:70px;flex:none;display:grid;place-items:center;border-radius:22px;background:#f5e4bc;color:#185467;font-size:34px;box-shadow:0 4px 0 #9f8968}.pp-kicker{font-size:11px;letter-spacing:.14em;font-weight:800;color:#e3c78f}.pp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.pp-primary,.pp-secondary{border-radius:12px;padding:11px 16px;font-weight:700;border:1px solid #9cbab650}.pp-primary{background:#ebd3a1;color:#163d49;box-shadow:0 3px 0 #9b8050}.pp-secondary{background:#193c47;color:#eef0df}.pp-primary:active,.pp-secondary:active{transform:translateY(1px)}#player-profile button:focus-visible{outline:3px solid #85dcdd;outline-offset:3px}#player-profile button:disabled{opacity:.5;cursor:not-allowed}.pp-section{padding:22px 0;border-bottom:1px solid #b8ccc426}.pp-badges{display:flex;gap:9px;flex-wrap:wrap}.pp-badge{padding:11px 14px;border:1px solid #b9cbb137;border-radius:13px;background:#1b3b42;font-size:13px}.pp-gifts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pp-gift{border:1px solid #b5c6b337;border-radius:18px;background:linear-gradient(145deg,#234751,#122e39);padding:15px;min-width:0}.pp-gift>img{display:block;width:100%;height:125px;object-fit:contain}.pp-gift h4{font-size:16px;margin:5px 0 7px}.pp-gift p{margin:4px 0 12px;font-size:13px;color:var(--pp-muted)}.pp-gift button{width:100%}.pp-price{font-weight:800;color:#f3d9a6}.pp-confirm{border:1px solid #e8ca8b88;border-radius:18px;padding:22px;background:#25464d}.pp-confirm>img{width:145px;height:110px;display:block;margin:auto}.pp-status{padding:12px 15px;border-radius:12px;background:#24484d;margin:12px 0;font-size:14px}.pp-error{background:#593b37;color:#ffe4d6}.pp-setting{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:14px;line-height:1.5}.pp-setting input{width:22px;height:22px;flex:none;accent-color:#d9bb7e}.pp-cabinet{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.pp-cabinet .pp-gift{animation:pp-reveal .3s ease-out}.pp-empty{padding:24px;border:1px dashed #a9c0ba55;border-radius:17px;color:#c5d7d2}.pp-back{background:none;border:0;color:#c7dbd5;padding:6px 0;text-align:left}.pp-policy{font-size:12px;color:#bdd0ca;margin-top:12px}.pp-busy{opacity:.65}.pp-list-end{text-align:center;padding:12px}.pp-gift-foot{display:flex;gap:5px;flex-wrap:wrap}.pp-gift-foot button{font-size:12px;padding:8px}.pp-id{overflow-wrap:anywhere;font-size:12px;color:#a9c8c5}@keyframes pp-reveal{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:480px){.pp-hero{padding:18px 16px}.pp-avatar{width:58px;height:58px;font-size:29px}.pp-identity{gap:12px}.pp-gifts,.pp-cabinet{gap:9px}.pp-gift{padding:11px}.pp-gift>img{height:100px}.pp-gift h4{font-size:14px}.pp-section{padding:18px 0}.pp-confirm{padding:16px}.pp-actions>*{flex:1}.pp-actions button{font-size:13px}}@media(prefers-reduced-motion:reduce){#player-profile *,#player-profile *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}.pp-primary:active,.pp-secondary:active{transform:none}}
/* Compact identity leaves the gifts, rather than a display headline, as the next action. */
#player-profile .pp-hero{padding:18px 20px}#player-profile .pp-identity{gap:13px}#player-profile .pp-identity>div{min-width:0;flex:1}#player-profile .pp-identity h2{font-size:30px;line-height:1.2;letter-spacing:-.7px;padding-right:0;margin:7px 0;overflow-wrap:anywhere}#player-profile .pp-avatar{width:58px;height:58px;font-size:29px;border-radius:18px}#player-profile .pp-actions{margin-top:12px}#player-profile .pp-section{padding:16px 0}#player-profile .pp-section>h3{margin-bottom:8px}#player-profile .pp-section>.pp-muted{margin:8px 0 12px}#player-profile .pp-back{padding-top:0;padding-bottom:0}@media(max-width:480px){#player-profile .pp-hero{padding:16px 14px}#player-profile .pp-identity h2{font-size:24px;line-height:1.25;letter-spacing:-.5px}#player-profile .pp-avatar{width:50px;height:50px;font-size:26px}#player-profile .pp-identity{gap:10px}}
/* A rating-origin identity stays fully readable in the narrow modal; no name truncation. */
@media(max-width:480px){#player-profile[data-from-rating] .pp-identity{flex-direction:column;align-items:flex-start;gap:8px}#player-profile[data-from-rating] .pp-identity>div{width:100%}#player-profile[data-from-rating] .pp-identity h2{font-size:24px;line-height:1.25;word-break:normal;overflow-wrap:anywhere;max-width:100%}#player-profile[data-from-rating] .pp-avatar{margin-top:10px}}
/* Safety confirmations reveal synchronously, including reduced-motion users. */
#player-profile #pp-confirmation{scroll-margin-block:12px}
#player-profile #pp-confirmation:focus{outline:2px solid #86d9cf;outline-offset:3px}
#player-profile #pp-inbox-jump{min-height:44px;margin-top:12px;max-width:100%;white-space:normal;text-align:left}
#player-profile #pp-gift-cabinet{scroll-margin-block:12px}
#player-profile #pp-gift-cabinet:focus{outline:2px solid #86d9cf;outline-offset:3px}
@media(max-width:360px){#player-profile .pp-confirm .pp-actions{flex-direction:column;align-items:stretch}#player-profile .pp-confirm .pp-actions button{flex:auto;min-height:44px;width:100%;white-space:normal;word-break:normal;overflow-wrap:normal}}
#player-profile .pp-page-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
#player-profile .pp-page-nav p{flex-basis:100%;margin:4px 0;font-size:12px;color:var(--pp-muted)}
#player-profile .pp-page-nav button{min-height:44px;white-space:normal}
@media(max-width:360px){#player-profile .pp-page-nav button{width:100%}}
@media(max-width:360px){#player-profile .pp-owned-cabinet{grid-template-columns:1fr}#player-profile .pp-owned-cabinet .pp-gift{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px 10px}#player-profile .pp-owned-cabinet .pp-gift>img{width:72px;height:72px;grid-column:1;grid-row:1/3}#player-profile .pp-owned-cabinet .pp-gift>h4,#player-profile .pp-owned-cabinet .pp-gift>p{grid-column:2;overflow-wrap:anywhere}#player-profile .pp-owned-cabinet .pp-gift-foot{grid-column:1/-1}#player-profile .pp-owned-cabinet .pp-gift-foot button{min-height:44px;font-size:13px}}
