/****************************
 *
 * Page Structure
 *
 ****************************/
body {
	/* Font */
	color: gray;
	font-family: Courier New;
	font-size: 12px;
	/* Text */
	line-height: 1.7;
	text-align: center;
	height: 90vh;
	overflow: auto;
	/* fallback */
	overflow: overlay;
}

.wrapper {
	display: flex;
	/* flex layout instead of float */
	margin: auto;
	max-width: 958px;
	min-width: 900px;
	position: relative;
	top: -8px;
}

.sidenav {
	flex: 0 0 160px;
	/* fixed width */
	height: 100dvh;
	/* always full viewport height */
	position: sticky;
	/* stays pinned when main scrolls */
	top: 0;
	background: rgba(0, 0, 0, 0.2);
	overflow-x: hidden;
	z-index: 1;
}

#main {
	flex: 1;
	/* take up remaining width */
}

.content-block {
	border-radius: 2px;
	display: inline-block;
	position: relative;
	background: rgba(0, 0, 0, 0.2);
	padding: 3px;
	margin-left: -5px;
	width: 95%;
	box-shadow: 1px 1px #000;
}

.content-block .content-block {
	width: 520px;
}

/****************************
 *
 * Links
 *
 ****************************/
a:link {
	text-decoration: none;
	color: rgb(45, 150, 250);
}

a:visited {
	text-decoration: none;
	color: rgb(30, 100, 170);
}

a:hover {
	text-decoration: none;
	color: rgb(170, 215, 230);
}

/****************************
 *
 * Lists
 *
 ****************************/
ul {
	list-style: none;
}

ul li:not(:last-child) {
	margin-bottom: 15px;
}

/****************************
 *
 * Side Navigation
 *
 ****************************/

.nav-button {
	display: block;
	width: 100%;
	color: gray;
	font-size: 11px;
	padding: 10px 0;
}

.nav-button:hover {
	color: white;
}

.nav-button:hover .navicon-div .navicon {
	cursor: pointer;
	animation-name: bounce;
	-moz-animation-name: bounce;
}

.nav-button:link,
.nav-button:visited {
	color: gray;
}

.nav-button:hover {
	background-color: #333333;
}

.navicon {
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
	position: absolute;
}

.navicon-div {
	position: relative;
	bottom: 6px;
	height: 30px;
	width: 40px;
	float: left;
	bottom: 13px;
}

.nav-active {
	display: block;
	width: 100%;
	background-color: #1a1a1a;
	color: gray;
	font-size: 11px;
	padding: 10px 0;
	-webkit-user-select: none;
	/* Safari */
	-ms-user-select: none;
	/* IE 10 and IE 11 */
	user-select: none;
	/* Standard syntax */
}

.skipnav {
	text-align: left;
	margin-left: 25px;
}

.skipnav a {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skipnav a:focus,
.skipnav a:active {
	position: static;
	left: 0;
	width: auto;
	height: auto;
	overflow: visible;
	text-decoration: underline;
	background-color: rgba(0, 0, 0, 1);
	color: white;
}

/****************************
 *
 * Navigation Banners
 *
 ****************************/
.navbanner {
	opacity: 0;
	transition: all 1s;
	width: 270px;
	height: 100px;
}

.navbanner-link {
	position: relative;
	/* creates stacking context */
	display: inline-block;
	/* so it sizes to content */
	width: 480px;
	/* match your images */
	height: 100px;
	overflow: hidden;
	/* prevents background spilling */
	text-decoration: none;
	/* no underline */
}

/* Foreground (always visible) */
.banner-foreground {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 2;
	/* sits above background */
	pointer-events: none;
	/* clicks pass through to <a> */
}

/* Background (fades in/out) */
.banner-background {
	position: absolute;
	inset: 0;
	/* shorthand for top/left/right/bottom:0 */
	background: url("img/ra/banner_back.png") no-repeat center/cover;
	opacity: 0;
	transition: opacity 1s ease;
	z-index: 1;
	/* sits under foreground */
}

/* Fade in on hover */
.navbanner-link:hover .banner-background {
	opacity: 1;
}

/****************************
 *
 * Modal
 *
 ****************************/
.w3-modal {
	z-index: 3;
	display: none;
	padding-top: 5px;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: black;
	background-color: rgba(0, 0, 0, 0.8);
}

.w3-modal-content {
	margin: auto;
	background-color: black;
	background-color: rgba(0, 0, 0, 0.95);
	position: relative;
	padding: 0;
	outline: 0;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-top: -6px;
}

.w3-modal-content img {
	max-height: 50vh;
	object-fit: contain;
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Old versions of Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.w3-animate-zoom {
	animation: animatezoom 0s
}

/* MODAL CONTROLS */
#exitmodalicon {
	cursor: pointer;
}

#quality-label {
	cursor: pointer;
}

#quality-label::before {
	content: url(images/other/lowres.png);
	width: 32px;
	height: 32px;
}

:checked+#quality-label::before {
	content: url(images/other/highres.png);
}

#quality-input {
	display: none;
}

#imagecontrols img {
	opacity: 0.4;
}

#imagecontrols img:hover {
	opacity: 1.0;
}

/****************************
 *
 * Tabs
 *
 ****************************/
.tab {
	overflow: hidden;
	border: 1px solid #282828;
	background-color: #282828;
}

/* Style the buttons that are used to open the tab content */
.tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.3s;
	color: rgb(200, 200, 200);
	font-family: Courier New;
	font-size: 12px;
	text-shadow: black 1px 2px;
}

/* Change background color of buttons on hover */
.tab button:hover {
	background-color: #444;
}

/* Create an active/current tablink class */
.tab button.active {
	background-color: #333333;
}

/* Style the tab content */
.tabcontent {
	display: none;
	padding: 6px 12px;
	border: 1px solid #333333;
	border-top: none;
	animation: fadeEffect 1s;
	/* Fading effect takes 1 second */
	min-height: 30rem;
}

/****************************
 *
 * Bottom Left Content
 *
 ****************************/
.content-box {
	text-decoration: none;
	padding: 0.5em 2em;
	display: inline-block;
	margin-bottom: 5px;
	color: white;
	opacity: 0.2;
	font-size: 11px;
	line-height: 1;
	box-shadow: 1px 1px #000;
	border: 1px rgb(40, 40, 40) solid;
}

.content-box:link {
	margin-left: 5px;
	text-decoration: none;
	padding: 0.5em 2em;
	background-color: rgb(20, 20, 20);
	background-color: rgba(20, 20, 20, 0.4);
	opacity: 1.0;
}

.content-box:hover {
	text-decoration: none;
	padding: 0.5em 2em;
	background-color: rgb(30, 30, 30);
	background-color: rgba(30, 30, 30, 0.8);
	color: lightblue;
	border: 1px rgb(100, 100, 100) solid;
}

/****************************
 *
 * Top Navigation
 *
 ****************************/
.pages-path {
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Old versions of Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.pages-path li {
	margin-right: 1px;
	float: left;
	position: relative;
}

.pages-path li+li a {
	padding-left: 16px;
}

.pages-path li a:hover {
	background-color: #6d6d6d;
	color: lightblue;
}

.pages-path li a:hover:after {
	border-left: 12px solid #6d6d6d;
}

.pages-path li a {
	height: 24px;
	line-height: 24px;
	color: gray;
	display: block;
	position: relative;
	text-decoration: none;
	padding: 0.3em 1em;
	background-color: rgb(20, 20, 20);
	background-color: rgba(20, 20, 20, 0.3);
	opacity: 1.0;
	box-shadow: 1px 1px #000;
	border: 1px rgb(40, 40, 40) solid;
}

.pages-path li a:before,
.pages-path li a:after {
	width: 0;
	height: 0;
	margin: auto;
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	content: ' ';
}

.pages-path li a:before {
	border-left: 12px solid black;
	right: -14px;
	z-index: 1;
}

.ie8 .pages-path li a:before {
	right: -13px;
}

.pages-path li a:after {
	border-left: 12px solid rgb(40, 40, 40);
	right: -12px;
	z-index: 2;
}

/* Current */
.pages-path .current {
	max-width: 100%;
	margin-right: 0;
	padding-right: 12px;
}

.pages-path .current a {
	background-color: #131313;
	pointer-events: none;
	opacity: 0.5;
	border: 1px rgb(40, 40, 40) dashed;
}

.pages-path .current a:before {
	border: none;
	pointer-events: none;
}

.pages-path .current a:after {
	visibility: hidden;
	border-left-color: #131313;
	pointer-events: none;
}

.pages-path-link li a {
	color: lightblue;
	background-color: rgb(80, 80, 80);
	background-color: rgba(80, 80, 80, 0.3);
	opacity: 1.0;
	box-shadow: 1px 1px #000;
	border: 1px rgb(100, 100, 100) solid;
}

.pages-path-link li a:after {
	border-left: 12px solid rgb(80, 80, 80);
	right: -12px;
	z-index: 2;
}

/****************************
 *
 * Bottom Left Navigation
 *
 ****************************/
.nav-page:hover .nav-link {
	opacity: 1.0;
}

.nav-page:link {
	width: 60px;
}

.nav-page {
	width: 60px;
	margin-bottom: 15px;

}

/* INLINE BLOCKS */
.inline-block {
	display: inline-block;
	border-radius: 0 7px 7px 0;
	position: relative;
	background: black;
	background: rgba(0, 0, 0, 0.5);
	padding: 0 3px 0 0;
	box-shadow: 1px 1px #000;
	border: 1px rgb(40, 40, 40) solid;
	vertical-align: middle;
	font-size: 11px;
}

.inline-block:hover {
	background: rgb(30, 30, 30);
	background: rgba(30, 30, 30, 0.5);
	border: 1px gray solid;
}

/****************************
 *
 * RPGMAKER Webring
 *
 ****************************/
#RPGMaker {
	margin-left: 3px;
}

/****************************
 *
 * Various
 *
 ****************************/
.no-select {
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Old versions of Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.spoiler,
.spoiler2,
.spoiler a,
.spoiler2 a {
	color: black;
	background-color: black;
}

.spoiler:hover,
.spoiler:hover a {
	color: rgb(150, 150, 100);
}

/****************************
 *
 * Keyframes
 *
 ****************************/
@keyframes bounce {

	0%,
	100%,
	20%,
	50%,
	80% {
		-webkit-transform: translateY(0);
		-ms-transform: translateY(0);
		transform: translateY(0)
	}

	40% {
		-webkit-transform: translateY(-10px);
		-ms-transform: translateY(-10px);
		transform: translateY(-10px)
	}

	60% {
		-webkit-transform: translateY(-5px);
		-ms-transform: translateY(-5px);
		transform: translateY(-5px)
	}
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/****************************
 *
 * Badge Grid
 *
 ****************************/
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 70px);
	gap: 0.50rem;
	padding: 16px;
}

.group-header {
	grid-column: 1 / -1;
	text-align: center;
	font-weight: bold;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.group-header.visible {
	opacity: 1;
	transform: translateY(0);
}

.bucket {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	grid-column: 1 / -1;
	padding-bottom: 0.35rem;
}

.bucket.left {
	justify-content: start;
}

.bucket.centered {
	justify-content: center;
}

.icon-block {
	position: relative;
	display: inline-block;
	cursor: pointer;
	border: 1px solid #282828;
	background-color: #191919;
	box-shadow: 1px 1px #000;
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
	width: 68px;
	height: 68px;
	user-select: none;
	opacity: 0;
	margin-top: 20px;
	transition: opacity 0.4s ease, margin-top 0.4s ease;
	pointer-events: none;
}

.icon-block img.icon {
	width: 64px;
	height: 64px;
	margin-top: 2px;
	image-rendering: smooth;
}

.icon-block:hover {
	border: 1px solid #808080;
}

.icon-block.revision {
	border: 1px dashed #656565;
}

.icon-block.revision:hover {
	border: 1px dashed #808080;
}

.icon-block:hover img.icon {
	animation-name: bounce;
	-moz-animation-name: bounce;
	-webkit-animation-iteration-count: 1;
	-moz-animation-iteration-count: 1;
	animation-iteration-count: 1;
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
}

.icon-block.showcounter .sort-counter {
	visibility: visible;
	pointer-events: auto;
}

.icon-block.visible {
	opacity: 0.1;
	margin-top: 0;
	pointer-events: none;
}

.icon-block.revealed {
	opacity: 1.0;
	pointer-events: auto;
}


/****************************
 *
 * Sort and Filter
 *
 ****************************/
select,
input {
	background: #222;
	color: #ddd;
	border: 1px solid #444;
	padding: 6px 10px;
	margin-right: 0;
	font-size: 14px;
	line-height: 1.2;
	height: 28px;
	box-sizing: border-box;
	vertical-align: middle;
	border-radius: 0;
}


/* Counters */
.sort-counter {
	position: absolute;
	bottom: -4px;
	right: -6px;
	background-color: rgba(40, 40, 40, 0.7);
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	padding: 0 6px;
	border-radius: 4px;
	border: 1px solid #606060;
	min-width: 2ch;
	text-align: center;
	height: 1.35rem;
	overflow: hidden;
	max-width: 7.5ch;
	transition: all 0.3s;
	visibility: hidden;
	z-index: 500;
	box-shadow: 2px 2px #000;
}

.sort-counter:hover {
	opacity: 0.2;
	visibility: hidden;
}

.sort-counter.nobg {
	background: none;
	border: none;
	right: -12px;
	bottom: 4px;
	overflow: visible;
	box-shadow: none;
}

.sort-counter.nobg img {
	filter: drop-shadow(2px 2px 3px #000);
}

/* Search Box */
#searchBox:not(:placeholder-shown) {
	background: #490808;
	border-color: #830f00;
	box-shadow: 0 0 6px #66aaff55;
	color: #e41818;
}

#searchBox:not(:placeholder-shown).altmatched {
	background: #132242;
	border-color: #00259e;
	color: #929aff;
}

#searchBox:not(:placeholder-shown).matched {
	background: #113617;
	border-color: #29aa02;
	color: #18e44b;
}

.search-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 1;
}

.search-wrapper input {
	padding-right: 22px;
	/* space for clear button */
}

.search-wrapper .clear-btn {
	position: absolute;
	right: 10px;
	top: 56%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #aaa;
	display: none;
}

.search-wrapper input:not(:placeholder-shown)+.clear-btn {
	display: block;
}

/****************************
 *
 * Settings
 *
 ****************************/
.settings-toggle {
	background: #222;
	border: 1px solid #444;
	color: #aaa;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.settings-toggle:hover {
	background: #333;
	color: #fff;
}

.settings-content {
	display: none;
	flex-direction: column;
	gap: 6px;
	position: absolute;
	top: 110%;
	right: 0;
	background: rgba(20, 20, 20, 0.95);
	border: 1px solid #444;
	padding: 10px;
	border-radius: 8px;
	z-index: 1000;
	min-width: 160px;
}

.settings-panel.open .settings-content {
	display: flex;
}

.toggle-btn {
	padding: 4px 10px;
	border-radius: 12px;
	background: #222;
	border: 1px solid #444;
	color: #aaa;
	cursor: pointer;
	font-size: 13px;
	text-align: left;
	transition: background 0.2s, color 0.2s;
}

.toggle-btn.active {
	background: #444;
	color: #fff;
}

/****************************
 *
 * Expander (Show set info)
 *
 ****************************/
.expander {
	width: 100%;
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 8px;
	margin-top: 8px;
	padding: 10px;
	position: relative;
	font-family: Verdana, Arial, sans-serif;
	color: #C8C8C8;
	box-shadow: 2px 2px 5px #000;
	animation: fadeIn 0.2s ease;
	overflow: hidden;
	transition: height 0.25s ease, opacity 0.25s ease;
}

.expander.hidden {
	display: none;
}

.expander.hidden {
	height: 0;
	opacity: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.expander-placeholder {
	width: 100%;
}


.expander-tail {
	position: absolute;
	top: -10px;
	left: 40px;
	/* dynamically set in JS */
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #333333;
}

.expander-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	color: #aaa;
	font-size: 16px;
	cursor: pointer;
	z-index: 2;
	line-height: 1;
}

.expander-close:hover {
	color: #fff;
}

.expander-gameinfo {
	padding-bottom: 16px;
}

/****************************
 *
 * Tooltips (Sets, Badges)
 *
 ****************************/
.set-tooltip,
.badge-tooltip {
	position: fixed;
	width: 390px;
	max-width: 400px;
	background: rgba(35, 35, 35, 0.97);
	color: #c8c8c8;
	font-family: Verdana, Arial, sans-serif;
	font-size: 14px;
	border: 1px solid #282828;
	border-radius: 6px;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
	padding: 10px;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.1s ease-in;
}

.icon-block.showtooltip .set-tooltip {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.set-tooltip.visible,
.badge-tooltip.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.tooltip-content {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	position: relative;
}

.tooltip-images {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	line-height: 0;
}

.tooltip-image-badge,
.tooltip-image-cover {
	width: 96px;
	height: auto;
	box-shadow: 1px 1px 3px #000;
	border: 1px solid #000;
	border-radius: 4px;
}

.tooltip-image-cover {
	background: #222;
}

.tooltip-info {
	flex: 1;
	min-width: 0;
	text-align: left;
	font-size: 0.75rem;
	line-height: 1.1rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	padding-right: 1.5rem;
}

.tooltip-title {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 4px;
	display: block;
}

.tooltip-icons {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	margin-bottom: 6px;
}

.tooltip-icons img {
	width: 16px;
	height: 16px;
}

.tooltip-stats {
	font-size: 0.7rem;
	line-height: 1rem;
}

.tooltip-stats span.label {
	font-weight: 700;
	color: #7f7f7f;
}

.tooltip-stats span.quote {
	font-weight: 700;
	color: #8166ac;
	font-style: italic;
}

.tooltip-stats .developed {
	color: #e9b664;
}

.tooltip-stats .revision {
	color: #ddd5eb;
}

.tooltip-stats .developer {
	color: #8764f1;
}

.tooltip-stats .developer:hover {
	color: #bfacfa;
}

.badge-tooltip .tooltip-image-badge {
	width: 64px;
	height: 64px;
}

.badge-tooltip .tooltip-info {
	font-size: 0.7rem;
	line-height: 1rem;
}

.badge-tooltip .tooltip-game {
	font-style: italic;
	opacity: 0.8;
	margin-top: 12px;
}

/* SCREENSHOT */
.screenshot {
	z-index: 0;
}

.screenshot:hover,
.screenshot:focus {
	-webkit-transform: scale(1.2);
	-moz-transform: scale(1.2);
	-ms-transform: scale(1.2);
	-o-transform: scale(1.2);
	transform: scale(1.2);
	z-index: 999;
	outline: 2px solid #fff;
	cursor: pointer;
}

/* SCREENSHOT */
.about-image {
	z-index: 0;
	max-width: 80%;
}

.about-image:hover,
.about-image:focus {
	-webkit-transform: scale(1.2);
	-moz-transform: scale(1.2);
	-ms-transform: scale(1.2);
	-o-transform: scale(1.2);
	transform: scale(1.2);
	z-index: 999;
	outline: 2px solid #857e7e;
}

/* Collection Images */
.row {
	display: flex;
	flex-wrap: wrap;
	padding: 0 4px;
}

.column {
	flex: 25%;
	max-width: 32%;
	padding: 0 2px;
}

.column img {
	margin-top: 4px;
	vertical-align: middle;
	width: 100%;
}

.inline-term {
	height: 19px;
	vertical-align: middle;
	float: left;
	border-width: 0 3px 0 0;
	border-color: transparent;
	border-style: solid;
}

#badge-layered-container {
	margin-top: 100px;
	height: 200px;
}

#badge-layered-container.empty {
	margin-top: 0;
	height: 0;
	display: none;
}

.badge-layers {
	position: relative;
	width: 64px;
	height: 64px;
	display: inline-block;
}

.badge-layers .layer {
	position: absolute;
	top: 0;
	left: 0;
	transition: transform 0.3s;
}

.badge-layers:hover .layer,
.badge-layers:focus .layer {
	transform: translateY(calc(8px * var(--i))) translateX(calc(-18px * var(--i)));
}

.badge-tooltip {
	position: absolute;
	display: none;
	border-radius: 6px;
	z-index: 1000;
	width: 400px;
	pointer-events: none;
	align-items: center;
	gap: 8px;
	top: 140px;
	left: 0px;
	right: 0;
	background-color: #232323;
	background-color: rgba(35, 35, 35, 1);
	text-align: center;
	font-size: 14px;
	border: 1px solid #2a2a2a;
	border-radius: 0 4px 4px 0;
	box-shadow: 2px 2px 5px #000;
	padding: 8px;
	padding-right: 0px;
	font-family: Verdana, Arial, sans-serif;
	color: #C8C8C8;
}

#badge-collage-container {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 1em 0;
	min-height: 100px;
	user-select: none;
}

.badge-collage-wrapper {
	position: relative;
	display: inline-block;
}

.badge-overlay {
	position: absolute;
	cursor: pointer;
	border: 0px solid transparent;
	transition: box-shadow 0.15s, outline 0.15s;
	pointer-events: auto;
	box-sizing: border-box;
	overflow: hidden;
	user-select: none;
}

.badge-overlay:hover,
.badge-overlay:focus {
	/*border: 2px solid transparent;
	border-image: linear-gradient(45deg, #b79423, #ffd700, #fff8dc, #ffd700, #b79423) 1;*/
	box-shadow: 0 0 8px rgba(255, 215, 0, 0.6),
		0 0 15px rgba(255, 215, 0, 0.4);
}

.badge-overlay:hover::before,
.badge-overlay:focus::before {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.badge-overlay::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(120deg,
			rgba(255, 255, 255, 0) 25%,
			rgba(255, 255, 255, 0.35) 45%,
			rgba(255, 255, 255, 0) 65%);
	transform: translateX(-100%) rotate(25deg);
}

.badge-overlay.shine::after {
	animation: shineSweep 0.60s forwards;
}

@keyframes shineSweep {
	100% {
		transform: translateX(100%) rotate(25deg);
	}
}

.badge-collage-img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	image-rendering: pixelated;
	user-select: none;
}

.tooltip-image-badge {
	-webkit-transform: rotate(0) scale(1);
	transform: rotate(0) scale(1);
	transition: transform 0.3s ease-in-out;
}

.tooltip-image-badge:hover,
.tooltip-image-badge:focus {
	animation-name: bounce2;
	-moz-animation-name: bounce2;
	-webkit-animation-iteration-count: 1;
	-moz-animation-iteration-count: 1;
	animation-iteration-count: 1;
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
}

@keyframes bounce2 {

	0%,
	100%,
	20%,
	50%,
	80% {
		-webkit-transform: translateY(0);
		-ms-transform: translateY(0);
		transform: translateY(0)
	}

	40% {
		-webkit-transform: translateY(-12px) rotate(-4deg);
		-ms-transform: translateY(-12px) rotate(-4deg);
		transform: translateY(-12px) rotate(-4deg)
	}

	60% {
		-webkit-transform: translateY(-6px) rotate(4deg);
		-ms-transform: translateY(-6px) rotate(4deg);
		transform: translateY(-6px) rotate(4deg)
	}
}

.loader {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.loader div {
	width: 10px;
	height: 20px;
	background-image: linear-gradient(#88B3ED, #1065DB);
	image-rendering: pixelated;
	animation: pulse 0.6s infinite alternate;
}

.loader div:nth-child(2) {
	animation-delay: 0.1s;
	background-image: linear-gradient(#88B3ED, #1065DB);
}

.loader div:nth-child(3) {
	animation-delay: 0.2s;
	background-image: linear-gradient(#88B3ED, #1065DB);
}

.loader div:nth-child(4) {
	animation-delay: 0.3s;
	background-image: linear-gradient(#E3C981, #CB9900);
}

.loader div:nth-child(5) {
	animation-delay: 0.4s;
	background-image: linear-gradient(#E3C981, #CB9900);
}

.loader div:nth-child(6) {
	animation-delay: 0.5s;
	background-image: linear-gradient(#E3C981, #CB9900);
}

.loader.pride div {
	width: 10px;
	height: 50px;
	background-image: linear-gradient(#e03033, #FE0002);
	image-rendering: pixelated;
	animation: pulse 0.6s infinite alternate;
}

.loader.pride div:nth-child(2) {
	animation-delay: 0.1s;
	background-image: linear-gradient(#ee6f00, #FF820F);
}

.loader.pride div:nth-child(3) {
	animation-delay: 0.2s;
	background-image: linear-gradient(#ffee00, #F6E600);
}

.loader.pride div:nth-child(4) {
	animation-delay: 0.3s;
	background-image: linear-gradient(#3ee066, #0fe032);
}

.loader.pride div:nth-child(5) {
	animation-delay: 0.4s;
	background-image: linear-gradient(#3b86d6, #0c71dd);
}

.loader.pride div:nth-child(6) {
	animation-delay: 0.5s;
	background-image: linear-gradient(#df40c7, #e40fc4);
}

@keyframes pulse {
	from {
		opacity: 0.2;
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		transform: scale(1.2);
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.debug {
	font-family: monospace;
	font-size: 0.75rem;
	color: #b87070;
	margin-top: 6px;
	padding-top: 4px;
}

/* Grid control layout */
.grid-controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.grid-controls-bar {
	position: static;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
	background: #1e1e1e;
	padding: 8px;
	border-bottom: 1px solid #333;
	opacity: 0.4;
	pointer-events: none;
}

.grid-controls-bar.revealed {
	opacity: 1.0;
	pointer-events: auto;
}

.grid-controls-bar.sticky {
	position: sticky;
	top: 0;
	z-index: 7000;
	background: #1e1e1e;
	border-radius: 12px;
}

.grid-controls-bar select,
.grid-controls-bar input,
.grid-controls-bar .settings-toggle {
	background: #222;
	color: #ddd;
	border: 1px solid #444;
	font-size: 14px;
	line-height: 1.2;
	height: 30px;
	padding: 0 8px;
	box-sizing: border-box;
}

.grid-controls-bar input[type="text"] {
	flex: 1;
	min-width: 140px;
}

.grid-controls-bar .settings-toggle {
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.grid-controls-bar .settings-toggle:hover {
	background: #333;
	color: #fff;
}

.controls-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.control-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.control-label {
	font-size: 13px;
	color: #aaa;
	font-style: italic;
}

.settings-panel {
	position: relative;
	margin-left: auto;
}

#lastUpdated {
	font-size: 13px;
	color: #645757;
	font-style: italic;
	float: right;
}

.clear-btn:hover {
	color: #fff;
}

.context-label {
	font-size: 13px;
	font-style: italic;
	color: #aaa;
	min-height: 1.5rem;
	flex-direction: row;
	/* put labels side-by-side */
	gap: 12px;
	margin-top: 6px;
}

.context-label .highlight {
	color: #ddd;
	font-weight: bold;
}

.controls-row {
	align-items: flex-end;
	/* align groups + settings nicely */
}

.settings-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: auto;
}

.hidden {
	display: none !important;
}

/* HOVERING ICONS */
.icon_hover {
	display: inline;
}

.icon_hover img {
	margin-top: 5px;
	margin-left: 3px;
	margin-right: 3px;
	top: 0;
}

.icon_hover:hover img {
	position: relative;
	transition: opacity 1s;
	transition: top 0.5s ease 0s;
	top: -3px;
	opacity: 1;
}