
/* Touch-only view. Other scenes and desktop retain the original layout. */
@media (pointer:coarse) and (max-width:1000px){
  #mapView #treeView canvas#treeCanvas{width:100%;height:100%;aspect-ratio:auto}
  #treeView .map-frame{display:block;overflow:hidden;isolation:isolate}
  #treeView .map-frame::before{
    position:absolute;inset:-22px;z-index:-1;content:"";pointer-events:none;
    background:linear-gradient(#32251b70,#372518a6),url("assets/tree-room.png") center/cover;
    filter:blur(18px);
  }
  #treeView.tree-expanded .map-frame::before{
    background-image:linear-gradient(#32251b70,#372518a6),url("assets/tree-expansion/tree-full.png");
  }
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .stage-dock{
    bottom:max(4px,env(safe-area-inset-bottom));gap:2px;padding:2px 3px;border-radius:11px;
    max-width:calc(100% - 12px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .stage-dock button{
    min-width:44px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:1px;padding:2px 5px;font-size:11px;line-height:1.1;text-align:center;
  }
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .stage-dock .stage-glyph,
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .stage-dock .fj-entry-icon{
    width:20px;height:20px;
  }
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .stage-dock .fj-entry-star{
    width:11px;height:11px;right:4px;top:2px;
  }
}
@media (pointer:coarse) and (max-width:1000px) and (orientation:landscape){
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .stage-dock button{flex-direction:row;gap:4px;padding-inline:7px}
  #adventureScreen:has(#treeView:not([hidden]),#greenhouseView:not([hidden])) .adv-top{
    left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));
  }
}

