* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
	font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

#game-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.hidden {
	display: none !important;
}

/* Subtle dark edge vignette for a more cinematic, less "flat" viewport. */
#vignette {
	position: fixed;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
}

/* --- Crosshair: four independent ticks with a small gap, like a real FPS reticle --- */
#crosshair {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	pointer-events: none;
	z-index: 6;
}

#crosshair span {
	position: absolute;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
	border-radius: 1px;
}

#crosshair span:nth-child(1) { top: 0; left: 50%; width: 2px; height: 7px; margin-left: -1px; }
#crosshair span:nth-child(2) { bottom: 0; left: 50%; width: 2px; height: 7px; margin-left: -1px; }
#crosshair span:nth-child(3) { left: 0; top: 50%; height: 2px; width: 7px; margin-top: -1px; }
#crosshair span:nth-child(4) { right: 0; top: 50%; height: 2px; width: 7px; margin-top: -1px; }

/* --- Compass strip along the top edge --- */
#compass {
	position: fixed;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	width: 320px;
	height: 30px;
	z-index: 5;
	overflow: hidden;
	background: linear-gradient(to bottom, rgba(10, 14, 10, 0.72), rgba(10, 14, 10, 0.5));
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	backdrop-filter: blur(2px);
}

#compass-strip {
	position: absolute;
	top: 0;
	left: 160px;
	height: 100%;
	white-space: nowrap;
	will-change: transform;
}

#compass-strip .tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 100%;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.55);
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#compass-strip .tick.cardinal {
	color: #ffd76b;
	font-weight: 700;
	font-size: 13px;
}

#compass::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background: #ff5a4d;
	box-shadow: 0 0 4px rgba(255, 90, 77, 0.8);
}

/* --- Street name sign: styled after a Polish blue-and-white street nameplate --- */
#location-sign {
	position: fixed;
	top: 54px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	background: #0b5394;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 3px;
	padding: 3px 14px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.4px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* --- Quest panel --- */
#quest-panel {
	position: fixed;
	top: 16px;
	left: 16px;
	max-width: 320px;
	z-index: 5;
}

/* --- Minimap (top-right) --- */
#minimap {
	position: fixed;
	top: 16px;
	right: 16px;
	width: 220px;
	height: 220px;
	z-index: 5;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(20, 25, 18, 0.65);
	background: #1c241a;
}

#minimap-canvas {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

#minimap-n {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	background: #ffd76b;
	color: #1c241a;
	font-weight: 700;
	font-size: 11px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.panel {
	background: linear-gradient(160deg, rgba(18, 24, 16, 0.75), rgba(10, 14, 10, 0.68));
	color: #f2f2e8;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid rgba(255, 215, 107, 0.22);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(3px);
	font-size: 14px;
	line-height: 1.4;
}

.quest {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quest:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.quest-title {
	font-weight: 700;
	color: #ffd76b;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.quest-done .quest-title {
	color: #8ce08c;
}

.quest-objectives {
	margin: 5px 0 0;
	padding-left: 20px;
}

.quest-objectives li {
	margin-bottom: 2px;
}

.quest-objectives li.done {
	text-decoration: line-through;
	color: #9aa39a;
}

/* --- Interaction prompt with a keycap badge --- */
#interact-prompt {
	position: fixed;
	bottom: 90px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.68);
	color: #fff;
	padding: 8px 18px 8px 8px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 15px;
	z-index: 5;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#interact-key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 5px;
	background: linear-gradient(180deg, #4a4a4a, #262626);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	font-weight: 700;
	font-size: 13px;
	color: #ffd76b;
}

#message-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(20, 30, 20, 0.88);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid rgba(255, 215, 107, 0.25);
	font-size: 15px;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translate(-50%, 6px);
	max-width: 70vw;
	text-align: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#message-toast.visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

#blocker {
	position: fixed;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(15, 22, 14, 0.75), rgba(2, 4, 2, 0.92));
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	cursor: pointer;
}

#blocker-box {
	background: linear-gradient(165deg, rgba(24, 30, 20, 0.94), rgba(14, 18, 12, 0.94));
	color: #f2f2e8;
	padding: 30px 38px;
	border-radius: 12px;
	border: 1px solid rgba(255, 215, 107, 0.3);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
	text-align: center;
	max-width: 440px;
}

#blocker-box h1 {
	margin: 0 0 6px;
	color: #ffd76b;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#blocker-box p {
	color: #d8dccf;
}

#blocker-box ul {
	text-align: left;
	margin: 16px 0 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.7;
	list-style: none;
}

#blocker-box ul li {
	padding-left: 4px;
}

#blocker-box ul li strong {
	display: inline-block;
	min-width: 52px;
	color: #ffd76b;
}

