
html, body, #canvas {
	margin: 0;
	padding: 0;
	border: 0;
}

body {
	color: white;
	background-color: black;
	overflow: hidden;
	touch-action: none;
}

#canvas {
	display: block;
}

#canvas:focus {
	outline: none;
}

#status, #status-splash, #status-progress {
	position: absolute;
	left: 0;
	right: 0;
}

#status, #status-splash {
	top: 0;
	bottom: 0;
}

#status {
	background-color: #0a0a0c;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	visibility: hidden;
}

#status-splash {
	max-height: 100%;
	max-width: 100%;
	margin: auto;
}

#status-splash.show-image--false {
	display: none;
}

#status-splash.fullsize--true {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

#status-splash.use-filter--false {
	image-rendering: pixelated;
}

#status-progress, #status-notice {
	display: none;
}

#status-progress {
	bottom: 10%;
	width: 50%;
	margin: 0 auto;
}

#status-notice {
	background-color: #5b3943;
	border-radius: 0.5rem;
	border: 1px solid #9b3943;
	color: #e0e0e0;
	font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
	line-height: 1.3;
	margin: 0 2rem;
	overflow: hidden;
	padding: 1rem;
	text-align: center;
	z-index: 1;
}
		
/* Added to Godot's page style by scripts/godot-web.sh. */

/* The loading screen (#loader; start.js draws the snake and follows
   Godot's progress): the game's colours, from the first paint until the
   game's first frame, then a fade. Godot's own #status stays on top, see-
   through, for its notice on an error; its progress bar is ours now. */
body, #loader {
	background-color: #0a0a0c;
}
#status {
	background-color: transparent;
	z-index: 2;
	box-sizing: border-box;
	padding-top: 7em;
}
#status-progress {
	display: none !important;
}
#status-notice {
	background-color: #1c1c22;
	border-color: #ef4b4b;
	color: #cdd;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	max-width: 30em;
}
#loader {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 18px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	transition: opacity 0.35s ease-out;
	user-select: none;
}
#loader.gone {
	opacity: 0;
	pointer-events: none;
}
.loader-name {
	color: #5bd16b;
	font-size: 26px;
	font-weight: bold;
	letter-spacing: 0.08em;
}
#loader-snake {
	display: block;
	width: 208px;
	height: 24px;
}
.loader-line {
	color: #788;
	font-size: 13px;
	min-height: 1.3em;
}
#loader.failed #loader-snake, #loader.failed .loader-line {
	visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
	#loader {
		transition: none;
	}
}

/* The phone page (start.js): no engine, just a few lines. */
body.phone {
	overflow: auto;
	touch-action: auto;
}
#phone {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 48px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #cdd;
	font: 17px/1.6 ui-monospace, Menlo, Consolas, monospace;
}
#phone[hidden] {
	display: none;
}
#phone h1 {
	color: #5bd16b;
	font-size: 22px;
	margin: 24px 0 12px;
}
#phone p {
	max-width: 30em;
	margin: 8px 0;
}
#phone .snake {
	display: flex;
	gap: 4px;
}
#phone .snake i {
	display: block;
	width: 14px;
	height: 14px;
	background: #5bd16b;
}
#phone .snake i:last-child {
	background: #ef4b4b;
	margin-left: 14px;
}
#phone a {
	color: #788;
	font-size: 14px;
}
