@font-face {
	font-family: 'Cairo';
	font-style: normal;
	font-weight: 400;
	src: url('Cairo-Regular.ttf') format('truetype');
}

html, body{
	width: 100%;
	height: 100%;
}
body{
	font-family: 'Cairo';
	margin: 0;
	background: #222;
	position:relative;
}
#stage{
	background: #000;
	width:960px; height:540px;
	position:absolute;
	margin:auto;
	top:0; left:0; right:0; bottom:0;
	/* cursor: none; */
}
/* True monitor fullscreen: stage fills screen; canvas scaled uniformly in JS (no stretch/distort) */
#stage:fullscreen,
#stage:-webkit-full-screen,
#stage:-moz-full-screen,
#stage:-ms-fullscreen {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	position: fixed;
	overflow: hidden;
	/* No flex — flex stretch was distorting the canvas */
	display: block;
	background: #000;
}
/* Canvas: fixed logical size + transform scale only — one scale factor for X and Y */
#stage:fullscreen canvas,
#stage:-webkit-full-screen canvas,
#stage:-moz-full-screen canvas,
#stage:-ms-fullscreen canvas {
	position: absolute;
	left: 50%;
	top: 50%;
	/* Match game aspect 16:9; JS sets transform translate + scale(s) — s same for both axes */
	width: 960px !important;
	height: 540px !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transform-origin: center center;
	/* Prevent any browser stretch */
	object-fit: none;
	image-rendering: auto;
}
/* Fullscreen toggle — commented out with Game.js setupFullscreenButton
#fullscreen_btn {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 150;
	pointer-events: auto;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(0,0,0,0.65);
	color: #fff;
	text-shadow: 0 0 4px #000;
}
#fullscreen_btn:hover {
	background: rgba(40,40,50,0.85);
	border-color: rgba(255,255,255,0.5);
}
*/
/* Shooting phase: force visible crosshair (stage was forcing cursor none) */
#stage.cursor-crosshair,
#stage.cursor-crosshair canvas {
	cursor: crosshair !important;
}
.overlay{

	display: none;

	text-align: center;
	color: #fff;
	letter-spacing: 1px;

	width:500px; height:170px;

	position:absolute;
	margin:auto;
	top:0; left:0; right:0; bottom:0;

}
.overlay > div:nth-child(1){
	font-size: 100px;
	line-height: 100px;
}
.overlay > div:nth-child(2){
	font-size: 20px;
}
#modal_shade{
	display: none;
	background: rgba(0,0,0,0.8);
	width:960px; height:540px;
	position:absolute;
	margin:auto;
	top:0; left:0; right:0; bottom:0;
	cursor: pointer;
}
#paused{
	cursor: pointer;
}
/* Name input overlay (Scene_NameInput) */
#name_input_wrap input:focus {
	outline: 2px solid #6a8fc5;
}

/* In-game HUD over canvas (Scene_Play) */
#play_hud {
	position: absolute;
	margin: auto;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 960px;
	height: 540px;
	pointer-events: none;
	z-index: 50;
	font-family: Arial, sans-serif;
	color: #fff;
	text-shadow: 0 0 4px #000, 0 0 8px #000;
}
#play_hud .hud-controls {
	position: absolute;
	top: 10px;
	left: 14px;
	font-size: 16px;
	font-weight: bold;
	background: rgba(0,0,0,0.55);
	padding: 8px 12px;
	border-radius: 8px;
	pointer-events: none;
}
#play_hud .hud-talk {
	position: absolute;
	left: 50%;
	bottom: 100px;
	transform: translateX(-50%);
	font-size: 20px;
	font-weight: bold;
	background: rgba(74, 111, 165, 0.9);
	padding: 10px 20px;
	border-radius: 10px;
	display: none;
	pointer-events: none;
}
#play_hud .hud-talk.visible {
	display: block;
}

/* Dialogue overlay */
#dialogue_overlay {
	position: absolute;
	margin: auto;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 960px;
	height: 540px;
	z-index: 60;
	background: rgba(0,0,0,0.75);
	display: none;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
	color: #fff;
	cursor: default;
}
#dialogue_overlay.open {
	display: flex;
}
#dialogue_overlay .dialogue-name {
	font-size: 18px;
	color: #8ec5ff;
	margin-bottom: 8px;
}
#dialogue_overlay .dialogue-text {
	font-size: 20px;
	line-height: 1.45;
	margin-bottom: 20px;
	min-height: 3em;
	background: rgba(30,30,45,0.95);
	padding: 16px;
	border-radius: 10px;
	border: 1px solid #4a6fa5;
}
#dialogue_overlay .dialogue-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#dialogue_overlay .dialogue-options button {
	font-size: 18px;
	padding: 12px 16px;
	border-radius: 8px;
	border: none;
	background: #4a6fa5;
	color: #fff;
	cursor: pointer;
	text-align: left;
}
#dialogue_overlay .dialogue-options button:hover {
	background: #5a7fb5;
}