.profile-details{position:relative;width:min(100%,calc(100svh * 2 / 3));aspect-ratio:2/3;margin:auto;container-type:inline-size;color:#51240f;font-family:Arial,sans-serif;isolation:isolate}.pd-art{display:block;width:100%;height:100%;pointer-events:none}.profile-details .pd-text,.profile-details .pd-hit,.pd-title,.pd-avatar,.pd-xp{position:absolute;box-sizing:border-box;margin:0}.profile-details .pd-hit{padding:0;border:0;background:transparent;box-shadow:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#55210d;font-family:Arial,sans-serif;line-height:1.1}.profile-details .pd-hit:focus-visible{outline:3px solid #18c8de;outline-offset:2px}.pd-title{left:26%;top:5.4%;width:48%;height:6.3%;display:grid;place-items:center;font-size:6.4cqw;color:#fff2a9;text-shadow:0 2px 1px #713100;font-weight:800;white-space:nowrap}.profile-details .pd-close{left:82.9%;top:8.3%;width:7.8%;height:5.2%;color:#b41214;font-size:6.8cqw;font-weight:700}.pd-avatar{left:33%;top:13.8%;width:34%;aspect-ratio:1;border-radius:50%;overflow:hidden}.pd-avatar svg{width:100%;height:100%;display:block}.profile-details .pd-avatar-edit{left:58%;top:27.7%;width:7.8%;height:5.2%;font-size:5.4cqw}.pd-text{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.1;overflow:hidden}.pd-name{left:28%;top:34%;width:38%;height:4.6%;font-size:5cqw;font-weight:800;white-space:nowrap;text-overflow:ellipsis}.profile-details .pd-name-edit{left:67%;top:34.3%;width:6.5%;height:4.3%;font-size:4.7cqw}.pd-level{left:41%;top:39.3%;width:18%;height:2.5%;font-size:3.2cqw;font-weight:700;white-space:nowrap}.pd-xp{left:20%;top:42.3%;width:60%;height:2.8%;border-radius:99px;overflow:hidden;background:#064e30;color:white;display:grid;place-items:center;font-size:3cqw;font-weight:700}.pd-xp i{position:absolute;inset:0 auto 0 0;background:linear-gradient(#21d887,#00a355);border-radius:inherit}.pd-xp span{z-index:1;text-shadow:0 1px 2px #00391c}.pd-coins,.pd-gems{top:47%;height:4.1%;width:18%;font-size:4.2cqw;font-weight:800}.pd-coins{left:27%}.pd-gems{left:64%}.pd-stat-title{left:34%;top:53%;width:32%;height:2.7%;font-size:3.4cqw;font-weight:800}.pd-stat{top:62.7%;width:21%;height:4.5%;flex-direction:column;gap:.3cqw}.pd-stat strong{font-size:4cqw}.pd-stat span{font-size:2.7cqw}.pd-played{left:15%}.pd-won{left:39.5%}.pd-rate{left:64%}.pd-code{left:29%;top:70.1%;width:43%;height:4.2%;flex-direction:column;align-items:flex-start;gap:.4cqw}.pd-code small{font-size:2.6cqw}.pd-code strong{font-size:3.3cqw}.profile-details .pd-copy{left:76%;top:69.8%;width:8%;height:4.7%}.pd-account{left:24%;top:76.8%;width:59%;height:4%;flex-direction:column;align-items:flex-start;gap:.4cqw;text-align:left}.pd-account strong{font-size:3.1cqw}.pd-account span{font-size:2.35cqw}.profile-details .pd-provider{left:40%;width:30%;height:3.6%;font-size:2.6cqw;font-weight:700;white-space:nowrap}.profile-details .pd-provider-0{top:81.7%;color:white}.profile-details .pd-provider-1{top:86.1%}.profile-details .pd-provider-2{top:90.6%;color:white}.pd-notice{position:absolute;left:15%;bottom:1%;width:70%;margin:0;text-align:center;font:600 2.3cqw Arial;background:#fff8df;border-radius:12px}.pd-notice:empty{display:none}.pd-dialog{width:min(90vw,420px);border:3px solid #dda329;border-radius:22px;background:#fff6e3;color:#51240f;font:16px Arial;padding:24px}.pd-dialog::backdrop{background:#211006aa;backdrop-filter:blur(3px)}.pd-dialog h2{font:700 23px Arial;margin:0 0 18px}.pd-dialog input{position:static;box-sizing:border-box;width:100%;height:44px;border:1px solid #d39e43;border-radius:10px;background:#fffdf6;padding:8px 12px;font:18px Arial}.pd-dialog button{border:2px solid #d49a24;border-radius:12px;background:linear-gradient(#fffdf0,#f5dfb2);color:#51240f;font:700 16px Arial;padding:10px 18px;margin:8px 5px 0 0}.pd-avatar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:55svh;overflow:auto}.pd-avatar-grid button{padding:0;aspect-ratio:1;border-radius:50%;overflow:hidden}.pd-avatar-grid svg{width:100%;height:100%}.pd-avatar-grid [aria-pressed=true]{outline:3px solid #00aa65}

.profile-details .pd-hit{min-height:0;min-width:0}.profile-details .pd-avatar-edit,.profile-details .pd-name-edit{border:2px solid #d99512;border-radius:50%;background:linear-gradient(#fffdf0,#ffedc6);box-shadow:inset 0 0 0 2px #fff7ce,0 2px 3px #6c320649}.profile-details .pd-avatar-edit{z-index:2}

.profile-popup{position:fixed;inset:0;width:min(96vw,540px,calc(94svh * 2 / 3));max-width:none;max-height:96svh;padding:0;margin:auto;border:0;background:transparent;overflow:visible;box-shadow:none;color:#51240f;animation:profile-popup-in .2s ease-out}.profile-popup::backdrop{background:#2713048c;backdrop-filter:blur(3px)}.profile-popup .profile-details{width:100%;min-height:0}.profile-popup .pd-art{-webkit-mask:url("assets/profile-panel-mask.svg") center/100% 100% no-repeat;mask:url("assets/profile-panel-mask.svg") center/100% 100% no-repeat}.profile-popup .pd-avatar{left:35%;top:13.1%;width:30%;background:transparent;border:0;box-shadow:none;clip-path:circle(49%)}.profile-popup .pd-avatar svg{transform:scale(1.12);transform-origin:center}.profile-popup .pd-avatar-edit{left:59%;top:27%;width:7%;height:4.67%}.profile-popup .pd-title{left:24%;width:52%;top:5%;height:6.8%;font-family:Georgia,'Times New Roman',serif;font-size:7cqw;letter-spacing:.08cqw;font-weight:900;color:#ffe9a0;background:linear-gradient(#fffbd2 15%,#ffe790 45%,#ffb92e 85%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.08cqw #ffe8a3;filter:drop-shadow(0 .3cqw 0 #804004) drop-shadow(0 .12cqw .1cqw #542000)}@keyframes profile-popup-in{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.profile-popup{animation:none}}

.profile-popup .pd-title{left:23%;width:54%;top:4.8%;height:7%;display:flex;align-items:center;justify-content:center;gap:.1cqw;font-family:'Showcard Gothic','Arial Black',Impact,sans-serif;font-size:7.4cqw;font-weight:900;letter-spacing:0;background:none;-webkit-text-fill-color:initial;-webkit-text-stroke:0;filter:none;text-shadow:none;overflow:visible}.pd-title span{display:inline-block;white-space:pre;transform:rotate(var(--tilt));background:linear-gradient(#fffdda 5%,#fff0a8 36%,#ffdc69 60%,#ffc337 90%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.12cqw #ffe5a0;filter:drop-shadow(.13cqw .18cqw 0 #b56b05) drop-shadow(.18cqw .35cqw 0 #693107) drop-shadow(0 .45cqw .15cqw #271600)}.profile-popup .pd-stat{top:63.35%;height:4.2%;gap:.35cqw}

.profile-popup .pd-title{font-size:8.3cqw}.pd-title span:nth-child(3){width:1.4cqw;flex-shrink:0}.profile-popup .pd-stat{top:63.25%;height:4.3%;gap:.35cqw}.profile-popup .pd-stat strong{font-size:3.6cqw;line-height:1}.profile-popup .pd-stat span{font-size:2.45cqw;line-height:1.1}

.profile-popup .pd-title{left:22%;width:56%;font-family:'Cooper Black','Bookman Old Style',Georgia,serif;font-size:7.9cqw;gap:0;font-weight:900}.pd-title span{transform:none;background:linear-gradient(#fffbd3 0%,#fff0a0 40%,#ffdc66 75%,#ffc33c 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-stroke:.06cqw #fff1b1;filter:drop-shadow(0 .18cqw 0 #c07c0c) drop-shadow(0 .4cqw 0 #733207) drop-shadow(0 .5cqw .15cqw #401900)}.pd-title span:nth-child(3){width:1.5cqw}

.pd-avatar-grid button{position:relative;display:grid;place-items:center;width:100%;min-width:0;min-height:0;margin:0;box-sizing:border-box;isolation:isolate}.pd-avatar-grid svg{display:block;transform-origin:center}.pd-avatar-grid button[data-choice^="avatar:"] svg{transform:scale(1.14)}

.profile-popup{width:min(96vw,540px,calc((var(--safe-height,100svh) - 68px) * 2 / 3));padding-bottom:44px}
.pd-logout{position:absolute;top:calc(100% + 4px);left:50%;translate:-50% 0;width:max-content;min-height:32px;margin:0;padding:4px 14px;border:1px solid #cba56a;border-radius:10px;background:#fff5da;color:#663713;font-size:clamp(11px,3vw,14px);font-weight:700}
.profile-details .pd-provider:disabled{opacity:1;filter:none;cursor:default}
.profile-details .pd-hit:focus-visible{outline:2px solid #a66a11;outline-offset:-2px}
