* { box-sizing: border-box; }
html, body { margin: 0; }
body{
	font-family: sans-serif;
	background: radial-gradient(900px 500px at 10% 10%, rgba(45,212,191,0.16), transparent 80%),
		radial-gradient(800px 600px at 90% 20%, rgba(139,92,246,0.16), transparent 80%),
		radial-gradient(900px 600px at 40% 90%, rgba(59,130,246,0.12), transparent 75%),
		#0b0f19;
	color: rgba(255, 255, 255, 0.86);
	padding: 1rem;
	background-attachment: fixed;
	color-scheme: dark;
}
#root{
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.container{
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 1rem;
	padding: 1rem;
	box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

header{
	position: sticky;
	z-index: 5;
	top: 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	backdrop-filter: blur(5px);
}
header .left-button{
	color: inherit;
	background: transparent;
	backdrop-filter: none;
	text-decoration: inherit;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.2rem;
}
header .left-button img {
	height: 2rem;
	user-select: none;
}

nav{
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: auto;
	scrollbar-width: thin;
	padding: 1px 0;
	font-size: 14px;
	margin-left: auto;
}
.button{
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.86);
	padding: 10px 14px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 100%;
	line-height: 100%;
	user-select: none;
}
.button:hover:not(:disabled){
	background: rgba(255,255,255,0.08);
	border-color: rgba(255,255,255,0.12);
	transform: translateY(-1px);
}
.button:active,
.button:focus:not(:disabled),
.button.active{
	outline: none;
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.16);
}
.button:disabled{
	pointer-events: none;
}
.tab-btn{
	border: 1px solid transparent;
	border-radius: 100px;
}

.shine{
	position: relative;
	overflow: hidden;
}
.shine:before{
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: all 0.6s ease;
}
.shine:hover:before{
	left: 100%;
}

.mod{
	background: rgba(255,255,255,0.05);
	border-radius: 0.5rem;
	border: 2px solid #33373f;
	cursor: pointer;
	transition: all 0.15s ease;
	overflow: hidden;
}
.mod:hover{
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.10);
}

#mods-search{
	font-size: 14px;
	transition: 0.3s;
	color: inherit;
}
#mods-search:focus{
	outline: none;
	border-color: rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.1);
}

#mods-list{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 150px;
	gap: 10px;
	padding: 0.5rem;
}
#mods-list .mod{
	display: grid;
	grid-template-rows: 1fr auto;
	white-space: nowrap;
	gap: 4px;
	width: 100%;
}
#mods-list .mod:hover{
	transform: translateY(-1px);
}
#mods-list .mod img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	overflow: hidden;
	user-select: none;
}
#mods-list .mod span{
	padding-bottom: 5px;
	padding-left: 5px;
	padding-right: 5px;
	text-overflow: ellipsis;
	overflow: hidden;
	text-align: center;
}
#stats-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.5rem;
}
#stats-list .mod{
	display: grid;
	grid-template-columns: 84px 1fr auto;
	align-items: center;
	gap: 10px;
	padding-right: 10px;
}
#stats-list .mod img{
	height: 64px;
	width: 100%;
	object-fit: cover;
	user-select: none;
}

.popup{
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	background: rgba(0, 0, 0, 0.5);
	animation: popup-overlay-enter 0.35s ease both;
}
.popup.hidden{
	animation: popup-overlay-exit 0.35s ease both;
}
.popup-content{
	background: rgba(100,100,100,0.25);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: auto;
	max-height: 95dvh;
	max-width: 60dvw;
	min-width: 40dvw;
	gap: 1rem;
	backdrop-filter: blur(10px);
	will-change: transform, opacity;
	animation: popup-content-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.popup.hidden .popup-content{
	animation: popup-content-exit 0.35s ease both;
}
.image-container{
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.popup-content img {
	max-height: 100%;
	max-width: 100%;
	border-radius: 10px;
	user-select: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.mod-description{
	text-wrap: balance;
	text-align: center;
}
.mod-description ul{
	margin: 0;
	text-align: left;
}
.mod-description hr{
	width: 100%;
}
.close {
	position: absolute;
	font-size: 24px;
	top: 8px;
	right: 6px;
	color: red;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.86);
	border-radius: 50%;
	transition: 0.12s;
}
.close:hover{
	transform: rotate(90deg);
}
.version{
	padding: 4px 10px;
	border-radius: 8px;
}

select{
	border-right: 8px solid transparent !important;
	font-size: 14px !important;
	padding: 8px 10px !important;
	order: 1;
}
select option{
	background: #2e2f40;
}
table {
	border-collapse: collapse;
}
table td, table caption{
	padding: 5px 10px;
	white-space: nowrap;
}
.row {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	align-items: flex-start;
}
.line {
	display: flex;
    flex-direction: column;
    align-items: center;
	gap: 1rem;
}
.stat-card {
	padding: 1em 1.5em;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	user-select: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}
.stat-card >*:first-child{
	font-size: 1.5em;
	font-weight: bold;
	letter-spacing: 0.1em;
}
.stat-card >*:last-child{
	font-size: 1em;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.home_image{
	width: 560px;
	height: auto;
	max-width: 100%;
	border-radius: 0.5rem;
	user-select: none;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 1rem;
	width: 100%;
}
.feature {
	display: grid;
	grid-template-rows: auto 1fr;
	transition: all 0.25s ease;
}
.feature i{
	transform: translateY(50%);
	margin: auto;
	width: 4em;
	height: 4em;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	background: linear-gradient(to right, #06BFFF, #2B74FF);
	border: 1px solid rgba(59,130,246,0.35);
	color: inherit;
	font-size: 1em;
	transition: all 0.25s ease;
	z-index: 1;
}
.feature .feature-header{
	font-size: 1.1em;
	font-weight: bold;
}
.feature .feature-block{
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	padding-top: 3em;

	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	position: relative;
	overflow: hidden;
}
.feature .feature-block:before{
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: all 0.6s ease;
}
.feature .feature-block:hover:before{
	left: 100%;
}
.feature:hover{
	transform: translateY(-4px);
	border-color: rgba(124,196,255,0.45);
}
.feature:hover i{
	border-color: rgba(124,196,255,0.55);
	box-shadow: 0 0 10px #7cc4ff;
}

.card-page{
	min-height: 80dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

.ba-slider{
	position: relative;
	height: 75dvh;
	border-radius: 1rem;
	overflow: hidden;
}
.ba-image{
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: left;
	user-select: none;
}
.ba-holder{
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 50%;
	overflow: hidden;
}
.ba-divider{
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 100%;
	width: 40px;
	cursor: ew-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: all;
	touch-action: none;
	user-select: none;
}
.ba-divider::after {
	content: '';
	width: 2px;
	background: rgba(255, 255, 255, 0.8);
	height: 100%;
	display: block;
}
.ba-divider i{
	position: absolute;
	z-index: 1;
	color: #fff;
	padding: 10px;
	background: rgba(22, 26, 33, 0.7);
	border-radius: 100%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-parallax-card{
	position: relative;
	height: 100dvh;
	width: 100%;
	overflow: hidden;
	background: radial-gradient(rgb(50, 150, 255, 0.4), transparent 50%);
}
.parallax-img{
	position: absolute;
	object-fit: cover;
	pointer-events: none;
	will-change: transform;
}
.parallax-bg{
	width: 130%;
	height: 130%;
	top: -15%;
	left: -15%;
	z-index: 2;
}
.parallax-fg{
	width: 116%;
	height: 116%;
	top: -8%;
	left: -8%;
	z-index: 1;
}
.parallax-content{
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.scroll-parallax-card:after{
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.6) 100%);
	pointer-events: none;
	z-index: 3;
}

.reveal {
	opacity: 0;
	visibility: hidden;
	will-change: opacity, transform;
}
.reveal.visible {
	opacity: 1;
	visibility: visible;
	animation: reveal-enter 0.55s ease backwards;
	animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-enter {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes reveal-exit {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(16px) scale(0.985);
	}
}

@keyframes popup-overlay-enter {
	from {
		background: rgba(0, 0, 0, 0);
	}
	to {
		background: rgba(0, 0, 0, 0.5);
	}
}
@keyframes popup-overlay-exit {
	from {
		background: rgba(0, 0, 0, 0.5);
	}
	to {
		background: rgba(0, 0, 0, 0);
	}
}
@keyframes popup-content-enter {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes popup-content-exit {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(18px) scale(0.985);
	}
}

.img-loading {
	background: linear-gradient(
		90deg,
		#eee 25%,
		#ddd 50%,
		#eee 75%
	);
	background-size: 200% 100%;
	animation: skeleton-loading 1.2s infinite;
}
@keyframes skeleton-loading {
	from { background-position: 200% 0 }
	to { background-position: -200% 0 }
}

.mobile-font-size{
	font-size: 18px;
}

@media (max-width: 1024px) {
	.home_image{
		width: 480px;
	}
	.home_image_block{
		order: -1;
	}
}
@media (max-width:768px){
	.scroll-parallax-card{
		height: 80dvh;
	}
}
@media (max-width: 600px) {
	#mods-list {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 140px;
	}
	select{
		order: 0;
	}
	nav{
		margin-left: 0;
	}
	.image-container{
		height: auto;
		min-height: fit-content;
		max-height: 300px;
		overflow: hidden;
		border-radius: 10px;
	}
	.mobile-font-size{
		font-size: 14px;
	}
	.popup-content{
		max-width: 95dvw;
	}
	.ba-slider{
		height: auto;
	}
	.card-page{
		min-height: 70dvh;
	}
	.features-grid{
		grid-template-columns: 1fr;
	}
	.feature {
		grid-template-rows: 1fr;
		grid-template-columns: auto 1fr;
		gap: 1em;
		align-items: center;
		transition: all 0.25s ease;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
		border: 1px solid rgba(255, 255, 255, 0.10);
		border-radius: 1rem;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
		padding: 1em;
	}
	.feature .feature-block{
		background: transparent;
		border: none;
		box-shadow: none;
		padding: 0;
		border-radius: 0;
	}
	.feature i{
		transform: none;
		width: 2.5em;
		height: 2.5em;
		border-radius: 0.6em;
		color: #7cc4ff;
		background: rgba(59, 130, 246, 0.18);
	}
	.feature .feature-block:before{
		background: none;
	}
	.feature{
		position: relative;
		overflow: hidden;
	}
	.feature:before{
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
		transition: all 0.6s ease;
	}
	.feature:hover:before{
		left: 100%;
	}
	.feature:hover i{
		transform: scale(1.08) rotate(-4deg);
		background: #00bdff;
		color: #fff;
	}
}
