/**
 * PlayRox games library + signup bonus.
 */

/* ==========================================================================
   Games library
   ========================================================================== */

.playrox-library {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.playrox-library.is-open {
	opacity: 1;
	visibility: visible;
}

.playrox-library__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 22, 12, 0.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.playrox-library__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 720px;
	max-height: calc(100dvh - 40px);
	margin: 20px;
	border-radius: 22px;
	overflow: hidden;
	background: #0f1622;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	transform: translateY(18px) scale(0.98);
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.playrox-library.is-open .playrox-library__sheet {
	transform: none;
}

.playrox-library__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: linear-gradient(135deg, #124a24 0%, #0d3a1c 100%);
	color: #fff;
}

.playrox-library__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
}

.playrox-library__title i {
	color: #6fcf6f;
	margin-right: 6px;
}

.playrox-library__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.16s ease;
}

.playrox-library__close:hover {
	background: rgba(255, 92, 114, 0.85);
}

.playrox-library__tabs {
	display: flex;
	gap: 8px;
	padding: 14px 20px 0;
	background: #0f1622;
}

.playrox-library__tab {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px 12px 0 0;
	border-bottom: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease;
}

.playrox-library__tab.is-active {
	background: #171f2e;
	color: #fff;
}

.playrox-library__tab i {
	color: #6fcf6f;
}

.playrox-library__tab[data-playrox-tab="paid"] i {
	color: #ffc531;
}

.playrox-library__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 20px 24px;
	background: #171f2e;
	-webkit-overflow-scrolling: touch;
}

.playrox-library__panel {
	display: none;
}

.playrox-library__panel.is-active {
	display: block;
}

.playrox-library__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
}

.playrox-library__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.playrox-library__thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #0f1622;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.playrox-library__card:hover .playrox-library__thumb {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

.playrox-library__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.playrox-library__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, 0.3);
	font-size: 30px;
}

.playrox-library__badge {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.playrox-library__badge.is-price {
	background: linear-gradient(135deg, #ffd75e, #f4b731);
	color: #3a2a06;
}

.playrox-library__badge.is-owned {
	background: rgba(47, 158, 68, 0.95);
	color: #fff;
}

.playrox-library__name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.playrox-library__card.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.playrox-library__empty {
	padding: 40px 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
}

.playrox-library__loading {
	display: flex;
	justify-content: center;
	padding: 50px 0;
}

.playrox-library__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.16);
	border-top-color: #6fcf6f;
	border-radius: 50%;
	animation: playrox-lib-spin 0.8s linear infinite;
}

@keyframes playrox-lib-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
	.playrox-library__sheet {
		max-width: none;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.playrox-library__grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 12px;
	}
}





@media (prefers-reduced-motion: reduce) {
}

/* ==========================================================================
   Main-site games launcher (floating action button)
   ========================================================================== */

.playrox-games-fab {
	position: fixed;
	right: 16px;
	left: auto;
	bottom: 16px;
	z-index: 99996;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 18px 12px 15px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #1a7a2e, #0d3a1c);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(13, 58, 28, 0.45);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.playrox-games-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(13, 58, 28, 0.6);
	color: #fff;
}

.playrox-games-fab i {
	font-size: 17px;
	color: #6fe06f;
}

/* Keep the launcher clear of the player dock (which sits bottom-right). */
@media (max-width: 480px) {
	.playrox-games-fab__label {
		display: none;
	}

	.playrox-games-fab {
		padding: 14px;
	}

	.playrox-games-fab i {
		font-size: 19px;
	}
}

/* Hide the launcher while any popup is open. */
#viral-slider-popup.active ~ .playrox-games-fab,
.playrox-library.is-open ~ .playrox-games-fab {
	display: none;
}

/* Play / Continue overlay on library cards */
.playrox-library__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	opacity: 0;
	transition: opacity 0.16s ease, transform 0.16s ease;
	pointer-events: none;
}

.playrox-library__play.is-continue {
	background: #2f9e44;
}

.playrox-library__card:hover .playrox-library__play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* On touch devices, show the Continue badge for played games always. */
@media (hover: none) {
	.playrox-library__play.is-continue {
		opacity: 1;
		top: auto;
		bottom: 8px;
		left: 8px;
		transform: none;
		padding: 4px 10px;
		font-size: 11px;
	}
}

/*--------------------------------------------------------------
# Launcher artwork
#
# With a PNG uploaded in the Icon Lobby the launcher becomes the
# artwork itself — a round badge rather than a labelled pill.
--------------------------------------------------------------*/

.playrox-games-fab--art {
	width: 62px;
	height: 62px;
	padding: 0;
	border-radius: 50%;
	background: no-repeat center / 100% 100%;
	box-shadow: 0 10px 26px rgba( 13, 58, 28, .38 );
}

.playrox-games-fab--art i,
.playrox-games-fab--art .playrox-games-fab__label {
	display: none;
}

/* Icon only: the floating button is a round badge, not a labelled pill. */
.playrox-games-fab {
	width: 60px;
	height: 60px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
}

.playrox-games-fab__label {
	display: none;
}

.playrox-games-fab i {
	font-size: 24px;
	margin: 0;
}

/* Uploaded artwork fills the badge in both states, signed in or not. */
.playrox-games-fab--art i {
	display: none;
}

/*--------------------------------------------------------------
# "View more" tile
#
# The eleventh card on each front-page rail: the rails carry ten
# items and this sends the reader to the full listing.
--------------------------------------------------------------*/

.reel-item--more .reel-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 160px;
	padding: 18px 12px;
	border-radius: 14px;
	background: linear-gradient( 160deg, rgba( 34, 197, 94, .10 ), rgba( 15, 23, 42, .04 ) );
	border: 1px dashed rgba( 15, 23, 42, .18 );
	color: #0F172A;
	font-weight: 800;
	text-decoration: none;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.reel-item--more .reel-more:hover {
	transform: translateY( -2px );
	border-color: rgba( 34, 197, 94, .55 );
	background: linear-gradient( 160deg, rgba( 34, 197, 94, .16 ), rgba( 15, 23, 42, .04 ) );
}

.reel-item--more .reel-more__ic {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #16A34A;
	color: #fff;
}

.reel-item--more .reel-more b {
	font-size: 14px;
}

@media ( prefers-reduced-motion: reduce ) {

	.reel-item--more .reel-more {
		transition: none;
	}
}

/*--------------------------------------------------------------
# Reel library
#
# Everything behind the category rail's "view more" tile.
--------------------------------------------------------------*/

.plxr-lib {
	position: fixed;
	inset: 0;
	z-index: 100020;
	display: none;
	align-items: flex-end;
	justify-content: center;
}

.plxr-lib.is-on {
	display: flex;
}

body.plxr-lib-open {
	overflow: hidden;
}

.plxr-lib__scrim {
	position: absolute;
	inset: 0;
	background: rgba( 8, 15, 12, .62 );
	backdrop-filter: blur( 3px );
}

.plxr-lib__box {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min( 760px, 100% );
	max-height: 88dvh;
	background: #fff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -18px 50px rgba( 8, 25, 16, .32 );
	animation: plxr-libup .28s cubic-bezier( .22, .61, .36, 1 );
	overflow: hidden;
}

@keyframes plxr-libup {
	from { transform: translateY( 24px ); opacity: 0; }
}

.plxr-lib__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px 12px;
	border-bottom: 1px solid #EEF1F4;
}

.plxr-lib__head b {
	font-size: 17px;
	font-weight: 800;
	color: #0F172A;
}

.plxr-lib__x {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F1F5F9;
	color: #334155;
	cursor: pointer;
}

.plxr-lib__grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 10px;
	padding: 14px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

@media ( min-width: 700px ) {

	.plxr-lib__grid {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
		gap: 14px;
	}

	.plxr-lib__box {
		border-radius: 20px;
		max-height: 80dvh;
	}

	.plxr-lib {
		align-items: center;
	}
}

.plxr-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: inherit;
}

.plxr-tile__art {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	background: #E2E8F0 center / cover no-repeat;
}

.plxr-tile__art--none {
	background: linear-gradient( 160deg, #E2E8F0, #CBD5E1 );
}

.plxr-tile__txt b {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	color: #0F172A;
}

.plxr-tile__txt em {
	font-size: 10.5px;
	font-style: normal;
	color: #64748B;
}

.plxr-lib__foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 14px calc( 14px + env( safe-area-inset-bottom ) );
	border-top: 1px solid #EEF1F4;
}

.plxr-lib__more {
	padding: 9px 18px;
	border: 0;
	border-radius: 99px;
	background: #16A34A;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.plxr-lib__note {
	font-size: 12.5px;
	color: #64748B;
}

@media ( prefers-reduced-motion: reduce ) {

	.plxr-lib__box {
		animation: none;
	}
}

/* Vibe tiles in the library: a portrait frame with a play badge, sized
   the same as the reel tiles so the two grids match. */
.plxr-lib.is-vibes .plxr-lib__grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.plxr-tile--vibe {
	position: relative;
}

.plxr-tile__frame {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	background: #0F172A;
}

.plxr-tile__vid {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.plxr-tile__art--embed {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient( 160deg, #1E293B, #0F172A );
}

.plxr-tile__play {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba( 15, 23, 42, .72 );
	color: #fff;
	pointer-events: none;
}

@media ( min-width: 700px ) {

	.plxr-lib.is-vibes .plxr-lib__grid {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}
}
