#dialog:has(.pf-shell){width:min(1180px,94vw);padding:0;border:2px solid #775492;border-radius:22px;background:#241c32;color:#faf4ff;box-shadow:0 24px 90px #080510b3}
#dialog:has(.pf-shell)::backdrop{background:#090711ad;backdrop-filter:blur(6px)}
#dialog:has(.pf-shell) .close{z-index:3;right:14px;top:3px;font:38px/1.2 sans-serif}
.pf-shell{position:relative;isolation:isolate;display:grid;grid-template-columns:19% 46% 35%;align-content:center;min-height:clamp(450px,46vw,628px);padding:40px 2% 34px 1.5%;background:radial-gradient(ellipse at 80% 45%,#211a2b,transparent 62%),linear-gradient(105deg,#332441,#211b2c 55%,#342543)}
.pf-shell::before,.pf-shell::after,.pf-shell aside::before{content:"";position:absolute;z-index:-1;pointer-events:none;background-size:100% 100%;mask-image:linear-gradient(110deg,black 30%,transparent 97%)}
.pf-shell::before{inset:0 auto auto 0;width:19%;height:15%;background-image:url('/assets/profile-spring.webp')}
.pf-shell::after{inset:auto auto 0 0;width:18%;height:29%;background-image:url('/assets/profile-petals.webp')}
.pf-shell aside::before{inset:0 5% auto auto;width:23%;height:9%;background-image:url('/assets/profile-bough.webp');mask-image:radial-gradient(ellipse at top,#000 40%,transparent 76%)}
.pf-shell aside{border-right:1px solid #77538c69;padding:36px 6px 10px 0}
.pf-shell button:not(.close){margin:0;font-weight:600}
.pf-shell aside button{width:100%;text-align:left;font-size:clamp(15px,1.65vw,23px);padding:14px 10px;background:none;border-color:transparent;color:#ddc6ef}
.pf-shell button[aria-pressed=true],.pf-shell button.pf-primary{background:linear-gradient(#aa69db,#7642af);border-color:#cf96ec;color:white}
.pf-shell button:disabled{cursor:default;opacity:.6}
.pf-auth,.pf-edit{padding:clamp(14px,2.7vw,40px)}
.pf-auth{border-right:1px solid #72538669}
.pf-tabs,.pf-social,.pf-remember,.pf-head,.pf-stats,.pf-awards{display:flex;align-items:center}
.pf-tabs{border:1px solid #634976;border-radius:15px;overflow:hidden;margin-bottom:28px}
.pf-tabs button,.pf-shell .pf-primary{flex:1;padding:12px;font-size:clamp(17px,1.55vw,22px)}
.pf-tabs button{border:0;background:transparent}
.pf-auth fieldset{margin:0;padding:0;border:0;min-width:0}
.pf-feedback{display:block;margin:8px 0;color:#f3c5ed;overflow-wrap:anywhere}
.pf-feedback:empty{display:none}
.pf-auth .pf-social{margin-top:14px}
.pf-name form{display:flex;align-items:center;gap:8px}
.pf-name input{min-width:0}
.pf-shell input:not([type=checkbox]),.pf-shell select{width:100%;border:1px solid #735488;border-radius:10px;background:#30253bcc;padding:12px 16px;color:#fff;margin:6px 0 10px}
.pf-shell input::placeholder{color:#bcadc8}.pf-shell input[type=checkbox]{width:auto;accent-color:#a563d9}
.pf-remember{justify-content:space-between;font-size:14px}.pf-remember button{border:0;background:none;padding:0}
.pf-shell .pf-primary{width:100%}.pf-auth small{display:block;text-align:center;color:#bea8cf;margin:16px 0}
.pf-social{justify-content:center;gap:8px}.pf-social button{border-radius:24px}
.pf-edit{display:grid;align-content:center;gap:16px}
.pf-portrait{position:relative;width:clamp(110px,13vw,182px);aspect-ratio:1;margin:auto;flex:none}
.pf-portrait>img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:3px solid #efbd99;background:#402849;box-shadow:0 0 18px #ce8cd157}
.pf-portrait button.pf-camera{position:absolute;right:-2px;bottom:0;border-radius:50%;padding:8px;background:#33213f}
.pf-picker{position:absolute;z-index:2;top:100%;left:50%;transform:translateX(-50%);width:180px;padding:5px;border-radius:9px;background:#33253e}
.pf-picker button{padding:2px}.pf-picker img{width:28px;display:block}
.pf-details{grid-column:span 2;padding:8px 1% 0 4%}.pf-head{gap:4%;padding-bottom:10px}.pf-identity{flex:1;min-width:0;overflow-wrap:anywhere}.pf-identity strong{font-size:clamp(18px,2vw,32px)}.pf-identity button{background:transparent;border:0;padding:4px;color:#ddb2fa}
.pf-rank{display:grid;justify-items:center;width:32%;border-left:1px solid #594168;padding-left:4%}.pf-rank img{width:45%}.pf-rank span{align-self:start;color:#d7bfeb}.pf-rank progress{width:100%;accent-color:#bc83ed}
.pf-details h3{margin:17px 0 6px;font-size:19px}.pf-stats,.pf-awards{padding:16px 0;border-radius:12px;background:#251e31;border:1px solid #5a426d;color:#d8bdeb}
.pf-stats div,.pf-awards div{flex:1;text-align:center;font-size:clamp(12px,1.15vw,16px)}.pf-stats div+div{border-left:1px solid #574065}.pf-stats b{display:block;font-size:23px;color:white}.pf-awards img{display:block;width:clamp(32px,5vw,67px);margin:auto;filter:grayscale(.75);opacity:.72}
@media(max-width:720px){.pf-shell{grid-template-columns:1fr;padding:44px 16px 18px;min-height:0}.pf-shell aside{display:flex;padding:0;border:0}.pf-shell aside button{text-align:center;width:50%}.pf-auth,.pf-edit{padding:14px 0;border:0}.pf-edit{grid-template-columns:90px 1fr;align-items:center;border-top:1px solid #624571}.pf-edit .pf-portrait{width:80px}.pf-tabs{margin-bottom:10px}.pf-details{grid-column:1;padding:16px 0}.pf-head{flex-wrap:wrap}.pf-head .pf-portrait{width:85px}.pf-rank{width:25%}.pf-stats,.pf-awards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pf-shell aside::before{width:35%}}
#dialog:has(.pf-shell){max-height:calc(100dvh - 12px);overflow:auto}
#dialog:has(.pf-shell) .dialog-language{display:none}
html:has(#dialog[open] .pf-shell){overflow:hidden}
.pf-shell{min-height:min(600px,85dvh)}
.pf-shell aside{display:flex;flex-direction:column;gap:12px}
.pf-shell aside b{display:block;padding:14px 10px;border:1px solid #c393de;border-radius:10px;background:linear-gradient(#965cca,#64388e);font-size:clamp(15px,1.6vw,22px)}
.pf-shell aside [data-logout]{margin-top:auto;border:1px solid #79608c;text-align:center}
.pf-recent{border:1px solid #5a426d;border-radius:12px;padding:12px;text-align:center;color:#b5a3c3;background:#251e31}
.pf-awards div{display:grid;grid-template-columns:auto 1fr;align-items:center;padding:0 8px;column-gap:7px}
.pf-awards div+div{border-left:1px solid #574065}
.pf-awards img{grid-row:span 2;width:clamp(32px,4vw,54px)}
.pf-awards progress{width:100%;height:7px;accent-color:#bc83ed}
@media(max-width:720px){.pf-shell aside{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.pf-shell aside b,.pf-shell aside button{padding:6px 10px;width:auto;margin:0}.pf-awards div{display:flex;flex-direction:column}.pf-rank{font-size:12px}.pf-identity p{font-size:12px}}
@media(max-height:740px){.pf-shell{min-height:0;padding-top:34px;padding-bottom:16px}.pf-auth,.pf-edit{padding-block:10px}.pf-shell .pf-tabs{margin-bottom:10px}.pf-shell .pf-portrait{width:min(13vw,125px)}.pf-details h3{margin:8px 0 4px}.pf-stats,.pf-awards{padding:8px 0}.pf-identity p{margin:4px 0}}
@media(max-height:500px) and (min-width:600px){.pf-shell{grid-template-columns:18% 47% 35%;padding:25px 12px 8px;font-size:13px}.pf-shell aside{display:flex;flex-direction:column}.pf-shell .pf-details{grid-column:span 2;padding:0 2%}.pf-shell .pf-portrait{width:68px}.pf-shell .pf-edit{display:grid;grid-template-columns:1fr}.pf-shell input:not([type=checkbox]),.pf-shell select,.pf-shell button,.pf-shell .pf-primary{padding:4px 8px}.pf-auth small,.pf-shell label{margin:4px 0}.pf-shell .pf-stats,.pf-shell .pf-awards{display:flex;padding:3px}.pf-details h3{font-size:14px;margin:2px}.pf-stats b{font-size:16px}.pf-recent{padding:4px}.pf-rank img{width:40px}}
@media(max-width:720px) and (max-height:740px){.pf-shell{zoom:.88}.pf-edit .pf-picker{top:auto;bottom:100%;left:0;transform:none}}
@media(max-width:420px) and (max-height:600px){.pf-shell{zoom:.76}}
@media(max-width:720px){.pf-shell aside{padding-right:46px}}
.pf-nick-field{width:100%}
.pf-nick-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pf-nick-head label{margin:0}
.pf-shell button.pf-roll{padding:3px 9px;border-radius:8px;border:1px solid #7d5b96;background:#362749;font-size:14px;line-height:1.25}
.pf-shell button.pf-roll:hover{border-color:#d49cf0;background:#483363}
.pf-recent-list{display:flex;align-items:center;justify-content:flex-start;gap:8px;overflow-x:auto;padding:2px 0;-webkit-overflow-scrolling:touch}
.pf-recent-chip{flex:none;min-width:56px;padding:6px 10px;border-radius:10px;border:1px solid #6b5280;background:#2f2440;display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1.15}
.pf-recent-chip strong{font-size:15px;font-weight:800;color:#fff}
.pf-recent-chip span{font-size:11.5px;font-weight:700;color:#cfc2de}
.pf-recent-chip .gain{color:#80e9b6}
.pf-recent-chip .loss{color:#ff9697}
.pf-recent-chip.p-1{border-color:#f0c46c;background:linear-gradient(155deg,#5a3e38,#352538);box-shadow:0 0 10px #f0b84c33}
.pf-recent-chip.p-1 strong{color:#ffe08e}
.pf-recent-chip.p-2{border-color:#6cb8e6;background:linear-gradient(155deg,#283c54,#242138)}
.pf-recent-chip.p-2 strong{color:#9ad9ff}
.pf-recent-chip.p-3{border-color:#9e78c4;background:linear-gradient(155deg,#3b2b50,#261f38)}
.pf-recent-chip.p-4{border-color:#b86878;background:linear-gradient(155deg,#4b2736,#281e30)}
.pf-award-copy{display:flex;align-items:baseline;justify-content:space-between;gap:6px;width:100%}
.pf-award-copy small{font-size:11.5px;color:#d6c0ec;white-space:nowrap}
.pf-awards .unlocked img{filter:drop-shadow(0 0 8px #ffd47888);opacity:1}
.pf-awards .unlocked .pf-award-copy small{color:#ffe08e;font-weight:700}
.pf-shell aside .pf-admin-btn{border:1px solid #9e75c9;border-radius:10px;background:linear-gradient(145deg,#3e2b5e,#271c3e);color:#f3e8ff;padding:12px 10px;font-size:clamp(14px,1.45vw,19px);transition:border-color .15s,background .15s}
.pf-shell aside .pf-admin-btn:hover{border-color:#e0b4ff;background:linear-gradient(145deg,#553882,#362554);color:#fff}
