/* Pixoji card (pixoji-ad.js): floats at the bottom, a looping demo on the left, the pitch on the right */

@font-face {
	font-family: "Jersey 10";
	src: url("Jersey10.woff2") format("woff2");
	font-display: swap;
}

.pxad {
	position: fixed;
	z-index: 1000;
	left: 50%;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	width: 540px;
	max-width: calc(100% - 24px);
	box-sizing: border-box;
	display: flex;
	align-items: stretch;
	gap: 18px;
	padding: 12px 18px 12px 12px;
	border-radius: 20px;
	background: rgba(16, 16, 19, 0.86);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 255, 119, 0.08);
	font-family: "Jersey 10", monospace;
	color: #fff;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	opacity: 0;
	transform: translate(-50%, 30px) scale(0.97);
	transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1);
	pointer-events: none;
}
.pxad.pxad-in {
	opacity: 1;
	transform: translate(-50%, 0) scale(1);
	pointer-events: auto;
}
/* while the light is running and the controls are hidden */
.pxad.pxad-in.pxad-away {
	opacity: 0;
	transform: translate(-50%, 16px) scale(0.98);
	pointer-events: none;
	transition-duration: 0.4s;
}

/* a slow rainbow glow round the edge */
.pxad::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: 21px;
	padding: 1px;
	background: conic-gradient(from var(--pxad-turn, 0deg), #ff3c3c, #ffa21c, #ffe11c, #00ff77, #1ca8ff, #c43cff, #ff3c3c);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.55;
	animation: pxad-turn 6s linear infinite;
}
@property --pxad-turn {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}
@keyframes pxad-turn {
	to { --pxad-turn: 360deg; }
}

.pxad-media {
	flex: none;
	position: relative;
	display: block;
	width: 132px;
	height: 132px;
	border-radius: 13px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pxad-media video,
.pxad-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pxad-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}
.pxad-logo {
	display: block;
	height: 23px;
	width: auto;
	margin: 0 0 6px -5px;
}
.pxad-title {
	font-size: 31px;
	line-height: 0.9;
	letter-spacing: 0.5px;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
.pxad-title b {
	font-weight: normal;
	color: #00ff77;
	text-shadow: 0 0 10px rgba(0, 255, 119, 0.75), 0 0 22px rgba(0, 255, 119, 0.35);
}
.pxad-sub {
	margin-top: 4px;
	font-size: 20px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.6);
}

/* Pixoji's green pixel button: stepped corners and bevels */
.pxad-btn {
	margin-top: 10px;
	padding: 3px 18px 6px;
	font-size: 26px;
	line-height: 1;
	color: #000 !important;
	text-decoration: none !important;
	letter-spacing: 0.5px;
	background: hsl(148, 100%, 50%);
	clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
	box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.45), inset -3px -3px 0 rgba(0, 0, 0, 0.25);
	transition: background 0.15s, transform 0.1s;
}
.pxad-btn:hover {
	background: hsl(148, 100%, 60%);
}
.pxad-btn:active {
	transform: translateY(1px);
	box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.2), inset -3px -3px 0 rgba(255, 255, 255, 0.3);
}

.pxad-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.65);
	font: 22px/26px "Jersey 10", monospace;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.pxad-close:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

@media (max-width: 640px) {
	.pxad {
		bottom: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		gap: 12px;
		padding: 9px 12px 9px 9px;
		border-radius: 16px;
	}
	.pxad::before {
		border-radius: 17px;
	}
	.pxad-media {
		width: 96px;
		height: 96px;
		border-radius: 10px;
	}
	.pxad-logo {
		height: 17px;
		margin-bottom: 4px;
	}
	.pxad-title {
		font-size: 25px;
		padding-right: 24px;
	}
	.pxad-sub {
		display: none;
	}
	.pxad-btn {
		margin-top: 8px;
		font-size: 22px;
		padding: 2px 14px 5px;
	}
}
