@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen:wght@400;700&display=swap');

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	touch-action: none;
	-webkit-touch-callout: none;
}

body {
	font-family: 'Silkscreen', 'Press Start 2P', monospace, sans-serif;
	background: radial-gradient(ellipse at center, #181425 0%, #0d0a14 100%);
	color: #f0f0f5;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-user-select: none;
}

#stage {
	background: #000;
	width: min(960px, 100vw, calc(100vh * 16 / 9));
	height: min(540px, calc(100vw * 9 / 16), 100vh);
	aspect-ratio: 16 / 9;
	position: relative;
	border-radius: 4px;
	box-shadow: 0 0 0 3px #262b44, 0 20px 50px rgba(0, 0, 0, 0.8);
	overflow: hidden;
	cursor: none;
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
}

#stage canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
}

#modal_shade {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 10, 14, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 10;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.overlay {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
	text-align: center;
	pointer-events: none;
}

#paused {
	cursor: pointer;
	pointer-events: auto;
}

#paused .pause-title {
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #fee761;
	margin-bottom: 12px;
	text-shadow: 2px 2px 0px #181425;
}

#paused .pause-subtitle {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1px;
	color: #c0cbdc;
}

#warning {
	max-width: 480px;
	padding: 28px;
	background: #181425;
	border: 3px solid #cb4f55;
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
	pointer-events: auto;
}

#warning .warning-title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #cb4f55;
	margin-bottom: 12px;
}

#warning .warning-desc {
	font-size: 13px;
	line-height: 1.6;
	color: #c0cbdc;
}
/* Mobile Portrait Orientation Lock Prompt */
#rotate_prompt {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #0a0d0a;
	z-index: 999999;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	box-sizing: border-box;
}

@media screen and (orientation: portrait) and (max-width: 900px) {
	#rotate_prompt {
		display: flex !important;
	}
}

.rotate-icon {
	font-size: 52px;
	margin-bottom: 20px;
	animation: rotatePhone 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rotatePhone {
	0%, 15% { transform: rotate(0deg); }
	45%, 65% { transform: rotate(90deg); }
	90%, 100% { transform: rotate(0deg); }
}

.rotate-title {
	font-size: 16px;
	font-weight: 700;
	color: #fee761;
	margin-bottom: 12px;
	letter-spacing: 2px;
}

.rotate-desc {
	font-size: 11px;
	color: #cbd5e1;
	max-width: 320px;
	line-height: 20px;
}
