/*
=======================================
by cOR (https://cor.sh/)
=======================================
This code is protected by copyright
=======================================
*/

@font-face {
	font-family: "RedditSans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('build/RedditSans-ARegular.woff2') format("woff2");
}

:root {
	box-sizing: border-box;
	-webkit-text-size-adjust: none;
	cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" d="M4.5.79v22.42l6.56-6.57h9.29L4.5.79z"></path></svg>'), auto;
}

*, *:before, *:after {
	cursor: inherit;
	box-sizing: inherit;
}

body {
	font: normal 20px/1.4 RedditSans, Arial, system-ui, sans-serif;
	margin: 0;
	display: flex;
	flex-direction: column;
	color: #fff;
	background-color: #030d13;
	min-height: 100vh;
	min-height: 100dvh;
}

::selection {
	background: #074465;
	color: #fff;
}

a {
	color: inherit;
	text-decoration: none;

	&:hover {
		cursor: pointer;
	}
}

main {
	margin: auto;
	padding: 20px;
	gap: 30px;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: flex-start;
	max-width: 500px;
}

.main-name {
	font-size: 30px;
	display: block;
	margin-bottom: 5px;
}

.links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.link {
	background-color: #030d13;
	border: 2px solid #074465;
	display: flex;
	align-items: center;
	gap: 5px;
	border-radius: 30px;
	padding: 10px 12px;
	line-height: 1;
	position: relative;
	transition: all .15s cubic-bezier(0.3, 1.5, 0.6, 1);
	z-index: 1;

	&:hover {
		text-decoration: none;
		border-color: #fff;
		background-color: #074465;
		transform: scale(1.2) rotate(-3deg);
		z-index: 2;
	}

	svg {
		width: 1em;
		height: 1em;
	}

	&[aria-label]:before {
		visibility: hidden;
		position: absolute;
		white-space: nowrap;
		content: attr(aria-label);
		top: -2em;
		left: 50%;
		content: attr(aria-label);
		background: blue;
		border: 2px solid #fff;
		padding: 5px 12px;
		border-radius: 30px;
		font-size: 14px;
		color: #fff;
		pointer-events: none;
		transform-origin: 0 4em;
		transform: scale(0) translateX(-50%) rotate(0);
		transition: all .15s cubic-bezier(0.3, 1.5, 0.6, 1);
	}

	&[aria-label]:hover:before {
		visibility: visible;
		transform: scale(1) translateX(-50%) rotate(6deg);
	}
}

.steamdb {
	color: #ddd;
	font-size: 14px;

	a {
		text-decoration: underline;

		&:hover {
			color: #fff;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.link,
	.link:before {
		transform: none !important;
		transition: none !important;
	}
}