/* Function menu (official UI_MainFunction): see function-menu.js for the source layout.
   Geometry comes from function-menu.js align(): the bottom row sits exactly on the quickbar. */
.function-menu-mask{position:absolute;inset:0;z-index:30}
.function-menu{position:absolute;box-sizing:border-box;display:flex;flex-direction:row-reverse;flex-wrap:wrap-reverse;column-gap:var(--cell-gap,6px);row-gap:calc(var(--cell-gap,6px) / 2);isolation:isolate}
.function-menu::before{content:'';position:absolute;inset:0;z-index:-1;border:7px solid transparent;border-image:url('ui/common0_bod019.png') 7 fill / 7px stretch;opacity:.622;pointer-events:none}
.function-menu button{position:relative;flex:none;width:var(--cell-w,60px);height:var(--cell-h,66px);padding:0;border:0;background:none;color:#fff;font-weight:700;font-size:var(--label-size,17px);cursor:pointer;
  text-shadow:1px 1px 2px #101435,-1px -1px 2px #101435}
.function-menu img{position:absolute;left:50%;top:var(--img-top,0);width:var(--img-w,56px);height:var(--img-h,55px);transform:translateX(-50%);object-fit:contain;pointer-events:none}
.function-menu button[data-feature=stall] img{image-rendering:pixelated}
.function-menu span{position:absolute;left:-4px;right:-4px;bottom:0;white-space:nowrap;pointer-events:none}
#toggle-shortcuts{position:relative}
#toggle-shortcuts.has-new-items:after{content:'';position:absolute;right:4px;top:2px;width:14px;height:14px;background:url('ui/shop/new-dot.png') center/contain no-repeat;pointer-events:none}
