/* One card, shared by the member dialog and the shop. All selectors are scoped. */
.r2-profile-card{--pc-ink:#382946;--pc-muted:#81718e;--pc-line:#e9e0f0;box-sizing:border-box;min-width:0;border:1px solid #d3c3e3;border-radius:22px;background:#fff;color:var(--pc-ink);box-shadow:0 12px 30px #4531610a;overflow:hidden;text-align:left}
.r2-profile-card *{box-sizing:border-box}
.r2-profile-card .r2-profile-cover{position:relative;height:160px;overflow:hidden;padding:22px 25px;color:#fff}
.r2-profile-card .bg-basic{background:linear-gradient(125deg,#ded5ee,#eae4f4 55%,#c9bcdf);color:#65517e}
.r2-profile-card .bg-galaxy{background:radial-gradient(ellipse at 78% -20%,#ba77c688,transparent 60%),radial-gradient(ellipse at 10% 100%,#524475,transparent 65%),linear-gradient(118deg,#20172f,#3c2552 56%,#181724)}
.r2-profile-card .bg-aurora{background:radial-gradient(ellipse at 85% 90%,#753acd88,transparent 62%),linear-gradient(135deg,#12383d,#307c88 40%,#655092 76%,#262c59)}
.r2-profile-card .bg-rose{background:radial-gradient(ellipse at 20% 110%,#a0669b88,transparent 60%),linear-gradient(130deg,#ad6587,#dfa7b2 46%,#eebca0 78%,#d58cb0);color:#573347}
.r2-profile-cover-label{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:2px;font-weight:700}
.r2-profile-cover-label>span+span{font-size:12px;letter-spacing:0;font-weight:400;padding:3px 8px;border:1px solid currentColor;border-radius:6px;opacity:.7}
.r2-profile-cover-word{position:absolute;bottom:32px;left:25px;font-size:clamp(25px,2.4vw,36px);font-weight:500;letter-spacing:4px;font-style:italic;opacity:.24;line-height:1.2;white-space:nowrap}
.r2-profile-orbit{position:absolute;right:-55px;top:-100px;width:290px;height:240px;border:1px solid #c7a9e34d;border-radius:50%;transform:rotate(-28deg)}
.r2-profile-orbit:after{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#ffe2a0;bottom:23px;left:50px;box-shadow:0 0 12px #fff1b9}
.r2-profile-spark{position:absolute;top:67px;right:70px;font-size:34px;color:#efdab1;opacity:.85}
.r2-profile-card .r2-profile-body{position:relative;padding:0 26px 21px}
.r2-profile-identity-top{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;min-width:0}
.r2-profile-avatar{flex:0 0 86px;width:86px;height:86px;border:5px solid #fff;border-radius:25px;overflow:hidden;margin-top:-38px;position:relative;background:#eee5fa;box-shadow:0 4px 12px #36224818}
.r2-profile-avatar .avatar{width:100%!important;height:100%!important;border:0!important;border-radius:0!important;margin:0!important;aspect-ratio:1;display:grid;place-items:center;background:#eee5fa;box-shadow:none!important}
.r2-profile-avatar .avatar img{position:static!important;inset:auto!important;display:block;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover;transform:none!important}
.r2-profile-avatar .avatar>span{font-size:34px!important;font-weight:800;color:#8760b7}
.r2-profile-affiliation{padding:5px 10px;margin-bottom:3px;border-radius:7px;background:#f4f0f9;color:#756284;font-size:14px;line-height:1.4;overflow-wrap:anywhere;text-align:right}
.r2-profile-title{min-height:32px;margin:15px 0 3px;display:flex;align-items:center;max-width:100%}
.r2-profile-title:empty:before{content:'장착한 칭호가 없습니다';font-size:14px;color:#95889f}
.r2-profile-title .shop-no-title{font-size:14px;color:#95889f}
.r2-profile-title .rt-label{font-size:14px;white-space:normal;overflow-wrap:anywhere;max-width:none}
.r2-profile-title .rt-badge{padding:5px 12px;max-width:100%;min-height:32px}
.r2-profile-card .r2-profile-name{margin:5px 0 0;padding:0;color:var(--pc-ink);font-size:28px;font-weight:750;line-height:1.4;letter-spacing:-.5px;overflow-wrap:anywhere}
.r2-profile-name .shop-nickname{font-size:inherit!important;font-weight:inherit;line-height:inherit;gap:6px}
.r2-profile-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;font-size:14px}
.r2-profile-meta .pill,.r2-profile-meta .member-role-tag,.r2-profile-meta .affiliation-tag{font-size:12px;line-height:1.5;margin:0}
.r2-profile-card .r2-profile-intro{margin:12px 0 0;color:var(--pc-muted);font-size:16px;line-height:1.75;min-height:28px;overflow-wrap:anywhere}
.r2-profile-card .r2-profile-metrics{display:grid;grid-template-columns:1fr 1.12fr .82fr;gap:0;border:1px solid var(--pc-line);border-radius:13px;background:#fdfbff;margin:20px 0 0;padding:15px 4px;overflow:hidden}
.r2-profile-metrics>div{min-width:0;padding:0 15px}
.r2-profile-metrics>div+div{border-left:1px solid var(--pc-line)}
.r2-profile-card .r2-profile-metrics dt{margin:0 0 6px;color:var(--pc-muted);font-size:14px;line-height:1.4;font-weight:400}
.r2-profile-card .r2-profile-metrics dd{margin:0;color:var(--pc-ink);font-size:24px;line-height:1.3;font-weight:750;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.r2-profile-card .r2-profile-metrics .r2-profile-rating{white-space:nowrap}
.r2-profile-metrics dd small{font-size:14px;font-weight:400;margin-left:4px;letter-spacing:0}
.r2-profile-card .r2-profile-metrics .r2-profile-tier{font-size:17px;letter-spacing:-.4px;color:#8661ad;line-height:1.7;overflow-wrap:anywhere}
.r2-profile-tier .rating-badge{font-size:14px;white-space:normal;text-align:center;margin:0;max-width:100%;padding:3px 5px}
.r2-profile-luna{display:flex;align-items:center;position:relative;min-height:143px;margin:18px 0 -6px;padding:6px 113px 8px 0}
.r2-profile-luna>img{position:absolute;right:-9px;bottom:-16px;width:132px;height:174px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 5px 6px #39224416);pointer-events:none}
:where(.r2-profile-bubble){position:relative;flex:1;min-width:0;border:1px solid #e2d6f0;border-radius:14px;background:#f4eefb;color:#6b527f;padding:15px 17px}
:where(.r2-profile-bubble):after{content:'';position:absolute;right:-6px;top:40%;width:10px;height:10px;transform:rotate(45deg);background:inherit;border:inherit;border-left:0;border-bottom:0}
.r2-profile-bubble>span{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:1.3px;font-weight:700;color:#9d7fbc}
.r2-profile-card .r2-profile-bubble p{margin:6px 0 0;font-size:14px;line-height:1.8;word-break:keep-all}

/* The public dialog puts compact rating details beside the same identity card. */
#modal.member-profile-dialog{width:min(1120px,calc(100% - 40px));max-height:94dvh;border-color:#d6c7e6;border-radius:24px;background:#f8f6fc;color:#382946}
.member-profile-dialog .dialog-head{padding:18px 26px;background:#ffffffef;border-bottom:1px solid #e9e0f0;backdrop-filter:blur(14px);z-index:5}
.member-profile-dialog .dialog-head h2{font-size:19px;letter-spacing:-.4px}
.member-profile-dialog #dialog-body{padding:24px;background:#f8f6fc}
.member-profile-layout{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);gap:22px;align-items:start}
.member-profile-primary,.member-profile-secondary{min-width:0}
.member-profile-secondary{display:grid;gap:18px}
.member-profile-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:14px;padding:0 3px}
.member-profile-actions .profile-social{margin:0;gap:10px}
.member-profile-actions .social-like-count{font-size:13px;gap:5px}
.member-profile-actions .social-like-count strong{font-size:20px}
.member-profile-actions .social-like-button{min-height:38px;padding:6px 12px;font-size:14px;border-radius:10px}
.member-profile-actions .btn{min-height:38px;font-size:14px;padding:7px 12px}
.member-profile-actions .profile-admin-actions{margin:0}
.member-profile-section{padding:21px 23px;border:1px solid #e3d9ec;border-radius:19px;background:#fff;min-width:0;color:#382946}
.member-profile-section h3{font-size:18px;line-height:1.5;letter-spacing:-.4px;margin:0}
.member-profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.member-profile-section-title>span{font-size:13px;color:#8d7b9b}
.profile-rating-compact{position:relative;overflow:hidden}
.profile-rating-compact:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#b994de,#81b8ed)}
.profile-rating-main{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:3px 0 18px;padding:0 0 17px;border-bottom:1px solid #eee6f3}
.profile-rating-scoreline{display:flex;align-items:baseline;gap:5px;margin-top:7px}
.profile-rating-value{font-size:38px;font-weight:800;letter-spacing:-1.2px;line-height:1.2;font-variant-numeric:tabular-nums}
.profile-rating-scoreline small{font-size:13px;color:#9a8ba6}
.profile-rating-tier-art{flex:0 0 89px;width:89px;height:86px;display:grid;place-items:center;background:radial-gradient(ellipse,#e8ecff80,transparent 70%)}
.profile-rating-tier-art img{display:block;width:100%;height:100%;object-fit:contain}
.profile-rating-tier-art .icon{width:48px;height:48px;color:#a58bc5;stroke-width:1.25}
.profile-rating-averages{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.profile-rating-averages>div{padding:12px 14px;background:#f9f6fd;border-radius:11px;min-width:0}
.profile-rating-averages dt{color:#82708f;font-size:13px;line-height:1.5;margin-bottom:5px}
.profile-rating-averages dd{margin:0;font-size:23px;line-height:1.2;font-weight:750;color:#624a7b;font-variant-numeric:tabular-nums}
.profile-rating-averages dd small{font-size:14px;font-weight:400;margin-left:3px}
.profile-rating-compact .profile-rating-progress{margin:17px 0 0}
.profile-rating-progress>div{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#877595;margin-bottom:8px}
.profile-rating-progress progress{width:100%;height:6px;display:block;border:0;border-radius:6px;overflow:hidden;accent-color:#9b74ce}
.profile-rating-progress progress::-webkit-progress-bar{background:#eee6f5}
.profile-rating-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#b198dc,#9562cd)}
.profile-rating-progress p{font-size:13px!important;line-height:1.6;margin:7px 0 0;color:#8d789b}
.profile-rating-compact .rating-records{margin:15px 0 0;padding:0;border:0;border-top:1px solid #eee6f3}
.profile-rating-compact .rating-records>summary{font-size:14px;font-weight:650;padding:14px 0 0;color:#6d527f;cursor:pointer}
.profile-rating-compact .rating-records ul{padding:0;margin:12px 0;list-style:none}
.profile-rating-compact .rating-records li{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;padding:10px 0;border-bottom:1px solid #f1ebf7}
.profile-rating-compact .rating-records li>span:first-child{min-width:0;overflow-wrap:anywhere}
.profile-rating-compact .rating-records small{display:block;font-size:12px;color:#97849f;margin-top:3px}
.profile-rating-compact .rating-guide{margin:10px 0 0;font-size:13px}
.profile-rating-compact .rating-guide>summary{font-size:13px;padding:10px 12px}
.member-profile-achievements .profile-section-title{margin:0 0 10px}
.member-profile-achievements .profile-section-title h3{font-size:18px}
.member-profile-achievements .profile-section-title>span{font-size:13px;color:#8d7b9b}
.member-profile-achievements .achievement-badges{margin-top:9px}
.member-profile-history{margin-top:21px}
.member-profile-history .profile-record{font-size:15px;padding:12px 0;gap:16px}
.member-profile-history .profile-record .song{font-size:15px;min-width:0;overflow-wrap:anywhere}
.member-profile-history .profile-record small{font-size:13px;line-height:1.6;color:#8a7698}
.member-profile-history .profile-record>strong{font-size:18px;white-space:nowrap;color:#8660b0}
.member-profile-dialog .profile-joined{font-size:13px;margin:17px 3px 0;color:#9a88a6}
.member-profile-dialog .info-banner{margin:0 0 18px;font-size:14px}
.member-profile-dialog .btn-row{gap:8px}
@media(max-width:800px){
 #modal.member-profile-dialog{width:calc(100% - 24px)}
 .member-profile-dialog #dialog-body{padding:17px}
 .member-profile-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .member-profile-dialog .r2-profile-cover{height:170px}
 .member-profile-section{padding:20px}
}
@media(max-width:480px){
 #modal.member-profile-dialog{width:calc(100% - 16px);border-radius:18px}
 .member-profile-dialog .dialog-head{padding:14px 16px}
 .member-profile-dialog #dialog-body{padding:12px}
 .r2-profile-card{border-radius:17px}
 .r2-profile-card .r2-profile-cover,.member-profile-dialog .r2-profile-cover{height:130px;padding:17px 18px}
 .r2-profile-cover-word{left:18px;bottom:31px;font-size:26px;letter-spacing:2px}
 .r2-profile-card .r2-profile-body{padding:0 17px 18px}
 .r2-profile-avatar{flex-basis:72px;width:72px;height:72px;border-width:4px;border-radius:22px;margin-top:-33px}
 .r2-profile-affiliation{font-size:12px;padding:5px 8px}
 .r2-profile-card .r2-profile-name{font-size:26px}
 .r2-profile-card .r2-profile-intro{font-size:15px}
 .r2-profile-card .r2-profile-metrics{padding:13px 2px;grid-template-columns:1.2fr 1.1fr .7fr}
 .r2-profile-metrics>div{padding:0 10px}
 .r2-profile-card .r2-profile-metrics dt{font-size:12px}
 .r2-profile-card .r2-profile-metrics dd{font-size:21px;letter-spacing:-.7px}
 .r2-profile-card .r2-profile-metrics .r2-profile-tier{font-size:15px;line-height:1.8}
 .r2-profile-tier .rating-badge{font-size:12px}
 .r2-profile-luna{padding-right:91px;min-height:130px;margin-top:17px}
 .r2-profile-luna>img{width:110px;height:149px;right:-8px;bottom:-16px}
 .r2-profile-bubble{padding:13px 12px}
 .r2-profile-card .r2-profile-bubble p{font-size:13px;line-height:1.9}
 .member-profile-section{padding:18px 17px;border-radius:16px}
 .member-profile-section-title>span{font-size:12px}
 .profile-rating-value{font-size:34px}
 .profile-rating-averages>div{padding:12px}
 .profile-rating-averages dt{font-size:12px}
 .member-profile-history .profile-record .song{font-size:14px}
 .member-profile-history .profile-record small{font-size:12px}
}
@media(max-width:360px){
 .r2-profile-metrics>div{padding:0 8px}
 .r2-profile-card .r2-profile-metrics dd{font-size:18px}
 .r2-profile-card .r2-profile-metrics dt{font-size:12px}
 .r2-profile-card .r2-profile-metrics .r2-profile-tier{font-size:14px}
 .r2-profile-metrics dd small{font-size:12px;margin-left:2px}
}
