:root {
	color-scheme: dark;
	font-family: "Pixelon", sans-serif;
	background: #181828;
	color: #f5edff;
}

@font-face {
	font-family: "Pixelon";
	src: url("../fonts/pixelon/Pixelon.otf") format("opentype"),
		url("../fonts/pixelon/Pixelon.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	position: relative;
	isolation: isolate;
	display: grid;
	min-height: 100vh;
	margin: 0;
	padding: 24px;
	place-items: center;
	background: #181828;
}

body::before {
	position: fixed;
	inset: -15px;
	z-index: -1;
	background: url("../images/backgrounds/valenberg/space.gif") center/cover no-repeat;
	content: "";
	filter: blur(5px);
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 3px solid #c397ff;
	outline-offset: 4px;
}

.page-shell {
	width: min(100%, 720px);
}

.page-card {
	padding: clamp(24px, 6vw, 56px);
	border: 1px solid rgba(224, 184, 255, .24);
	border-radius: 15px;
	background:
		radial-gradient(ellipse at 100% 100%, rgba(116, 49, 171, .22), transparent 58%),
		linear-gradient(145deg, rgba(42, 16, 69, .92), rgba(17, 15, 36, .9));
	box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 12px 30px rgba(12, 4, 25, .3);
	backdrop-filter: blur(9px);
	text-align: center;
}

.page-card h1 {
	margin: 0 0 16px;
	color: #f5edff;
	font-size: clamp(1.7rem, 7vw, 3rem);
	line-height: 1.2;
}

.page-copy {
	max-width: 56ch;
	margin: 0 auto;
	color: rgba(238, 232, 247, .78);
	font-size: clamp(.8rem, 2.5vw, .95rem);
	line-height: 1.8;
}

.page-action {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	padding: 10px 18px;
	border: 1px solid rgba(224, 184, 255, .32);
	border-radius: 8px;
	background: rgba(141, 90, 255, .14);
	color: #e6d5ff;
	font-size: .75rem;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.page-action:hover {
	background: rgba(141, 90, 255, .36);
	border-color: rgba(224, 184, 255, .55);
	color: #fff;
}

.page-image {
	display: block;
	width: min(100%, 520px);
	max-height: 60vh;
	margin: 24px auto 0;
	border: 1px solid rgba(224, 184, 255, .2);
	border-radius: 10px;
	object-fit: contain;
}

.error-code {
	margin: 0 0 12px;
	color: #c397ff;
	font-size: clamp(5rem, 24vw, 10rem);
	font-weight: 400;
	letter-spacing: -.08em;
	line-height: .9;
	text-shadow: 0 0 24px rgba(141, 90, 255, .36);
}

.page-card .error-title {
	margin-top: 20px;
}

.support-card h1 {
	margin-bottom: 8px;
}

.support-time {
	display: grid;
	gap: 4px;
	margin: 24px 0;
	color: rgba(238, 232, 247, .7);
	font-size: .72rem;
}

.support-time span:first-child {
	color: #e6d5ff;
	font-size: clamp(1.6rem, 7vw, 2.5rem);
}

.support-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.support-options a {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	border: 1px solid rgba(224, 184, 255, .24);
	border-radius: 10px;
	background: rgba(9, 8, 24, .3);
	color: #f5edff;
	font-size: .8rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.support-options a:hover {
	transform: translateY(-2px);
	border-color: rgba(224, 184, 255, .55);
	background: rgba(141, 90, 255, .24);
}

.support-options img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.support-greeting {
	min-height: 1.5em;
	margin: 20px 0 0;
	color: rgba(238, 232, 247, .78);
	font-size: .78rem;
}

.support-card .page-action {
	margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 420px) {
	.support-options {
		grid-template-columns: 1fr;
	}
}
