img {
	image-rendering: optimizeSpeed;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	-ms-interpolation-mode: nearest-neighbor;
	image-rendering: pixelated;
}

body, html {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	font-family: 'Inter', sans-serif;
	background: #0b0b0b;
	color: #e0e0e0;
}

#map {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		repeating-linear-gradient(0deg, #111 0, #111 31px, #1a1a1a 31px, #1a1a1a 32px),
		repeating-linear-gradient(90deg, #111 0, #111 31px, #1a1a1a 31px, #1a1a1a 32px);
}

#streamStatus {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2000;
	font-size: 14px;
	color: #d4af37;
	font-weight: 700;
	background: rgba(20, 20, 20, 0.85);
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid rgba(212, 175, 55, 0.35);
	display: none;
}

.tiles-notice {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2001;
	max-width: 520px;
	padding: 12px 16px;
	border-radius: 10px;
	background: rgba(30, 20, 10, 0.92);
	border: 1px solid rgba(212, 175, 55, 0.5);
	color: #f5e6c8;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.tiles-notice code {
	background: rgba(0, 0, 0, 0.35);
	padding: 2px 6px;
	border-radius: 4px;
}

.hud-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 340px;
	height: 100vh;
	overflow-y: auto;
	z-index: 1000;
	background: rgba(26, 26, 30, 0.92);
	backdrop-filter: blur(12px);
	border-left: 1px solid rgba(212, 175, 55, 0.3);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.75);
	padding: 22px 18px 40px;
}

.hud-panel::-webkit-scrollbar { width: 6px; }
.hud-panel::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.35); border-radius: 4px; }

.hud-header h1 {
	margin: 10px 0 4px;
	font-size: 22px;
	color: #d4af37;
}

.hud-sub {
	margin: 0 0 16px;
	font-size: 13px;
	color: #aaa;
}

.hud-back {
	color: #8ec5ff;
	text-decoration: none;
	font-size: 13px;
}

.hud-back:hover { text-decoration: underline; }

.hud-section {
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-section h2 {
	margin: 0 0 10px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #d4af37;
}

.floor-controls {
	display: flex;
	gap: 8px;
	align-items: center;
}

.hud-select,
.hud-input {
	flex: 1;
	background: #151518;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #eee;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
}

.hud-select.full {
	flex: none;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 4px;
}

.hud-label {
	display: block;
	margin: 10px 0 6px;
	font-size: 12px;
	color: #999;
}

.btn-hud {
	background: #2a2a32;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #eee;
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
}

.btn-hud:hover { background: #35353f; }

.btn-hud.full { width: 100%; margin-top: 8px; }

.btn-gold {
	background: linear-gradient(180deg, #c9a227 0%, #8a6d12 100%);
	border-color: #d4af37;
	color: #1a1200;
	font-weight: 700;
}

.btn-gold:hover { filter: brightness(1.08); }

.chosen-container { width: 100% !important; margin-bottom: 4px; }

.search-results,
#searchResults {
	margin-top: 10px;
	padding-left: 18px;
	font-size: 12px;
	line-height: 1.5;
}

.search-results a,
#monsterSearchResults a {
	color: #8ec5ff;
	cursor: pointer;
}

.follow-status {
	font-size: 12px;
	color: #bbb;
	margin-bottom: 8px;
}

.player-search-form {
	display: flex;
	gap: 8px;
}

.leaflet-div-icon {
	background: transparent;
	font-size: 14px;
	color: #5ddf6a;
	font-weight: 700;
	border: none;
	text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
	text-align: center;
	z-index: 999999999 !important;
}

@media (max-width: 900px) {
	.hud-panel {
		width: 100%;
		height: auto;
		max-height: 45vh;
		top: auto;
		bottom: 0;
		border-left: none;
		border-top: 1px solid rgba(212, 175, 55, 0.3);
	}
	#map { bottom: 45vh; height: auto; }
}
