.profile-button{display:inline-flex;align-items:center;gap:9px;min-width:44px;min-height:44px;max-width:136px;padding:3px;border-radius:9px}.profile-button:hover{background:#ffffff0c}.profile-label{font-size:14px;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-face{--face:#cbf588;display:block;width:38px;height:38px;background:var(--face);border-radius:10px;position:relative;flex-shrink:0;color:#13191b}.profile-face:before{content:"";position:absolute;left:28%;top:35%;width:9%;height:12%;border-radius:50%;background:currentColor;box-shadow:1.05em 0 currentColor}.profile-face:after{content:"";position:absolute;left:30%;top:52%;width:42%;height:24%;border-bottom:3px solid currentColor;border-radius:0 0 50% 50%}.avatar-blue{--face:#8bc6f4}.avatar-coral{--face:#f69d8e}.avatar-violet{--face:#bcaff3}.avatar-gold{--face:#edc46a}.avatar-mint{--face:#88d8bd}.profile-open{overflow:hidden}.profile-dialog{border:0;background:#0c0e10;color:#f5f6f1;width:100%;max-width:none;height:100%;max-height:none;inset:0;margin:0;padding:clamp(24px,5vw,64px);overflow:auto}.profile-dialog::backdrop{background:#0c0e10}.profile-shell{position:relative;max-width:580px;margin:auto;padding:clamp(8px,5vh,52px) 0 30px}.profile-logo{border-radius:50%;margin-bottom:40px}.profile-close{position:absolute;top:24px;right:0;width:44px;height:44px;font-size:30px;line-height:1;border-radius:50%;background:#ffffff0c}.profile-dialog h1{font-size:clamp(32px,5.5vw,54px);line-height:1.15;letter-spacing:-.035em;margin:0 0 16px;overflow-wrap:anywhere}.profile-dialog h1 span{color:var(--lime)}.profile-intro{color:#c3cac1;font-size:19px;line-height:1.6;margin-bottom:32px}.profile-dialog fieldset{border:0;margin:0 0 28px;padding:0}.profile-dialog legend{font-size:16px;margin-bottom:16px}.profile-avatars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.avatar-choice{position:relative;cursor:pointer}.avatar-choice input{position:absolute;opacity:0;width:1px;height:1px}.avatar-choice .profile-face{width:100%;height:auto;aspect-ratio:1;border-radius:14px;font-size:34px;outline:2px solid transparent;outline-offset:4px;transition:transform .18s ease-out,outline-color .18s}.avatar-choice input:checked+.profile-face{outline-color:#f5f6f1;transform:translateY(-3px)}.avatar-choice input:focus-visible+.profile-face{outline:3px solid var(--lime)}.profile-name-label{display:block;font-size:16px;margin:0 0 10px}.profile-dialog input[type="text"]{background:#1b201e;color:#f5f6f1;border:1px solid #65705f;border-radius:9px;padding:15px 16px;font-size:18px;width:100%;min-height:56px}.profile-dialog input::placeholder{color:#afb7ab}.profile-error{color:#ffb7a9;font-size:15px;min-height:24px;margin:8px 0 14px}.profile-primary{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;min-height:56px;border-radius:9px;padding:14px 20px;font-size:17px;font-weight:800;background:var(--lime);color:#17220d}.profile-primary:hover{background:#dcffb2}.profile-footnote{font-size:14px;color:#aeb9a7;line-height:1.7;margin-top:20px}.welcome-avatar{width:100px;height:100px;font-size:42px;margin:0 0 32px;border-radius:22px}.profile-welcome-copy{color:#c3cac1;font-size:18px;line-height:1.8;margin:0 0 32px;max-width:48ch}.profile-storage-note{padding:16px;margin:20px;color:#ffe1ba;border:1px solid #a7955b;border-radius:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:1100px){.profile-label{display:none}.profile-button{max-width:44px}.header-tools{gap:10px}}@media(max-width:600px){.profile-dialog{padding:24px}.profile-shell{padding-top:8px}.profile-logo{width:56px;height:56px;margin-bottom:32px}.profile-avatars{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:300px}.avatar-choice .profile-face{font-size:36px}.profile-intro{font-size:17px;margin-bottom:24px}.profile-button .profile-face{width:32px;height:32px}.profile-button{min-width:34px;width:34px;min-height:38px}.header-tools{gap:6px}.profile-welcome-copy{font-size:17px}.welcome-avatar{width:88px;height:88px}.profile-dialog h1{font-size:36px}}@media(prefers-reduced-motion:reduce){.avatar-choice .profile-face{transition:none}}.has-avatar{overflow:hidden;background:#222a25}.has-avatar:after,.has-avatar:before{display:none}.has-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar-choice .has-avatar{overflow:visible}.avatar-choice .has-avatar img{display:block;aspect-ratio:1}.avatar-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.avatar-categories button{font-size:14px;line-height:1.4;min-height:44px;padding:10px 13px;border:1px solid #65705f;border-radius:8px;color:#d4dccf;background:transparent}.avatar-categories button[aria-pressed="true"]{background:#cbf588;color:#17220d;border-color:#cbf588}.avatar-categories{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}.avatar-categories button{min-height:44px;padding:9px 12px}.profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:520px}.avatar-choice{min-width:0}.avatar-choice .profile-face{width:100%;height:auto;aspect-ratio:1}.profile-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.profile-shell{min-width:0}@media(max-width:600px){.profile-avatars{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.avatar-categories{gap:6px}.avatar-categories button{font-size:13px;padding:8px 10px}.profile-dialog{padding:22px}.profile-name-label{margin-top:24px}}.profile-dialog{position:fixed;inset:0;margin:auto;width:min(720px,calc(100vw - 32px));height:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:28px 36px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #ffffff20;border-radius:16px}.profile-dialog::backdrop{background:#050907d9}.profile-shell{max-width:580px;padding:0;margin:0 auto;min-width:0}.profile-logo{width:56px;height:56px;margin-bottom:22px}.profile-close{top:0;right:0}.profile-dialog h1{font-size:clamp(28px,3.5vw,40px);padding-right:38px}.profile-intro{font-size:17px;margin-bottom:22px}.profile-avatars{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;max-width:none}.profile-dialog fieldset{margin-bottom:22px}.profile-primary{position:sticky;bottom:0;z-index:2;box-shadow:0 8px 20px #0c0e1080}@media(max-width:600px){.profile-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px;border-radius:12px}.profile-shell{padding:0}.profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-dialog h1{font-size:30px}.profile-logo{margin-bottom:20px}.profile-name-label{margin-top:0}.profile-primary{min-height:50px}}.avatar-choice .has-avatar img{object-position:center 25%}.avatar-name{display:block;margin-top:8px;font-size:12px;line-height:1.4;text-align:center;color:#d4dccf;overflow-wrap:anywhere}.profile-avatars{row-gap:18px}.avatar-choice:has(input:checked) .avatar-name{color:var(--lime)}.profile-primary{position:static;box-shadow:none}.profile-step{font-size:14px;color:#d4dccf;margin:0 0 18px}.profile-actions{display:flex;gap:12px;align-items:stretch}.profile-actions .profile-primary{flex:1;min-width:0}.profile-actions #profileBack{flex-shrink:0;min-height:50px;padding:12px 18px}#profileAvatarStep .profile-avatars{max-height:min(40dvh,340px);overflow:auto;overscroll-behavior:contain;padding:6px;scrollbar-width:thin;scrollbar-color:#65705f transparent}.profile-dialog{scroll-padding-bottom:24px}@media(max-width:600px){.profile-dialog{padding:20px 16px}.profile-logo{width:44px;height:44px;margin-bottom:16px}.profile-dialog h1{font-size:28px}.profile-intro{font-size:16px;margin-bottom:16px}.profile-avatars{gap:12px 10px}.avatar-name{font-size:11px}.profile-actions .profile-primary{font-size:16px;padding:12px}.profile-footnote{margin-bottom:0}}@media(max-height:600px){.profile-logo{width:36px;height:36px;margin-bottom:12px}.profile-intro{display:none}#profileAvatarStep .profile-avatars{max-height:32dvh}.profile-dialog h1{font-size:25px}.profile-step{margin-bottom:12px}}.profile-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 32px));height:fit-content;min-height:0;max-height:calc(100dvh - 32px);inset:0;margin:auto;padding:28px;border:1px solid #3b4738;border-radius:16px;overflow:auto;scroll-padding:20px}.profile-dialog::backdrop{background:#030906bd;backdrop-filter:blur(5px)}.profile-shell{max-width:none;margin:0;padding:0;min-height:0}.profile-logo{width:46px;height:46px;margin-bottom:20px}.profile-close{top:0;right:0;width:40px;height:40px;font-size:25px}.profile-dialog h1{font-size:30px;line-height:1.2;margin:0 0 10px;letter-spacing:-.025em;padding-right:24px}.profile-intro{font-size:15px;line-height:1.6;margin:0 0 20px}.profile-step{font-size:13px;margin-bottom:18px;color:#c5d0be}.profile-name-label{margin:0 0 8px;font-size:15px}.profile-dialog input[type="text"]{font-size:16px;min-height:48px;padding:12px 14px;box-sizing:border-box}.profile-error:empty{display:none}.profile-actions{margin-top:20px}.profile-primary{min-height:48px;padding:12px 16px;font-size:16px}.profile-footnote{font-size:12px;margin:16px 0 0;line-height:1.6}.profile-dialog fieldset{margin-bottom:16px}.profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr))}#profileAvatarStep .profile-avatars{max-height:min(36dvh,300px)}.profile-welcome-copy{font-size:15px;line-height:1.6}.profile-dialog .welcome-avatar{width:72px;height:72px}.profile-dialog [hidden]{display:none!important}@media(max-width:520px){.profile-dialog{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.profile-dialog h1{font-size:25px}.profile-logo{width:40px;height:40px;margin-bottom:16px}.profile-intro{font-size:14px;margin-bottom:16px}.profile-avatars{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-actions{gap:8px}.profile-actions #profileBack{padding:10px 14px;min-height:48px}}@media(max-height:540px){.profile-dialog{padding:16px 20px}.profile-logo{width:32px;height:32px;margin-bottom:12px}.profile-step{margin-bottom:12px}.profile-actions{margin-top:12px}}.avatar-choice .profile-face{box-sizing:border-box;border:2px solid transparent;outline:none;outline-offset:0;transform:none;overflow:hidden;background:#171c1c}.avatar-choice input:checked + .profile-face{border-color:#cbf588;outline:none;transform:none}.avatar-choice input:focus-visible + .profile-face{outline:2px solid #cbf588;outline-offset:2px}.avatar-choice:has(input:checked) .avatar-name{color:#cbf588}#profileAvatarStep .profile-avatars{padding:8px;gap:16px 12px;grid-template-columns:repeat(5,minmax(0,1fr));max-height:min(43dvh,360px)}.profile-dialog .profile-logo{width:36px;height:36px;margin-bottom:16px}.profile-dialog h1{font-size:clamp(24px,3vw,30px)}.avatar-categories button{border-color:#424b48;border-radius:8px}@media(max-width:520px){#profileAvatarStep .profile-avatars{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}}.profile-dialog{width:min(760px,calc(100vw - 32px))}.avatar-categories{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.avatar-categories button{min-height:44px;flex:1;padding:10px 16px;font-size:14px}#profileAvatarStep .profile-avatars{max-width:none;padding:4px;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px 12px;max-height:min(48dvh,440px);scrollbar-width:none}.profile-avatars::-webkit-scrollbar{display:none}.avatar-collection{grid-column:1/-1;font-size:15px;font-weight:750;margin:12px 0 0;color:#f4f5f0;line-height:1.4}.avatar-choice .profile-face{border-radius:10px;background:#242b29;overflow:hidden}.avatar-choice .has-avatar img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}.avatar-choice[data-group="Anime"] .has-avatar img{object-position:center 18%}.avatar-name{font-size:12px;line-height:1.35;min-height:32px;color:#d2d9d4}.avatar-loading{animation:avatarPulse 1.2s ease-in-out infinite alternate}@keyframes avatarPulse{from{background-color:#242b29}to{background-color:#38433b}}@media(max-width:520px){.profile-dialog{width:calc(100vw - 20px);padding:20px}#profileAvatarStep .profile-avatars{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;max-height:43dvh}.avatar-categories button{padding:10px 8px}.avatar-collection{margin-top:10px}}@media(prefers-reduced-motion:reduce){.avatar-loading{animation:none}}#profileForm .profile-actions{position:sticky;bottom:-1px;z-index:3;padding:12px 0;background:#0d1011}.avatar-choice:focus-within .profile-face{outline:3px solid #fff;outline-offset:3px}.profile-dialog{border-color:#3c4048;background:#101115;color:#f5f5f6}.profile-dialog::backdrop{background:#050608c9}.profile-dialog .avatar-name,.profile-dialog .profile-footnote,.profile-dialog .profile-intro,.profile-dialog .profile-step{color:#c0c3ca}.profile-dialog input[type="text"]{background:#22242a;border-color:#555b66;color:#f8f8fa}.profile-dialog input[type="text"]::placeholder{color:#a9adb7}.profile-dialog .avatar-categories button[aria-pressed="true"],.profile-dialog .profile-primary{background:#f1f1f3;color:#15161a;border-color:#f1f1f3}.profile-dialog .profile-primary:hover{background:#dfe3eb}.profile-dialog #profileBack,.profile-dialog .avatar-categories button:not([aria-pressed="true"]){background:#1c1e23;color:#f3f3f5;border-color:#484c55}.profile-dialog .avatar-choice input:checked+.profile-face,.profile-dialog .avatar-choice:focus-within .profile-face{outline-color:#d4dff2}.profile-dialog .avatar-choice input:checked~.avatar-name{color:#f5f6fa}.profile-dialog .profile-actions{background:#101115}