:root {
	--af-boot-black: #020202;
	--af-boot-white: #f7f7f2;
	--af-boot-muted: #8c8c87;
}

html.af-boot-active,
html.af-boot-active body {
	overflow: hidden;
}

.af-boot-seen .af-boot-screen {
	display: none;
}

.af-boot-screen {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	background: var(--af-boot-black);
	color: var(--af-boot-white);
	font-family: "Courier New", Courier, monospace;
	opacity: 1;
	transition: opacity 320ms steps(5, end), visibility 320ms linear;
}

.af-boot-screen.is-leaving {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.af-boot-screen::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0, rgba(255,255,255,.022) 1px, transparent 1px, transparent 4px);
	mix-blend-mode: screen;
}

.af-boot-screen__panel {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	width: min(82vw, 430px);
}

.af-boot-screen__logo {
	display: block;
	width: min(58vw, 300px);
	height: auto;
	margin: 0 0 42px;
	filter: grayscale(1) contrast(1.08);
}

.af-boot-screen__status {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 16px;
	width: 100%;
	font-size: 11px;
	letter-spacing: .13em;
}

.af-boot-screen__track {
	grid-column: 1 / -1;
	height: 7px;
	border: 1px solid #4f4f4c;
	background: #111;
}

.af-boot-screen__track span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--af-boot-white);
	transition: width 140ms steps(4, end);
}

.af-boot-screen__percent {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	color: var(--af-boot-muted);
	font-size: 10px;
}

.af-boot-screen__enter {
	margin-top: 50px;
	padding: 9px 22px;
	border: 1px solid #5e5e59;
	background: transparent;
	color: var(--af-boot-white);
	font: inherit;
	font-size: 11px;
	letter-spacing: .18em;
	cursor: pointer;
}

.af-boot-screen__enter:hover,
.af-boot-screen__enter:focus-visible {
	background: var(--af-boot-white);
	color: var(--af-boot-black);
	outline: none;
}

@media (max-width: 600px) {
	.af-boot-screen__panel { width: min(78vw, 340px); }
	.af-boot-screen__logo { width: min(64vw, 250px); margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.af-boot-screen { transition-duration: 80ms; }
	.af-boot-screen__track span { transition: none; }
}
