html,
body {
	margin: 0;
	width: 100%;
	min-height: 100%;
	background: #050508;
	color: #e8e8ee;
	font-family: Consolas, "Courier New", monospace;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
}

button,
.hud-link {
	box-sizing: border-box;
	border: 1px solid #777b8c;
	border-radius: 3px;
	background: #171923;
	color: #f3f3f7;
	font: inherit;
	padding: .45rem .6rem;
	text-decoration: none;
	cursor: none;
}

button:hover,
.hud-link:hover {
	background: #292d3c;
	border-color: #d6d8e4;
}

.mindrealm-hud {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: .55rem;
	flex-wrap: wrap;
	box-sizing: border-box;
	padding: .45rem .65rem;
	background: rgba(8, 9, 14, .96);
	border-bottom: 1px solid #343746;
}

.seed-item {
	max-width: min(46vw, 42rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mindrealm-shell {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 100%;
	height: var(--mindrealm-workspace-height, calc(100dvh - 4rem));
	margin: 0;
	padding: .5rem;
	overflow: hidden;
}

.screen-panel {
	position: relative;
	box-sizing: border-box;
	width: var(--mindrealm-view-width, min(100%, 960px));
	height: var(--mindrealm-view-height, auto);
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #000;
	border: 0;
	box-shadow: 0 0 30px rgba(0, 0, 0, .75), inset 0 0 0 1px #343746;
}

#mindrealm-canvas {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	cursor: none;
}

.mindrealm-click-regions {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.mindrealm-click-region {
	position: absolute;
	left: calc(40 * 100% / 60);
	top: calc(var(--region-row) * 100% / 40);
	width: calc(19 * 100% / 60);
	height: calc(1 * 100% / 40);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: transparent;
	opacity: 0;
	pointer-events: auto;
	cursor: none;
}

.mindrealm-click-region:hover,
.mindrealm-click-region:focus,
.mindrealm-click-region:active {
	background: transparent;
	border: 0;
	opacity: 0;
	outline: 0;
}

.mindrealm-click-region:disabled {
	pointer-events: none;
}

#mindrealm-load-status {
	position: absolute;
	left: .5rem;
	bottom: .35rem;
	z-index: 3;
	font-size: .72rem;
	color: #9295a3;
	pointer-events: none;
}

.mindrealm-accessible-status {
	position: fixed;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	.seed-item {
		max-width: 70vw;
	}

	.mindrealm-shell {
		padding: .25rem;
	}
}
