* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: #17321c;
	color: #f0f5ef;
	overflow: hidden;
}

#game {
	display: block;
	width: 100vw;
	height: 100vh;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	outline: none;
}

#hud {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
}

#hud .instructions {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.35);
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.3;
}

#hud #skin-selector {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 8px;
	background: rgba(0, 0, 0, 0.35);
	padding: 8px;
	border-radius: 8px;
	pointer-events: auto;
}

#hud #skin-selector .skin {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	border: 2px solid rgba(255,255,255,0.35);
	background: #1b2b1f center / contain no-repeat;
	box-shadow: 0 1px 0 rgba(0,0,0,0.2) inset;
	cursor: pointer;
	transition: transform 100ms ease-out, border-color 100ms ease-out;
}
#hud #skin-selector .skin:hover {
	transform: translateY(-1px);
	border-color: rgba(255,255,255,0.6);
}
#hud #skin-selector .skin.selected {
	border-color: #e7ff83;
	box-shadow: 0 0 0 2px rgba(231,255,131,0.3);
}

#hud #message {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.5);
	padding: 10px 14px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	min-width: 200px;
	text-align: center;
	opacity: 0;
	transition: opacity 150ms ease-out;
}

#hud #message.show {
	opacity: 1;
}
