* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100%;
	padding: 2rem;
	padding-top: calc(2rem + env(safe-area-inset-top));
	padding-right: calc(2rem + env(safe-area-inset-right));
	padding-bottom: calc(2rem + env(safe-area-inset-bottom));
	padding-left: calc(2rem + env(safe-area-inset-left));
	background: #0a0c0a;
	color: #00ff6a;
	font-family: "Courier New", monospace;
	font-size: 16px;
	line-height: 1.5;
}

main {
	padding: 0;
	max-width: 800px;
}

h1, h2, p {
	margin: 0;
	font-size: inherit;
}

h1, h2 {
	font-weight: 700;
}

a {
	color: inherit;
	text-decoration: underline;
}

*::selection {
	background: #00ff6a;
	color: #0a0c0a;
}

.typed-char {
	visibility: hidden;
}

.typed-char.visible {
	visibility: visible;
}

.cursor {
	display: inline-block;
	width: 0.6ch;
	height: 1em;
	background: #00ff6a;
	margin-left: 2px;
	animation: blink 1s steps(1) infinite;
	vertical-align: baseline;
}

@keyframes blink {
	50% { opacity: 0; }
}
#term-output {
	margin-top: 1rem;
	white-space: pre-wrap;
}

.term-line {
	line-height: 1.4;
	margin: 0.25rem 0;
}

#prompt-line {
	display: flex;
	align-items: center;
	gap: 0.5ch;
	margin-top: 0.5rem;
	min-height: 1.4em;
}

#prompt-line .prompt {
	color: #00ff6a;
}

#term-buffer {
	min-width: 1ch;
}

.term-cursor {
	display: inline-block;
	width: 0.6ch;
	height: 1em;
	background: #00ff6a;
	animation: blink 1s steps(1) infinite;
}

.term-hint {
	opacity: 0.6;
	margin-top: 0.25rem;
}

#term-focus {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
	left: 0;
	top: 0;
}
