:root {
	color-scheme: dark;
	font-family: "Segoe UI", sans-serif;
	background: #101216;
	color: #e8e4d9;
}

html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
}

#hud {
	position: fixed;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	gap: 1.25rem;
	align-items: center;
	padding: 0.5rem 0.75rem;
	background: rgba(12, 14, 18, 0.82);
}

#overlay {
	position: fixed;
	inset: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	background: #101216;
}

#overlay[hidden], #hud[hidden] {
	display: none !important;
}

.panel {
	width: min(420px, 92vw);
	background: #1a1e26;
	border: 1px solid #2c3340;
	padding: 1.25rem;
}

label, .character-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0.5rem 0;
}

input, select, button {
	font: inherit;
	background: #101216;
	color: inherit;
	border: 1px solid #3a4250;
	padding: 0.3rem 0.5rem;
}

button {
	cursor: pointer;
}

.error { color: #f0a0a0; min-height: 1.2em; }
.hint { color: #9aa3b2; font-size: 0.9rem; }
a { color: #d4c48a; }
