:root {
	--bg: #12151c;
	--text: #d6d9e0;
	--text-dim: #7b8494;
	--user-color: #f5a623;
	--host-color: #4fd67a;
	--link-color: #5fb3f5;
	--error-color: #f56060;
	--border: #262b36;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: var(--bg);
}

body {
	font-family: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
}

.terminal {
	height: 100vh;
	width: 100vw;
	padding: 32px 40px;
	display: flex;
	flex-direction: column;
}

/* ---------- banner ---------- */

.banner {
	flex-shrink: 0;
	margin-bottom: 20px;
}

.ascii {
	margin: 0 0 14px 0;
	font-size: 12px;
	line-height: 1.2;
	color: var(--host-color);
	white-space: pre;
}

.welcome-line {
	margin: 0;
	color: var(--text);
}

.cmd-hint {
	color: var(--link-color);
	text-decoration: underline dotted;
}

/* ---------- output / scrollback ---------- */

.screen {
	flex: 1;
	overflow-y: auto;
	padding-right: 8px;
}

.screen::-webkit-scrollbar {
	width: 8px;
}
.screen::-webkit-scrollbar-thumb {
	background: var(--border);
}
.screen::-webkit-scrollbar-track {
	background: transparent;
}

.line {
	white-space: pre-wrap;
	margin: 0 0 4px 0;
}

.line.command .user {
	color: var(--user-color);
}

.line.command .host {
	color: var(--host-color);
}

.line.output {
	color: var(--text);
}

.line.output.dim {
	color: var(--text-dim);
}

.line.error {
	color: var(--error-color);
}

.line a {
	color: var(--link-color);
	text-decoration: underline dotted;
}

ul.output-list {
	margin: 4px 0 4px 0;
	padding-left: 24px;
}

/* ---------- input row ---------- */

.input-row {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	margin-top: 10px;
}

.prompt {
	flex-shrink: 0;
	margin-right: 8px;
}

.prompt .user {
	color: var(--user-color);
}

.prompt .host {
	color: var(--host-color);
}

.prompt .at,
.prompt .colon {
	color: var(--text-dim);
}

#command-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: var(--text);
	font-family: inherit;
	font-size: inherit;
	caret-color: var(--text);
}

/* --------- boot screen ----------- */

#boot-screen {
	position: fixed;
	inset: 0;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	font-family: inherit;
	font-size: 15px;
	color: var(--text);
	z-index: 10;
	transition: opacity 0.4s ease;
	align-items: center;
}