/* Slotsplay demo player. Lives inside the legacy .game .frame box from style.css. */

.sp-game {
	position: relative;
	overflow: hidden;
}

.sp-game__stage {
	position: absolute;
	top: 3px;
	right: 3px;
	bottom: 3px;
	left: 3px;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

/* Posters are small square game icons, so they are used twice: blown up and blurred
   as a backdrop, and sharp at their own size above the play button. */
.sp-game__backdrop {
	position: absolute;
	top: -6%;
	right: -6%;
	bottom: -6%;
	left: -6%;
	width: 112%;
	height: 112%;
	object-fit: cover;
	filter: blur(20px) saturate(1.15) brightness(.55);
}

.sp-game__thumb {
	display: block;
	width: auto;
	max-width: 240px;
	max-height: 42%;
	margin: 0 0 26px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
	box-shadow: 0 12px 38px rgba(0, 0, 0, .75);
}

.sp-game__overlay {
	position: absolute;
	z-index: 2;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .78) 100%);
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
}

.sp-game__play {
	display: inline-block;
	border: 0;
	cursor: pointer;
	font: bold 18px/1 Arial, Helvetica, sans-serif;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 16px 42px;
	border-radius: 4px;
	background: #f0a30a;
	box-shadow: 0 2px 0 #b87b02, 0 6px 22px rgba(0, 0, 0, .55);
}

.sp-game__play:hover {
	background: #ffb61f;
}

.sp-game__play:active {
	transform: translateY(2px);
	box-shadow: 0 0 0 #b87b02, 0 4px 14px rgba(0, 0, 0, .55);
}

.sp-game__note {
	display: none;
	margin-top: 14px;
	max-width: 30em;
	font: 14px/1.5 Arial, Helvetica, sans-serif;
	color: #e6e6e6;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.sp-game__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.sp-game__fs {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 5;
	display: none;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	cursor: pointer;
	border-radius: 3px;
	background: rgba(0, 0, 0, .45) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}

.sp-game__fs:hover {
	background-color: rgba(0, 0, 0, .75);
}

.sp-game.is-fullscreen {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #000;
}

.sp-game.is-fullscreen .sp-game__stage {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 0;
}

html.sp-game-locked,
html.sp-game-locked body {
	overflow: hidden;
}

/* The legacy .game .frame is a hard 566px box; that overflows small screens. */
@media (max-width: 860px) {
	.game .frame.sp-game {
		height: auto;
		padding-top: 68%;
	}

	.sp-game__play {
		font-size: 15px;
		padding: 13px 30px;
	}
}
