d("touch_controls_gfx").style.display="none";
			document.getElementById("touch_controls_background").style.display="none";
		}

		if (!p8_is_running)
		{
			p8_playarea.style.display="none";
			p8_container.style.display="flex";
			p8_container.style.marginTop="auto";

			el = document.getElementById("p8_start_button");
			if (el) el.style.display="flex";
		}
		requestAnimationFrame(p8_update_layout);
	}


	var p8_touch_detected = false;
	addEventListener("touchstart", function(event)
	{
		p8_touch_detecte