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: #030812;
	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;
}
		

/* neon-mobile-shell */
html {
	width: 100%;
	height: 100%;
	background: #030712;
	-webkit-text-size-adjust: 100%;
	-webkit-user-select: none;
	user-select: none;
	overscroll-behavior: none;
}

body {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100dvh;
	background:
		radial-gradient(circle at 12% 18%, rgba(255, 62, 208, 0.18), transparent 32%),
		radial-gradient(circle at 88% 80%, rgba(16, 232, 255, 0.16), transparent 34%),
		#030712;
	overscroll-behavior: none;
	touch-action: none;
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	box-sizing: border-box;
}

#canvas {
	width: calc(100dvw - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
	height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
	max-width: none;
	max-height: none;
	touch-action: none;
	image-rendering: auto;
}

#status {
	z-index: 40;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(255, 62, 208, 0.14), transparent 34%, transparent 66%, rgba(16, 232, 255, 0.14)),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
		#020711;
}

#status::before {
	content: "";
	position: absolute;
	inset: 10%;
	border: 1px solid rgba(16, 232, 255, 0.18);
	transform: skewX(-7deg);
	box-shadow: 0 0 70px rgba(16, 232, 255, 0.12), 0 0 90px rgba(255, 62, 208, 0.1);
}

#status-splash {
	position: relative;
	z-index: 1;
	display: grid;
	width: min(92vw, 760px);
	height: min(82dvh, 700px);
	place-items: center;
	align-content: center;
	gap: clamp(20px, 5vh, 42px);
}

.neon-loader__sigil {
	position: absolute;
	top: 3%;
	left: 50%;
	translate: -50% 0;
	color: #4dffaf;
	font: 900 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: 0;
	text-shadow: 0 0 16px rgba(77, 255, 175, 0.8);
}

.neon-loader__cards {
	position: relative;
	width: clamp(150px, 28vw, 230px);
	aspect-ratio: 1.05;
}

.neon-loader__cards img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 42%;
	border: 1px solid rgba(16, 232, 255, 0.8);
	border-radius: 7px;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(16, 232, 255, 0.22);
	transform-origin: 50% 90%;
	animation: neon-loader-breathe 1.8s ease-in-out infinite alternate;
}

.neon-loader__cards img:nth-child(1) {
	transform: translate(-92%, -48%) rotate(-18deg);
}

.neon-loader__cards img:nth-child(2) {
	z-index: 2;
	transform: translate(-50%, -58%) rotate(0deg);
	animation-delay: -0.55s;
}

.neon-loader__cards img:nth-child(3) {
	transform: translate(-8%, -48%) rotate(18deg);
	animation-delay: -1.1s;
}

.neon-loader__copy {
	display: grid;
	gap: 7px;
	text-align: center;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	text-transform: uppercase;
}

.neon-loader__copy span {
	color: #4dffaf;
	font-size: 11px;
	font-weight: 900;
}

.neon-loader__copy strong {
	color: #f5fbff;
	font-size: clamp(30px, 7vw, 58px);
	line-height: 0.95;
	text-shadow: 0 0 24px rgba(16, 232, 255, 0.4), 0 0 42px rgba(255, 62, 208, 0.34);
}

.neon-loader__copy small {
	color: #9eb4c5;
	font-size: 12px;
	font-weight: 800;
}

#status-progress-shell {
	z-index: 2;
	position: absolute;
	left: 50%;
	bottom: max(8%, calc(env(safe-area-inset-bottom) + 24px));
	width: min(62vw, 420px);
	translate: -50% 0;
	display: none;
	gap: 10px;
	color: #bcd4e5;
	font: 800 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: center;
	text-transform: uppercase;
}

#status-progress {
	position: static;
	display: block;
	height: 8px;
	width: 100%;
	border: 1px solid rgba(16, 232, 255, 0.5);
	border-radius: 7px;
	background: rgba(2, 8, 19, 0.88);
	overflow: hidden;
	appearance: none;
}

#status-progress::-webkit-progress-bar {
	background: rgba(2, 8, 19, 0.88);
}

#status-progress::-webkit-progress-value {
	background: linear-gradient(90deg, #4dffaf, #10e8ff 56%, #ff3ed0);
	box-shadow: 0 0 18px rgba(16, 232, 255, 0.7);
}

#status-progress::-moz-progress-bar {
	background: linear-gradient(90deg, #4dffaf, #10e8ff 56%, #ff3ed0);
}

#status-notice {
	z-index: 3;
}

#status-notice.neon-loader__failure {
	position: relative;
	width: min(88vw, 560px);
	max-height: min(82dvh, 620px);
	margin: 0;
	padding: clamp(24px, 6vw, 46px);
	box-sizing: border-box;
	display: none;
	gap: 14px;
	overflow: auto;
	border: 1px solid rgba(16, 232, 255, 0.66);
	border-radius: 8px;
	background: rgba(3, 9, 21, 0.96);
	box-shadow: 0 24px 90px rgba(0, 0, 0, 0.74), 0 0 40px rgba(16, 232, 255, 0.18), inset 0 0 36px rgba(255, 62, 208, 0.08);
	color: #effaff;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: left;
}

.neon-loader__failure-code {
	color: #4dffaf;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.neon-loader__failure-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(26px, 7vw, 42px);
	line-height: 1.05;
	text-shadow: 0 0 22px rgba(16, 232, 255, 0.34);
}

.neon-loader__failure-message {
	margin: 0;
	color: #c4d6e4;
	font-size: 16px;
	line-height: 1.55;
}

.neon-loader__failure-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
	margin-top: 6px;
}

.neon-loader__failure-actions button,
.neon-loader__failure-actions a {
	min-height: 48px;
	box-sizing: border-box;
	border: 1px solid rgba(16, 232, 255, 0.72);
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	background: rgba(10, 34, 50, 0.92);
	color: #f4fcff;
	font: 900 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.neon-loader__failure-actions button {
	border-color: #4dffaf;
	background: #0b3c35;
	box-shadow: 0 0 22px rgba(77, 255, 175, 0.18);
}

.neon-loader__failure-actions button:focus-visible,
.neon-loader__failure-actions a:focus-visible,
.neon-loader__support-link:focus-visible,
.neon-loader__failure-details summary:focus-visible {
	outline: 3px solid #ff65d7;
	outline-offset: 3px;
}

.neon-loader__support-link {
	width: fit-content;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: #63ecff;
	font-size: 14px;
	font-weight: 800;
}

.neon-loader__failure-details {
	border-top: 1px solid rgba(158, 180, 197, 0.2);
	padding-top: 12px;
	color: #9eb4c5;
	font-size: 13px;
}

.neon-loader__failure-details summary {
	min-height: 44px;
	display: flex;
	align-items: center;
	cursor: pointer;
	font-weight: 800;
}

.neon-loader__failure-detail {
	display: block;
	overflow-wrap: anywhere;
	white-space: normal;
}

@keyframes neon-loader-breathe {
	from { filter: brightness(0.82) saturate(0.9); }
	to { filter: brightness(1.16) saturate(1.2); }
}

@media (prefers-reduced-motion: reduce) {
	.neon-loader__cards img { animation: none; }
}

@media (max-width: 520px) {
	#status-notice.neon-loader__failure {
		width: min(92vw, 440px);
		padding: 24px 20px;
		gap: 12px;
	}

	.neon-loader__failure-actions {
		grid-template-columns: 1fr;
	}
}

#mobile-orientation-hint {
	display: none;
}

@media (max-width: 860px) and (orientation: portrait) {
	#mobile-orientation-hint {
		display: none;
		position: fixed;
		left: 50%;
		bottom: max(14px, env(safe-area-inset-bottom));
		z-index: 20;
		translate: -50% 0;
		padding: 9px 12px;
		border: 1px solid rgba(16, 232, 255, 0.76);
		border-radius: 8px;
		background: rgba(3, 8, 19, 0.82);
		box-shadow: 0 0 22px rgba(16, 232, 255, 0.24), 0 0 32px rgba(255, 62, 208, 0.18);
		color: #eefaff;
		font: 800 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
		pointer-events: none;
		text-align: center;
		white-space: nowrap;
	}
}
