.game-fullscreen-shell {
	position: relative;
}

.game-fullscreen-box .game-wrap {
	padding: 0;
}

.game-fullscreen-open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 20px auto;
	padding: 10px 30px;
	border: 0;
	border-radius: 5px;
	outline: 0;
	background: #2e55b8;
	color: #fff;
	font: inherit;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	touch-action: manipulation;
}

.game-fullscreen-open:hover,
.game-fullscreen-open:focus-visible {
	background: #466fd5;
}

.game-fullscreen-open img {
	width: 24px;
	height: 24px;
}

.game-fullscreen-close {
	display: none;
	position: fixed;
	top: max(10px, env(safe-area-inset-top));
	right: max(10px, env(safe-area-inset-right));
	z-index: 2147483647;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 22px;
	outline: 0;
	background: #ef6c00;
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	touch-action: manipulation;
}

.game-fullscreen-close:hover,
.game-fullscreen-close:focus-visible {
	background: #ff7b0a;
}

.game-fullscreen-shell.is-game-fullscreen,
.game-fullscreen-shell:fullscreen,
.game-fullscreen-shell:-webkit-full-screen {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	padding-top: env(safe-area-inset-top);
	padding-right: env(safe-area-inset-right);
	padding-bottom: env(safe-area-inset-bottom);
	padding-left: env(safe-area-inset-left);
	background: #000;
	overflow: hidden;
}

.game-fullscreen-shell.is-fullscreen-fallback {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
}

.game-fullscreen-shell.is-game-fullscreen .game-fullscreen-close {
	display: block;
}

.game-fullscreen-shell.is-game-fullscreen .game-fullscreen-box {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: #000;
	overflow: hidden;
}

.game-fullscreen-shell.is-game-fullscreen .game-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	background-color: #000;
	overflow: hidden;
}

.game-fullscreen-shell.is-game-fullscreen #game,
.game-fullscreen-shell.is-game-fullscreen #game iframe,
.game-fullscreen-shell.is-game-fullscreen #game object {
	max-width: 100%;
	max-height: 100%;
	margin: auto;
}

html.game-fullscreen-document-lock,
body.game-fullscreen-document-lock {
	overflow: hidden;
	overscroll-behavior: none;
}

@media (max-width: 768px) {
	.game-fullscreen-open {
		width: 100%;
		min-height: 48px;
		padding: 10px 20px;
	}
}
