
html,
body {
	width: 100%;
	height: 100%;
}

body {
	background: #000;
	color: #fff;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	margin: 0;
	overflow: hidden;
}

.page {
	position: relative;
	width: 100%;
	height: 100%;
}

.title {
	position: fixed;
	left: 16px;
	top: 12px;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	opacity: 0.9;
	user-select: none;
}

.hint {
	position: fixed;
	left: 16px;
	top: 40px;
	margin: 0;
	opacity: 0.75;
	user-select: none;
}

.deaths-hud {
	color: #000;
	font-size: 20px;
	font-weight: 700;
	opacity: 1;
	background: transparent;
	padding: 0;
	border-radius: 0;
	text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 2px rgba(255, 255, 255, 0.9);
}

.game {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	border: none;
	border-radius: 0;
	overflow: hidden;
	background-color: #000;
	background-image: url("../images/skybox.jpeg"), url("../Images/skybox.jpeg"), url("../skybox.jpeg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 110px;
	z-index: 1;
	background-color: transparent;
	background-image: url("../images/gras.png"), url("../Images/gras.png"), url("../gras.png");
	background-repeat: repeat-x;
	background-position: left bottom;
	background-size: auto 110px;
	border-top: none;
}

.block {
	position: absolute;
	z-index: 2;
	background-color: transparent;
	background-image: url("../images/wood.png"), url("../Images/wood.png"), url("../wood.png");
	background-repeat: repeat;
	background-position: center;
	background-size: 60px 60px;
	image-rendering: pixelated;
	pointer-events: none;
}

.woodbox-group {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	will-change: transform;
}

.debug-layer {
	position: absolute;
	inset: 0;
	z-index: 999;
	pointer-events: none;
}

.debug-rect {
	position: absolute;
	left: 0;
	top: 0;
	border: 2px solid rgba(255, 0, 0, 0.9);
	background: rgba(255, 0, 0, 0.12);
	box-sizing: border-box;
}

.debug-rect.block {
	border-color: rgba(255, 255, 0, 0.95);
	background: rgba(255, 255, 0, 0.10);
}

.debug-rect.enemy {
	border-color: rgba(0, 255, 0, 0.95);
	background: rgba(0, 255, 0, 0.10);
}

.debug-rect.enemy::after {
	content: attr(data-name);
	position: absolute;
	left: -2px;
	top: -18px;
	padding: 1px 6px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(0, 255, 0, 0.6);
	color: rgba(180, 255, 180, 1);
	font: 12px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	white-space: nowrap;
}

.debug-line {
	position: absolute;
	left: 0;
	right: 0;
	height: 0;
	border-top: 2px dashed rgba(0, 255, 255, 0.9);
}

.player {
	position: absolute;
	width: 96px;
	height: 96px;
	left: 0;
	top: 0;
	z-index: 3;
	background-color: transparent;
	background-image: url("../images/character.png"), url("../Images/character.png"), url("../character.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	image-rendering: pixelated;
	border-radius: 10px;
	box-shadow: none;
}

.enemy {
	position: absolute;
	width: 55px;
	height: 55px;
	left: 0;
	top: 0;
	z-index: 3;
	background-color: transparent;
	background-image: url("../images/enemy.png"), url("../Images/enemy.png"), url("../enemy.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	image-rendering: pixelated;
	pointer-events: none;
}

.portal {
	position: absolute;
	width: 96px;
	height: 140px;
	left: 0;
	top: 0;
	z-index: 4;
	background-color: transparent;
	background-image: url("../images/portal.png"), url("../Images/portal.png"), url("../portal.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	image-rendering: pixelated;
	pointer-events: none;
}

.goal {
	position: absolute;
	width: 300px;
	height: 300px;
	left: 0;
	top: 0;
	z-index: 5;
	background-color: transparent;
	background-image: url("../images/yaris.png"), url("../Images/yaris.png"), url("../yaris.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	image-rendering: pixelated;
	pointer-events: none;
}

.win-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(3px);
}

.win-card {
	width: 100vw;
	height: 100vh;
	padding: 28px;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.75);
	border: none;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.win-card h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.win-card p {
	margin: 6px 0;
	opacity: 0.92;
}

.win-hint {
	opacity: 0.75;
}
