:root {
	color-scheme: dark;
	background: #000;
}

html,
body.nmg-play-only-view {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #000;
}

body.nmg-play-only-view > :not(.nmg-play-only-stage):not(script):not(style) {
	display: none !important;
}

.nmg-play-only-stage {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #000;
}

.nmg-play-only-frame {
	display: block;
	width: min(100dvw, calc(100dvh * var(--nmg-play-ratio, 1.777778)));
	height: min(100dvh, calc(100dvw / var(--nmg-play-ratio, 1.777778)));
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
}

.nmg-play-only-unavailable {
	max-width: 36rem;
	padding: 1.5rem;
	color: #fff;
	font: 600 1rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
}

.nmg-play-only-unavailable a {
	color: inherit;
}



html:fullscreen,
html:-webkit-full-screen,
html:fullscreen body.nmg-play-only-view,
html:-webkit-full-screen body.nmg-play-only-view {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #000;
}

html:fullscreen .nmg-play-only-stage,
html:-webkit-full-screen .nmg-play-only-stage {
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
}

.nmg-play-only-frame:fullscreen,
.nmg-play-only-stage:fullscreen,
.nmg-play-only-frame:-webkit-full-screen,
.nmg-play-only-stage:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	border: 0 !important;
	background: #000;
}

.nmg-play-only-frame::backdrop,
.nmg-play-only-stage::backdrop {
	background: #000;
}

.nmg-play-only-gate[hidden] {
	display: none !important;
}

.nmg-play-only-gate {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: grid;
	place-items: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	background: rgb(0 0 0 / 42%);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.nmg-play-only-gate__button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: min(92vw, 380px);
	min-height: 58px;
	padding: 11px 16px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 16px;
	background: rgb(8 13 22 / 92%);
	box-shadow: 0 14px 38px rgb(0 0 0 / 38%);
	color: #fff;
	font: inherit;
	text-align: left;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	cursor: pointer;
}

.nmg-play-only-gate__button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.nmg-play-only-gate__button:disabled {
	cursor: wait;
	opacity: .74;
}

.nmg-play-only-gate__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgb(255 255 255 / 10%);
}

.nmg-play-only-gate__icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nmg-play-only-gate__copy {
	display: grid;
	gap: 2px;
}

.nmg-play-only-gate__copy strong {
	font: 700 1rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nmg-play-only-gate__copy small {
	color: rgb(255 255 255 / 72%);
	font: 500 .78rem/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-reduced-transparency: reduce) {
	.nmg-play-only-gate {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgb(0 0 0 / 70%);
	}
}
