/* Pagina browser game. Non carica developer.css. */

html {
	min-width: calc(1024px + 48px);
}

.bg-page {
	box-sizing: border-box;
	margin: 0;
	width: 100%;
	min-width: calc(1024px + 48px);
	min-height: max(100vh, 576px);
	padding-right: 24px;
	padding-left: 24px;
	display: grid;
	grid-template-rows: auto 1fr auto;
	color: #F2F2F7;
	background-color: #000;
	background-image:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 1) 100%),
		url("/static/img/browsergame/lane-rush-bg.jpg");
	background-repeat: no-repeat, repeat;
	background-size: 100% 100%, auto;
	background-position: center top, left top;
	background-attachment: fixed;
	font: 16px/1.5 "Varela Round", sans-serif;
}

.bg-page *,
.bg-page *::before,
.bg-page *::after { box-sizing: border-box; }

.bg-page h1,
.bg-page h2 {
	margin: 0;
	color: #F2F2F7;
	font-family: Oswald, sans-serif;
	font-weight: 700;
}

.bg-page a { color: #0A84FF; text-decoration: none; }
.bg-page a:hover { text-decoration: underline; }

.bg-header,
.bg-main,
.bg-footer { position: relative; z-index: 1; }

.bg-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 1024px;
	min-width: 1024px;
	max-width: 1024px;
	margin: 0 auto 25px;
	padding: 10px 0;
	border-bottom: 1px solid #2C2C2E;
}

.bg-nav-block { min-width: 0; }

.bg-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bg-nav a {
	display: block;
	line-height: 35px;
	color: #0A84FF;
	font-family: "Varela Round", sans-serif;
}

.bg-user {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
}

.bg-user__avatar {
	width: 35px;
	height: 35px;
	margin-right: 10px;
	border-radius: 35px;
	overflow: hidden;
	background: #3A3A3C;
}

.bg-user__avatar img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.bg-user__name {
	display: block;
	padding: 0 15px;
	line-height: 35px;
	color: #0A84FF;
	background: #2C2C2E;
	border-radius: 25px;
	white-space: nowrap;
}

.bg-user a:hover { text-decoration: none; }

.bg-nav-more { display: none; }
.bg-nav-more summary {
	color: #0A84FF;
	cursor: pointer;
	list-style: none;
}
.bg-nav-more summary::-webkit-details-marker { display: none; }
.bg-nav-more ul {
	margin: 8px 0 0;
	padding: 12px 16px;
	list-style: none;
	background: #2C2C2E;
	border-radius: 16px;
}
.bg-nav-more li + li { margin-top: 8px; }

.bg-main {
	width: 1024px;
	min-width: 1024px;
	max-width: 1024px;
	margin: 0 auto;
	padding: 8px 0 64px;
}

.bg-sheet {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.bg-head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.bg-logo {
	width: auto;
	height: 96px;
	flex: 0 0 auto;
	display: block;
}

.bg-head__copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.bg-sheet h1 { font-size: 40px; line-height: 1.1; }

.bg-rating {
	display: flex;
	align-items: center;
	line-height: 25px;
	color: #FF375F;
}

.bg-rating__count {
	margin-left: 10px;
	font-size: 14px;
	font-style: italic;
}

.bg-rating__vote {
	margin-left: 15px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #FF375F;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.bg-vote {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0);
	visibility: hidden;
	pointer-events: none;
	transition: background-color 0.48s ease, visibility 0s linear 0.48s;
}

.bg-vote.is-open {
	background: rgba(0, 0, 0, 0.86);
	visibility: visible;
	pointer-events: auto;
	transition: background-color 0.48s ease, visibility 0s;
}

.bg-vote__close,
.bg-play__close {
	position: fixed;
	top: 15px;
	right: 30px;
	z-index: 2;
	width: 35px;
	height: 35px;
	padding: 0;
	border: 0;
	border-radius: 25px;
	background: #2C2C2E;
	color: #0A84FF;
	font: 700 18px/35px Oswald, sans-serif;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.42s ease;
}

.bg-vote__card {
	width: min(560px, calc(100% - 48px));
	padding: 25px;
	text-align: center;
	background: #F2F2F7;
	border-radius: 25px;
	opacity: 0;
	transition: opacity 0.42s ease;
}

.bg-vote.is-shown .bg-vote__close,
.bg-vote.is-shown .bg-vote__card { opacity: 1; }

.bg-vote__card h4 {
	margin: 0 0 30px;
	color: #1C1C1E;
	font-family: Oswald, sans-serif;
	font-size: 30px;
	font-weight: 700;
}

.bg-vote__stars { margin-bottom: 15px; line-height: 35px; }

.bg-vote__stars button {
	margin: 0 15px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #FF375F;
	font-size: 25px;
	cursor: pointer;
}

.bg-vote__submit {
	width: 225px;
	height: 35px;
	margin: 0 auto;
	display: block;
	border: 0;
	border-radius: 25px;
	background: #0A84FF;
	color: #fff;
	font: inherit;
	line-height: 35px;
	text-transform: uppercase;
	cursor: pointer;
}

.bg-vote__submit:disabled { cursor: default; }

.bg-rules { max-width: none; }
.bg-rules p { margin: 0 0 14px; }
.bg-rules p:last-child { margin-bottom: 0; }

.bg-stage {
	position: relative;
	display: grid;
	width: 1024px;
	min-width: 1024px;
	min-height: 576px;
	aspect-ratio: 16 / 9;
	margin: 6px 0 0;
	border-radius: 0;
	overflow: hidden;
}

.bg-stage:fullscreen {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	aspect-ratio: auto;
	background: #000;
}

.bg-stage > img,
.bg-stage__frame {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	display: block;
}

.bg-stage > img { object-fit: cover; }

.bg-stage__full {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.bg-stage__full img {
	width: 40px;
	height: 40px;
	display: block;
}

.bg-stage__frame {
	border: 0;
	background: #000;
}

.bg-play-open {
	grid-area: 1 / 1;
	place-self: center;
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #b30086;
	background: linear-gradient(135deg, #b30086 0%, #c00 100%);
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.bg-play-open span {
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 16px 0 16px 26px;
	border-color: transparent transparent transparent #fff;
	transform: translateX(4px);
}

.bg-comments { margin-top: 36px; }
.bg-comments h2 { font-size: 30px; }
.bg-comments > p { margin: 10px 0 18px; }

.bg-comment {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: 8px 12px;
	align-items: start;
}

.bg-comment__avatar {
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #3A3A3C;
}

.bg-comment__name { font-weight: 700; }
.bg-comment__date { color: #8E8E93; font-size: 14px; }

.bg-comment__text {
	grid-column: 2 / span 2;
	margin: 0;
	padding: 10px 16px;
	color: #F2F2F7;
	background: #2C2C2E;
	border-radius: 18px;
}

.bg-footer {
	padding: 28px 24px 36px;
}

.bg-footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bg-footer a {
	color: #636366;
	font-size: 14px;
}

.bg-play {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0);
	visibility: hidden;
	pointer-events: none;
	transition: background-color 0.48s ease, visibility 0s linear 0.48s;
}

.bg-play.is-open {
	background: rgba(0, 0, 0, 0.86);
	visibility: visible;
	pointer-events: auto;
	transition: background-color 0.48s ease, visibility 0s;
}


.bg-play iframe {
	width: min(1100px, calc(100vw - 48px));
	aspect-ratio: 16 / 9;
	border: 0;
	background: #2C2C2E;
	opacity: 0;
	transition: opacity 0.42s ease;
}

.bg-play.is-shown .bg-play__close,
.bg-play.is-shown iframe { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.bg-play,
	.bg-play__close,
	.bg-play iframe,
	.bg-vote,
	.bg-vote__close,
	.bg-vote__card { transition: none; }
}

