/* Profile pictures (public/avatars.js): a picture inside an avatar box and its border, the room cards' avatars, the
   picture editor, and the administrators' review panels. */
.profile-avatar>.avatar-picture{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;user-select:none;-webkit-user-drag:none}
.profile-avatar:has(>.avatar-picture){overflow:visible;padding:0}
/* The room cards show each player as on their profile, a little smaller, border and all. */
.player .profile-avatar.room-avatar{width:56px;height:56px;margin:0 auto 12px;border-radius:14px;font-size:24px}
.player .profile-avatar.room-avatar.frame-laurel{margin-inline:auto}

.avatar-editor{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid var(--outline);border-radius:16px;background:var(--surface);color:var(--prose);box-shadow:0 24px 70px #00000073}
.avatar-editor::backdrop{background:#0a0c10b3}
.avatar-editor-body{display:grid;gap:14px;padding:22px}
.avatar-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.avatar-editor-head h2{margin:0;font-size:19px}
.avatar-editor .help{margin:0}
.avatar-editor-work{display:grid;grid-template-columns:256px minmax(0,1fr);gap:20px;align-items:start}
.avatar-editor-stage{position:relative;width:256px;height:256px;overflow:hidden;border-radius:12px;background:repeating-conic-gradient(var(--surface-raised) 0 25%,var(--surface) 0 50%) 0 0/24px 24px;touch-action:none;cursor:default}
.avatar-editor-stage.has-picture{cursor:grab}
.avatar-editor-stage.has-picture:active{cursor:grabbing}
.avatar-editor-stage:focus-visible{outline:2px solid var(--accent,#60a5fa);outline-offset:3px}
.avatar-editor-stage canvas{display:block;width:100%;height:100%}
/* The corners a profile's rounded square leaves out are dimmed. */
.avatar-editor-mask{position:absolute;inset:0;border-radius:23.5%;box-shadow:0 0 0 64px #0a0c1099;outline:1px dashed #ffffff8c;outline-offset:-1px;pointer-events:none}
.avatar-editor-empty{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--muted);font-size:13px}
.avatar-editor-side{display:grid;gap:18px;justify-items:start}
.avatar-editor-preview{display:grid;gap:8px;justify-items:center;padding:18px 22px;border:1px solid var(--outline);border-radius:12px}
.avatar-editor-preview small{color:var(--muted)}
.avatar-editor-preview canvas{display:block;width:100%;height:100%;border-radius:inherit}
.avatar-editor-zoom{display:grid;gap:6px;width:100%;font-size:13px}
.avatar-editor-zoom input{width:100%;min-height:0;padding:0}
.avatar-editor-status{min-height:1.4em;margin:0;font-size:13px}
.avatar-editor .actions{flex-wrap:wrap}
.avatar-editor-choose{position:relative;overflow:hidden}
.avatar-editor-choose input{position:absolute;inset:0;opacity:0;cursor:pointer}
.avatar-editor-choose.is-disabled{opacity:.5;pointer-events:none}
.avatar-editor-remove{color:var(--danger,#ef4444)}
.avatar-editor-rules{font-size:12px;color:var(--muted)}
@media(max-width:560px){.avatar-editor-work{grid-template-columns:1fr;justify-items:center}.avatar-editor-side{justify-items:center;width:100%}}

/* Administrators: the queue of pictures waiting, and a profile's review panel. */
.avatar-queue-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin:14px 0 22px;padding:0;list-style:none}
.avatar-queue-item{display:grid;gap:10px;padding:16px;border:1px solid var(--outline);border-radius:12px;background:var(--surface-raised)}
.avatar-queue-pictures{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.avatar-queue-pictures figure{display:grid;gap:6px;justify-items:center;margin:0}
.avatar-queue-pictures figcaption{font-size:12px;color:var(--muted)}
.profile-avatar.avatar-queue-new{width:128px;height:128px;border-radius:30px;font-size:52px}
.profile-avatar.avatar-queue-current{width:56px;height:56px;border-radius:14px;font-size:24px}
.avatar-queue-meta{display:grid;gap:2px}
.avatar-queue-meta small,.avatar-blocked-item small{color:var(--muted)}
.avatar-queue-block{display:flex;align-items:center;gap:8px;font-size:13px}
.avatar-queue-block input{width:auto;min-height:0}
.avatar-blocked-list{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.avatar-blocked-item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;border:1px solid var(--outline);border-radius:10px}
.avatar-blocked-item .button{margin-left:auto}
.profile-avatar-review{display:grid;gap:12px}
.profile-avatar-review>.section-heading,.avatar-review-panel>.section-heading{margin:0 0 4px}
.avatar-review-panel h3{margin:18px 0 6px;font-size:15px}
