@font-face {
	font-family: "Roxblox Pixel";
	src: url("/fonts/roxbloxPixelRegular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roxblox Pixel";
	src: url("/fonts/roxbloxPixelBold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--top: #0b0b0e;
	--bottom: #17171d;
	--card: rgb(20 20 26 / 0.8);
	--field: rgb(8 8 11 / 0.85);
	--stroke: rgb(255 255 255 / 0.15);
	--stroke-hover: rgb(255 255 255 / 0.85);
	--stroke-active: rgb(255 255 255 / 0.6);
	--line: rgb(255 255 255 / 0.06);
	--white: #ffffff;
	--white-shadow: #3f3f3f;
	--grey: #aaaaaa;
	--grey-shadow: #2a2a2a;
	--dim: #74747e;
	--dim-shadow: #1d1d20;
	--green: #55ff55;
	--green-shadow: #153f15;
	--red: #ff5555;
	--red-shadow: #3f1515;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--top);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--white);
	font-family: "Roxblox Pixel", system-ui, sans-serif;
	font-size: 16px;
	line-height: 24px;
	font-synthesis: none;
	-webkit-font-smoothing: none;
	text-shadow: 0.125em 0.125em 0 var(--white-shadow);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, var(--top), var(--bottom));
}

main {
	flex: 1;
}

img {
	text-shadow: none;
}

::selection {
	background: rgb(255 255 255 / 0.25);
}

:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 2px;
}

.wrap {
	width: min(1080px, 100% - 32px);
	margin-inline: auto;
}

.bar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgb(11 11 14 / 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 2px solid var(--line);
}

.bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 64px;
}

.brand img {
	display: block;
}

.nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.card {
	position: relative;
	background: var(--card);
	border: 2px solid var(--stroke);
}

.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 16px;
	background: var(--card);
	border: 2px solid var(--stroke);
	color: var(--white);
	font: inherit;
	line-height: 24px;
	text-decoration: none;
	text-shadow: inherit;
	white-space: nowrap;
	cursor: pointer;
	transition:
		border-color 0.15s,
		transform 0.15s;
}

.button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0));
	opacity: 0;
	transition: opacity 0.15s;
	pointer-events: none;
}

.button:hover {
	border-color: var(--stroke-hover);
	transform: translateY(-1px);
}

.button:hover::before {
	opacity: 0.28;
}

.button:active {
	border-color: var(--stroke-active);
	transform: none;
}

.button:active::before {
	opacity: 0.16;
}

.button.primary {
	border-color: rgb(255 255 255 / 0.55);
}

.button.primary::before {
	opacity: 0.16;
}

.button.primary:hover {
	border-color: var(--stroke-hover);
}

.button.primary:hover::before {
	opacity: 0.32;
}

.button.big {
	height: 55px;
	padding: 0 24px;
	font-size: 24px;
	line-height: 33px;
}

.field {
	height: 40px;
	min-width: 0;
	padding: 0 12px;
	background: var(--field);
	border: 2px solid var(--stroke);
	border-radius: 0;
	color: var(--white);
	font: inherit;
	line-height: 24px;
	text-shadow: inherit;
	outline: none;
	appearance: none;
	transition: border-color 0.15s;
}

.field::placeholder {
	color: var(--dim);
	text-shadow: 0.125em 0.125em 0 var(--dim-shadow);
}

.field::-webkit-search-cancel-button {
	appearance: none;
}

.field:hover {
	border-color: rgb(255 255 255 / 0.35);
}

.field:focus {
	border-color: var(--stroke-hover);
}

.search .field {
	width: 220px;
}

.search.busy .field,
.search.busy .button {
	opacity: 0.6;
	cursor: progress;
}

.search.big {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin-top: 16px;
}

.search.big .field {
	flex: 1 1 260px;
	max-width: 380px;
	height: 55px;
	font-size: 24px;
	line-height: 33px;
}

.search.big .button {
	height: 55px;
	padding: 0 24px;
	font-size: 24px;
	line-height: 33px;
}

.heading {
	margin: 0;
	font-size: 32px;
	line-height: 44px;
	font-weight: 400;
}

.sub,
.lead,
.username,
.presence,
.joined,
.feature .text,
.stat .label {
	margin: 0;
	color: var(--grey);
	text-shadow: 0.125em 0.125em 0 var(--grey-shadow);
}

.hero {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 88px 0 56px;
	text-align: center;
}

.hero-logo {
	margin: 8px 0 0;
	line-height: 0;
}

.hero-logo img {
	width: min(480px, 100%);
	height: auto;
}

.tagline {
	margin: 12px 0 0;
	font-size: 32px;
	line-height: 44px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	padding: 24px 0;
}

.feature {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 24px;
}

.feature .icon {
	width: 64px;
	height: 64px;
	image-rendering: pixelated;
}

.feature .title {
	margin: 8px 0 0;
	font-size: 24px;
	line-height: 33px;
	font-weight: 400;
}

.lookup,
.message {
	display: grid;
	justify-items: center;
	gap: 8px;
	margin: 32px 0 72px;
	padding: 40px 24px;
	text-align: center;
}

.message {
	margin-top: 72px;
}

.message > .button {
	margin-top: 16px;
}

.profile {
	display: grid;
	grid-template-columns: 340px 1fr;
	align-items: start;
	gap: 24px;
	padding: 48px 0 72px;
}

.avatar {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 42%, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0) 62%),
		var(--card);
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.avatar .placeholder {
	width: 50%;
	height: auto;
	opacity: 0.5;
}

.details {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.identity {
	display: grid;
	gap: 4px;
}

.name-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.display-name {
	margin: 0;
	font-size: 48px;
	line-height: 60px;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.tag {
	padding: 0 8px;
	background: rgb(0 0 0 / 0.4);
	border: 2px solid color-mix(in srgb, currentColor 45%, transparent);
}

.rank-owner {
	color: #ffcc33;
	text-shadow: 0.125em 0.125em 0 #3f330c;
}

.rank-admin {
	color: #ff4040;
	text-shadow: 0.125em 0.125em 0 #3f1010;
}

.rank-mod {
	color: #4d8fff;
	text-shadow: 0.125em 0.125em 0 #13233f;
}

.rank-creator {
	color: #ff8585;
	text-shadow: 0.125em 0.125em 0 #3f2121;
}

.presence {
	display: flex;
	align-items: center;
	gap: 8px;
}

.presence.online {
	color: var(--green);
	text-shadow: 0.125em 0.125em 0 var(--green-shadow);
}

.dot {
	width: 10px;
	height: 10px;
	background: var(--green);
	box-shadow: 2px 2px 0 var(--green-shadow);
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.stat {
	display: grid;
	gap: 4px;
	padding: 16px 20px;
}

.stat .value {
	font-size: 32px;
	line-height: 44px;
	font-variant-numeric: tabular-nums;
}

.ratio {
	display: grid;
	gap: 10px;
	padding: 16px 20px;
}

.track {
	display: flex;
	height: 12px;
	background: rgb(255 255 255 / 0.06);
	overflow: hidden;
}

.track .kills {
	background: var(--green);
}

.track .deaths {
	background: var(--red);
}

.ratio-labels {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.green {
	color: var(--green);
	text-shadow: 0.125em 0.125em 0 var(--green-shadow);
}

.red {
	color: var(--red);
	text-shadow: 0.125em 0.125em 0 var(--red-shadow);
}

.dim {
	color: var(--dim);
	text-shadow: 0.125em 0.125em 0 var(--dim-shadow);
}

.empty {
	padding: 24px;
}

.empty p {
	margin: 0;
	color: var(--grey);
	text-shadow: 0.125em 0.125em 0 var(--grey-shadow);
}

.details .actions {
	justify-content: flex-start;
	margin-top: 4px;
}

.leaderboard {
	display: grid;
	gap: 8px;
	padding: 48px 0 72px;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 8px;
}

.board {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.row {
	display: grid;
	grid-template-columns: 48px 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 10px 20px;
	color: inherit;
	text-decoration: none;
	transition:
		border-color 0.15s,
		transform 0.15s;
}

.row:hover {
	border-color: var(--stroke-hover);
	transform: translateY(-1px);
}

.place {
	font-size: 24px;
	line-height: 33px;
	text-align: right;
	color: var(--grey);
	text-shadow: 0.125em 0.125em 0 var(--grey-shadow);
}

.place.top {
	color: var(--white);
	text-shadow: 0.125em 0.125em 0 var(--white-shadow);
}

.head {
	width: 40px;
	height: 40px;
	background: rgb(255 255 255 / 0.05);
}

.who {
	display: grid;
	min-width: 0;
}

.who .name,
.who .handle {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.handle {
	color: var(--grey);
	text-shadow: 0.125em 0.125em 0 var(--grey-shadow);
}

.score {
	font-size: 24px;
	line-height: 33px;
	font-variant-numeric: tabular-nums;
}

.footer {
	padding: 24px 0 40px;
	border-top: 2px solid var(--line);
	color: var(--dim);
	text-shadow: 0.125em 0.125em 0 var(--dim-shadow);
}

.footer p {
	margin: 0;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}

.footer-links {
	display: flex;
	gap: 20px;
}

.footer-links a {
	color: var(--grey);
	text-decoration: none;
	text-shadow: 0.125em 0.125em 0 var(--grey-shadow);
}

.footer-links a:hover {
	color: var(--white);
	text-shadow: 0.125em 0.125em 0 var(--white-shadow);
}

.document {
	max-width: 780px;
	margin: 48px auto 72px;
	padding: 32px 40px 24px;
}

.document .updated {
	margin: 4px 0 24px;
	color: var(--grey);
	text-shadow: 0.125em 0.125em 0 var(--grey-shadow);
}

.document h2 {
	margin: 32px 0 8px;
	font-size: 24px;
	line-height: 33px;
	font-weight: 400;
}

.document p,
.document li {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 26px;
	color: #c9c9d1;
	text-shadow: none;
	-webkit-font-smoothing: auto;
}

.document p {
	margin: 0 0 12px;
}

.document ul {
	margin: 0 0 12px;
	padding-left: 22px;
}

.document li {
	margin: 4px 0;
}

.document a {
	color: var(--white);
	text-underline-offset: 3px;
}

.document strong {
	color: var(--white);
	font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
	.track {
		animation: reveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	@keyframes reveal {
		from {
			clip-path: inset(0 100% 0 0);
		}

		to {
			clip-path: inset(0 0 0 0);
		}
	}
}

@media (max-width: 760px) {
	.profile {
		grid-template-columns: 1fr;
		padding-top: 24px;
	}

	.avatar {
		width: min(320px, 100%);
		justify-self: center;
	}

	.identity {
		justify-items: center;
		text-align: center;
	}

	.name-row,
	.presence,
	.details .actions {
		justify-content: center;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.display-name {
		font-size: 32px;
		line-height: 44px;
	}

	.hero {
		padding-top: 56px;
	}

	.tagline {
		font-size: 24px;
		line-height: 33px;
	}
}

@media (max-width: 560px) {
	.bar .search {
		display: none;
	}

	.brand img {
		width: 96px;
		height: auto;
	}

	.nav {
		gap: 8px;
	}

	.bar .button {
		padding: 0 10px;
	}

	.row {
		grid-template-columns: 32px 32px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 8px 12px;
	}

	.head {
		width: 32px;
		height: 32px;
	}

	.place,
	.score {
		font-size: 16px;
		line-height: 24px;
	}

	.features {
		grid-template-columns: 1fr;
	}

	.document {
		margin-top: 24px;
		padding: 24px 20px 12px;
	}

	.button.big,
	.search.big .button {
		font-size: 16px;
		line-height: 24px;
		height: 48px;
	}

	.search.big .field {
		font-size: 16px;
		line-height: 24px;
		height: 48px;
	}
}
