.nubi-game-player {
	background: #101226;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(16, 18, 38, .22);
	color: #fff;
	margin: 1.5rem 0;
	overflow: hidden;
}

.nubi-game-stage {
	aspect-ratio: var(--nubi-game-ratio, 16 / 9);
	background: radial-gradient(circle at 50% 30%, #363b78 0, #15172e 52%, #0a0b18 100%);
	position: relative;
	width: 100%;
}

.nubi-game-frame,
.nubi-game-poster {
	border: 0;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.nubi-game-frame[hidden],
.nubi-game-poster[hidden],
.nubi-game-toolbar[hidden] {
	display: none;
}

.nubi-game-poster {
	display: grid;
	place-items: center;
}

.nubi-game-poster-image {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.nubi-game-poster-shade {
	background: linear-gradient(180deg, rgba(7, 8, 19, .08), rgba(7, 8, 19, .72));
	inset: 0;
	position: absolute;
}

.nubi-game-launch,
.nubi-game-fullscreen {
	align-items: center;
	appearance: none;
	background: #7357ff;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: .65rem;
	justify-content: center;
	position: relative;
}

.nubi-game-launch {
	box-shadow: 0 12px 32px rgba(58, 36, 180, .45);
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	min-height: 52px;
	padding: .8rem 1.35rem;
}

.nubi-game-launch:hover,
.nubi-game-fullscreen:hover {
	background: #6043f2;
}

.nubi-game-launch:focus-visible,
.nubi-game-fullscreen:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.nubi-game-play-icon {
	border-bottom: 8px solid transparent;
	border-left: 13px solid currentColor;
	border-top: 8px solid transparent;
	display: inline-block;
	height: 0;
	width: 0;
}

.nubi-game-toolbar {
	background: #101226;
	display: flex;
	justify-content: flex-end;
	padding: .65rem;
}

.nubi-game-fullscreen {
	font-size: .9rem;
	padding: .55rem .9rem;
}

.nubi-game-player:fullscreen {
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.nubi-game-player:fullscreen .nubi-game-stage {
	flex: 1;
}

.nubi-game-controls {
	margin-block: 2rem;
}

.nubi-game-admin-warning {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #3c434a;
	margin: 1rem 0;
	padding: .8rem 1rem;
}

@media (max-width: 600px) {
	.nubi-game-player {
		border-radius: 12px;
	}

	.nubi-game-stage {
		min-height: 260px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nubi-game-launch,
	.nubi-game-fullscreen {
		scroll-behavior: auto;
	}
}
