/* One square 40px portrait, 80px transparent decoration, 56px HUD layout slot. */
#stage .player-hud .portrait.lv-custom-avatar{width:56px;height:56px;background:transparent;outline:none;box-shadow:none;border-radius:0;margin-right:10px}
#stage .player-hud .portrait.lv-custom-avatar::after{display:none}
#stage .player-hud .portrait.lv-custom-avatar #portrait{position:absolute;left:8px;top:8px;width:40px;height:40px;background:#334a35}
#stage .player-hud .portrait.lv-custom-avatar #lvFacebookAvatar{inset:auto;left:8px;top:8px;width:40px;height:40px;object-fit:cover}
#stage .player-hud .portrait.lv-custom-avatar #lvAvatarFrameEffect{position:absolute;left:-12px;top:-12px;width:80px;height:80px;pointer-events:none;visibility:visible!important;z-index:2;image-rendering:pixelated}
#stage .lv-custom-avatar .level{left:50%;right:auto;bottom:-10px;transform:translateX(-50%);z-index:4}
#stage .lv-custom-avatar .lv-portrait-trigger{inset:-4px;width:64px;height:64px;z-index:3}
#lvChooseAvatarFrame{display:block;margin-top:14px;padding:10px 16px;min-height:44px;background:#5b7940;color:#fff3c7;border:2px solid #a58b50;border-radius:5px;font-weight:700}
#lvAvatarFramePicker{box-sizing:border-box;width:min(540px,94vw);max-height:86dvh;overflow:auto;background:#f0deb1;color:#3b402a;border:4px solid #82623c;border-radius:10px;padding:16px;font:14px/1.4 system-ui}
#lvAvatarFramePicker::backdrop{background:#10291c99}
#lvAvatarFramePicker header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;padding:0;border:0;height:auto}
#lvAvatarFramePicker h2{margin:0;font-size:20px}
#lvFrameClose{background:#dec796;color:#544329;border:1px solid #a1814c;padding:3px 11px;font-size:25px}
.lv-frame-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.lv-frame-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;min-width:0;border:2px solid #ac945f;border-radius:7px;background:#314c3b;color:#f8e6ba;font:13px/1.35 system-ui;cursor:pointer}
.lv-frame-choice img{display:block;width:80px;height:80px;object-fit:contain;image-rendering:pixelated}
.lv-frame-choice strong{font-size:13px}.lv-frame-choice small{color:#e0d5ac;font-size:11px}
.lv-frame-choice[aria-pressed=true]{border-color:#f1cc64;box-shadow:inset 0 0 0 1px #f1cc64;background:#48653e}
.lv-frame-choice:disabled{opacity:.65;cursor:wait}
#lvFrameStatus{min-height:20px;margin-bottom:0;font-size:13px}
@media(max-width:400px){.lv-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#lvAvatarFramePicker{padding:12px}#stage .player-hud .portrait.lv-custom-avatar{margin-right:4px}#stage .player-hud .meters{width:104px}}
