/* One registration frame, two short steps; the profile never follows field height. */
.auth-shell--profile{transition:max-width .76s cubic-bezier(.22,.8,.24,1)}
.auth-register-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);gap:0;align-items:center;transition:gap .76s cubic-bezier(.22,.8,.24,1)}
.auth-shell--profile.has-profile{max-width:1040px}
.has-profile .auth-register-layout{gap:40px}
.auth-register-layout>.auth-card{min-width:0;grid-column:2;padding:24px 30px}
.auth-shell--profile .auth-brand{float:none;width:40px;height:44px;margin:0 auto 10px}
.auth-shell--profile .auth-heading{text-align:center;font-size:26px;margin:0 0 7px}
.auth-shell--profile .auth-subtitle{text-align:center;font-size:11px;line-height:1.6;margin-bottom:22px}
.auth-shell--profile .auth-form{clear:both;gap:13px}
.auth-shell--profile .auth-form.is-changing-phase{transform-origin:50% 45%;overflow:clip;will-change:transform,opacity,height;pointer-events:none}
.auth-shell--profile .auth-switch{margin-top:17px;padding-top:14px;font-size:11px}
.register-security{display:flex;flex-direction:column;gap:13px}
.register-actions{display:grid;grid-template-columns:minmax(96px,1fr) minmax(0,2fr);align-items:stretch;gap:12px}
.register-previous{--button-shadow:#111621;min-height:46px;padding:10px 18px;font-size:13px;font-weight:600;background:#232c3d;color:#d4deef;box-shadow:inset 0 2px #64718a66,inset 0 -3px var(--button-shadow)}
.register-next{margin-top:4px;width:100%;font-size:13px;min-height:46px}
.auth-shell--profile [data-stepped] .auth-password-rules{padding:9px 12px;margin-top:2px;min-height:84px;line-height:1.35}
.auth-shell--profile .auth-rules-heading{margin-bottom:5px}
.auth-shell--profile .auth-password-rules ul{display:flex;flex-wrap:wrap;gap:5px;font-size:10px}
.auth-shell--profile .auth-password-rules li{flex:1 1 29%;justify-content:center;gap:4px;padding:4px 6px;border:1px solid #2b384b;border-radius:3px;background:#0c121e;white-space:nowrap;transition:color .18s,border-color .18s,background .18s}
.auth-shell--profile .auth-password-rules li.is-met{background:#14251f;border-color:#2a4b3d}
.auth-shell--profile .auth-terms{padding:10px 12px}
.auth-shell--profile .auth-divider{margin-top:18px}
.profile-preview{min-width:0;opacity:0;visibility:hidden;transform:translateX(52px) scale(.94);transition:opacity .46s .14s,visibility .46s,transform .8s cubic-bezier(.22,.8,.24,1)}
.has-profile .profile-preview{opacity:1;visibility:visible;transform:none}
.profile-card{--profile-hue:215;--card-x:50%;--card-y:35%;--card-rx:0deg;--card-ry:0deg;width:min(520px,calc(100vw - 568px));position:relative;isolation:isolate;overflow:hidden;border:3px solid #03060d;border-radius:12px;background:hsl(var(--profile-hue) 22% 10%);box-shadow:0 7px 0 #03060b,0 24px 60px #0005;color:#dce6f5;transform:none;transition:transform .45s cubic-bezier(.2,.75,.2,1),box-shadow .4s,background .6s}
.profile-card::after{content:"";position:absolute;inset:0;z-index:4;border:2px solid hsl(var(--profile-hue) 18% 27%);border-radius:9px;pointer-events:none}
.profile-card-banner{height:108px;position:relative;overflow:hidden;background:hsl(var(--profile-hue) 22% 10%);border-bottom:0}
.profile-card-banner canvas{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated}
.profile-card-wordmark{position:absolute;z-index:1;left:24px;top:20px;color:#e8edff;font-size:17px;font-weight:850;letter-spacing:-.055em;text-shadow:0 2px #0003}
.profile-card-body{position:relative;padding:0 24px 20px}
.profile-card-identity{display:flex;align-items:center;gap:14px;margin-top:-23px;position:relative;z-index:2}
.profile-card-avatar{padding:0;width:76px;height:76px;flex:none;border:4px solid hsl(var(--profile-hue) 30% 5%);border-radius:8px;background:hsl(var(--profile-hue) 24% 16%);box-shadow:inset 0 0 0 1px #7386a152,0 3px 0 #0006;display:grid;place-items:center;overflow:hidden;cursor:pointer;transition:box-shadow .2s}
.profile-card-avatar:disabled{cursor:default}.profile-card-avatar:not(:disabled):hover{box-shadow:0 0 0 2px hsl(var(--profile-hue) 45% 65%)}
.profile-card-avatar img{display:block;width:44px;height:50px;object-fit:contain}
.profile-card-avatar img.is-skin{width:100%;height:100%;image-rendering:pixelated;object-fit:cover}
.profile-card-person{min-width:0;padding-top:27px;flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.profile-card-person h2{margin:0;font-size:25px;font-weight:760;line-height:1.15;letter-spacing:-.04em;color:#f2f6ff;overflow-wrap:anywhere;text-shadow:0 2px #0005}
.profile-card-tags{display:flex;flex-wrap:wrap;gap:5px;max-width:100%}
.member-home .profile-card-tags{flex-basis:100%}
.profile-tag{display:inline-flex;padding:3px 8px;border:2px solid #05080e;border-radius:4px;background:hsl(var(--profile-hue) 30% 21%);box-shadow:inset 0 1px #b3c9ed40,inset 0 -2px #0005;color:hsl(var(--profile-hue) 45% 82%);font-size:9px;line-height:15px;font-weight:700;white-space:nowrap}
.profile-tag--role{background:var(--role-bg);color:var(--role-fg)}
.profile-tag--beta{background:#48202d;color:#e6a8ba}
.profile-card-quote{margin:17px 0 16px;padding:0;font-size:11px;line-height:1.7;color:hsl(var(--profile-hue) 20% 70%);font-style:normal;min-height:19px}
.profile-card-status{margin:0 0 12px;font-size:10px;line-height:1.6;color:#c7a99c}
.profile-card-discord{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:17px;background:#181a30;border:1px solid #373a5c;border-radius:5px;box-shadow:inset 0 1px #a8adff0d}
.profile-discord-icon{display:grid;place-items:center;width:32px;height:32px;background:#25294c;border:1px solid #414775;border-radius:4px;color:#b5baff;flex:none}
.profile-discord-icon svg{width:19px;height:19px}
.profile-card-discord>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.profile-discord-label{font-size:9px;line-height:1.2;color:#9299c3}
.profile-card-discord strong{font-size:12px;line-height:1.4;font-weight:600;color:#d9ddff;overflow-wrap:anywhere}
.profile-discord-connected{display:grid;place-items:center;width:22px;height:22px;margin-left:auto;flex:none;border-radius:50%;background:#2b3051;color:#b3beff}
.profile-discord-connected svg{width:18px;height:18px}
.profile-card-details{display:grid;grid-template-columns:1.2fr 1fr;gap:14px 16px;margin:0;padding:0 0 17px;border-bottom:1px solid hsl(var(--profile-hue) 17% 25%)}
.profile-card-details>div{min-width:0}.profile-card-email{grid-column:1/-1}
.profile-card-details dt{color:hsl(var(--profile-hue) 17% 61%);font-size:10px;line-height:1.5;margin-bottom:5px}
.profile-card-details dd{margin:0;color:#d5dfef;font-size:12px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
.profile-card-email dd{font-size:14px;color:#e1e9f8;letter-spacing:-.015em}
.profile-view-link{display:inline-flex;align-items:center;gap:7px;border:0;padding:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.profile-view-link svg{width:13px;height:13px;flex:none;color:hsl(var(--profile-hue) 45% 70%)}
.profile-view-link:disabled{cursor:default;color:#8c98ae}.profile-view-link:disabled svg{display:none}.profile-view-link:not(:disabled):hover{color:#fff}
.profile-card-signature{display:flex;flex-direction:column;gap:6px;padding-top:15px}
.profile-card-signature>span{font-size:8px;font-weight:650;letter-spacing:.18em;color:hsl(var(--profile-hue) 17% 58%)}
.profile-card-signature code{font-size:9px;letter-spacing:.02em;line-height:1.6;color:hsl(var(--profile-hue) 17% 65%);overflow-wrap:anywhere}
.profile-card-sheen{pointer-events:none;position:absolute;inset:0;z-index:3;opacity:0;background:radial-gradient(ellipse at var(--card-x) var(--card-y),#dfedff16,transparent 60%),linear-gradient(120deg,transparent 20%,#cedbff0c 43%,transparent 68%);mix-blend-mode:screen;transition:opacity .4s}
/* Only composite the card during interaction; idle text stays at native resolution. */
.profile-card.is-tilting{transform:perspective(1100px) rotateX(var(--card-rx)) rotateY(var(--card-ry));box-shadow:0 7px 0 #03060b,0 28px 65px #0006;transition:transform .1s ease-out,box-shadow .4s}
.profile-card.is-tilting .profile-card-sheen{opacity:1}
.profile-preview :is(button,a):focus-visible,.register-previous:focus-visible{outline:2px solid #b4c9ff;outline-offset:4px}
/* Motion renders only while the dialog is playing and visible; closing releases WebGL. */
.profile-viewer{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;color:#e3ecfc;background:#101622;border:3px solid #03060b;border-radius:10px;box-shadow:inset 0 0 0 2px #374255,0 8px 0 #0009,0 30px 100px #0009}
.profile-viewer::backdrop{background:#040710d9;backdrop-filter:blur(5px)}
.profile-viewer[open]{animation:profile-viewer-in .3s cubic-bezier(.2,.75,.2,1)}
.profile-viewer-header{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 0}
.profile-viewer-header h2{font-size:20px;letter-spacing:-.03em;margin:0}
.profile-viewer-close{width:32px;height:32px;background:#222b3a;border:2px solid #05090f;border-radius:5px;color:#c4d2e9;font-size:22px;line-height:1;cursor:pointer}
.profile-viewer-stage{position:relative;height:min(410px,55dvh);margin:8px 20px;background:radial-gradient(ellipse at 50% 85%,#24324a75,transparent 55%);border-bottom:1px solid #2e394c}
.profile-viewer-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.profile-viewer-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;font-size:12px;color:#b2c3e1;background:#101622}
 .profile-viewer-footer{padding:8px 24px 22px;display:flex;justify-content:center}
.profile-viewer-dock{position:relative;display:flex;gap:4px;padding:5px;background:#0c111b;border:2px solid #03060b;border-radius:8px;box-shadow:inset 0 0 0 1px #2e394b,0 3px #03060b}
.profile-viewer-dock>button,.profile-viewer-view{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#8296b3;cursor:pointer;transition:color .15s,background .15s}
.profile-viewer-dock svg,.profile-viewer-view svg{width:17px;height:17px;pointer-events:none}
.profile-viewer-dock>button[aria-pressed=true]{color:#c6dbff;background:#253954;border-color:#395479}
.profile-viewer-dock>button:enabled:hover,.profile-viewer-view:hover{color:#e6efff;background:#253044}
.profile-viewer-dock button:disabled,.profile-viewer-view:disabled{opacity:.4;cursor:default}
.profile-viewer-header-actions{display:flex;align-items:center;gap:8px}
.profile-viewer-view{width:32px;height:32px}
.profile-viewer-dock button:focus-visible,.profile-viewer-view:focus-visible,.profile-viewer-stage canvas:focus-visible{outline:2px solid #a8c7ff;outline-offset:2px}
.profile-viewer-retry{margin:10px auto 0;display:block;color:#bfd5ff;background:#25334a;border:1px solid #536a8e;border-radius:4px;padding:8px 12px;cursor:pointer}
@keyframes profile-viewer-in{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
/* Fade inside the left column before the form recentres; reverse without delay on entry. */
@media(min-width:861px){
 .auth-shell--profile{transition-delay:.22s}
 .auth-register-layout{transition-delay:.22s}
 .auth-shell--profile.has-profile,.has-profile .auth-register-layout{transition-delay:0s}
 .profile-preview{transform:translateX(-18px) scale(.97);transition:opacity .2s ease-out,visibility 0s .2s,transform .2s ease-out}
 .has-profile .profile-preview{transform:none;transition:opacity .32s .24s,visibility 0s,transform .64s .12s cubic-bezier(.22,.8,.24,1)}
}
@media(min-width:861px){.auth-shell--profile.has-profile{padding-bottom:10px}.auth-shell--profile.has-profile .auth-register-layout>.auth-card{align-self:center}.auth-shell--profile [data-phase="identity"]{min-height:220px}.auth-shell--profile [data-phase="identity"] .register-next{margin-top:auto}}
@media(max-width:860px){
 .auth-shell--profile.has-profile{max-width:600px}
 .auth-register-layout,.has-profile .auth-register-layout{grid-template-columns:minmax(0,1fr);gap:0}
 .profile-preview{grid-row:1;max-height:0;overflow:hidden;transform:translateY(16px);transition:opacity .4s,transform .6s,max-height .7s,margin-bottom .7s}
 .has-profile .profile-preview{max-height:700px;margin-bottom:24px;overflow:visible}
 .auth-register-layout>.auth-card{grid-row:2;grid-column:1}
 .profile-card{width:100%}
 /* Keep identity visible next to the focused fields on compact displays. */
 .has-profile .profile-preview{position:sticky;top:12px;z-index:5;max-height:112px}
 .has-profile .profile-card{height:108px}
 .has-profile .profile-card-banner{position:absolute;inset:0;height:100%;opacity:.32}
 .has-profile .profile-card-wordmark{display:none}
 .has-profile .profile-card-body{padding:14px 16px}
 .has-profile .profile-card-identity{margin:0;gap:12px}
 .has-profile .profile-card-avatar{width:68px;height:68px}
 .has-profile .profile-card-person{padding:0;gap:6px}
 .has-profile .profile-card-person h2{font-size:23px;width:100%}
 .has-profile .profile-card :is(.profile-card-quote,.profile-card-status,.profile-card-discord,.profile-card-details,.profile-card-signature){display:none}
}
@media(max-width:420px){.auth-register-layout>.auth-card{padding:22px 18px}.auth-shell--profile .auth-subtitle{font-size:10px}}
@media(prefers-reduced-motion:reduce){.auth-shell--profile,.auth-register-layout,.profile-preview,.profile-card,.profile-card-sheen{transition:none!important;transform:none!important}.profile-card-sheen{display:none}.profile-viewer[open]{animation:none}}
.profile-card-expand{display:none}
@media(max-width:860px){
 .profile-card-expand{display:grid;place-items:center;position:absolute;right:13px;top:13px;z-index:5;width:30px;height:30px;padding:0;line-height:0;background:#0c101c99;border:1px solid #7787ac55;border-radius:4px;color:#d4e2fa;cursor:pointer}
 .profile-card-expand svg{display:block;width:18px;height:18px;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s}
 .profile-card-expand[aria-expanded=true] svg{transform:rotate(180deg)}
 .has-profile .profile-preview{max-height:147px}
 .has-profile .profile-card{height:143px}
 .has-profile .profile-card-person{padding-right:26px}
 .has-profile .profile-card .profile-card-discord{display:flex;position:relative;margin:8px 0 0;padding:0;border:0;background:none;box-shadow:none;gap:7px}
 .has-profile .profile-card .profile-card-discord>div{flex-direction:row;align-items:center;gap:8px}
 .has-profile .profile-card .profile-discord-icon{width:18px;height:18px;background:none;border:0}
 .has-profile .profile-card .profile-discord-icon svg{width:16px;height:16px}
 .has-profile .profile-card .profile-discord-connected{width:18px;height:18px}
 .has-profile .profile-preview.is-expanded{max-height:700px;position:relative;overflow:visible}
 .has-profile .is-expanded .profile-card{height:auto}
 .has-profile .is-expanded .profile-card-banner{position:relative;height:108px;opacity:1}
 .has-profile .is-expanded .profile-card-body{padding:0 18px 20px}
 .has-profile .is-expanded .profile-card-identity{margin-top:-23px}
 .has-profile .is-expanded .profile-card-person{padding-top:27px}
 .has-profile .is-expanded .profile-card-quote{display:block}
 .has-profile .is-expanded .profile-card-status:not([hidden]){display:block}
 .has-profile .is-expanded .profile-card-details{display:grid}
 .has-profile .is-expanded .profile-card-signature{display:flex}
 .has-profile .is-expanded .profile-card-discord{padding:9px 11px;margin:14px 0;background:#181a30;border:1px solid #373a5c}
}

.auth-shell--profile .auth-password-rules .auth-rule-mark{font-size:11px}
@media(max-width:600px){.auth-shell--profile .auth-field input:not([type=checkbox]):not([type=radio]),.auth-shell--profile .auth-field select,.auth-shell--profile .auth-field textarea{font-size:16px}}
@media(max-width:860px){
 .is-security-step .auth-switch{display:none}
 .is-security-step .auth-brand{width:28px;height:30px;margin-bottom:5px}
 .is-security-step .auth-subtitle{margin-bottom:16px}
 .is-security-step .auth-heading{font-size:22px;margin-bottom:5px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded){max-height:108px;margin-bottom:16px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded) .profile-card{height:104px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded) .profile-card-body{padding:10px 14px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded) .profile-card-avatar{width:46px;height:46px;border-width:3px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded) .profile-card-person h2{font-size:19px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded) .profile-card-person{gap:3px}
 .is-security-step .has-profile .profile-preview:not(.is-expanded) .profile-tag{padding-block:1px}
}
.register-actions:has(.register-previous[hidden]){grid-template-columns:1fr}

.profile-card-name-row{display:flex;align-items:center;gap:10px;min-width:0}
.profile-card-name-row h2{min-width:0}
.profile-java-badge{display:inline-grid;place-items:center;flex:none;width:25px;height:25px;color:#d8ecff;background:#244876;border:2px solid #080d17;border-radius:4px;box-shadow:inset 0 0 0 1px #4c74a4,0 2px 0 #080d17}
.profile-java-badge svg{width:18px;height:18px}

.profile-viewer-status[hidden]{display:none}
@media(max-width:400px){.profile-viewer-footer{padding:8px 14px 18px}.profile-viewer-stage{height:min(360px,52dvh)}}
@media(prefers-reduced-motion:reduce){.profile-viewer-dock button,.profile-viewer-view{transition:none}}

/* Center the close mark within the raised face, excluding its bottom inset. */
.profile-viewer .profile-viewer-close{box-sizing:border-box;position:relative;display:grid;place-items:center;padding:0;font-size:0;line-height:0;box-shadow:inset 0 1px #9aaac142,inset 0 -3px #131c29}
.profile-viewer-close::before,.profile-viewer-close::after{content:"";position:absolute;left:50%;top:calc(50% - 1px);width:16px;height:3px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.profile-viewer-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.profile-viewer .profile-viewer-close:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff15,inset 0 -1px #131c29}
.profile-viewer-close:active::before,.profile-viewer-close:active::after{top:50%}

.profile-card-signature{gap:15px}.profile-identifier-row{display:grid;gap:6px;min-width:0}.profile-identifier-row>span{font-size:8px;font-weight:650;letter-spacing:.18em;color:hsl(var(--profile-hue) 17% 58%)}.profile-identifier-row>code{font-size:9px;letter-spacing:.02em;line-height:1.6;overflow-wrap:anywhere}

.profile-tag--role{display:inline-flex;align-items:center;gap:5px}.profile-tag .profile-role-icon{width:12px;height:12px;flex-shrink:0;fill:none;stroke:currentColor;transform:translateY(-1px)}
