html, body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

.top-right {
	position: fixed;
	top: 60px;
	right: 0;
	width: 20px;
	height: 115px;
	z-index: 4;
	display: block;
}

.top-right-rect {
	position: absolute;
	inset: 0;
	background: #2665e4a6;
	border-radius: 20px 0 0 20px;
	pointer-events: none;
}

.top-right-rect::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-right: 8px solid #000;
}

body {
	position: relative;
}

canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	background: #000;
}

.center-text {
	position: static;
	display: block;
	color: #fff;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-size: clamp(18px, 3.2vw, 42px);
	font-weight: 400;
	letter-spacing: 0.04em;
	user-select: none;
	pointer-events: none;
	text-align: center;
	z-index: 1;
	will-change: transform, opacity;
	transform-origin: center center;
	opacity: 0.85;
	text-shadow:
		0 0 10px rgba(0, 120, 255, 0.85),
		0 0 22px rgba(0, 120, 255, 0.7),
		0 0 44px rgba(0, 120, 255, 0.45);
}

.center-stack {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
	pointer-events: none;
}

.auth-buttons {
	position: static;
	transform: none;
	margin-top: 16px;
	display: flex;
	gap: 10px;
	z-index: 1;
	pointer-events: auto;
}

.auth-btn {
	display: inline-block;
	padding: 6px 14px;
	color: #cfe9ff;
	text-decoration: none;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.auth-btn:hover {
	text-shadow:
		0 0 10px rgba(0, 120, 255, 0.85),
		0 0 22px rgba(0, 120, 255, 0.7),
		0 0 44px rgba(0, 120, 255, 0.45);
}

.start-overlay {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 1);
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 2.2vw, 20px);
	letter-spacing: 0.05em;
	z-index: 2;
	cursor: pointer;
	user-select: none;
	text-align: center;
	padding: 24px;
}

.start-overlay.hidden {
	display: none;
}

.status {
	position: fixed;
	left: 12px;
	bottom: 10px;
	color: #9f9f9f;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	z-index: 3;
	pointer-events: none;
}

.auth-page {
	background: radial-gradient(circle at 50% 18%, rgba(0, 120, 255, 0.14) 0%, rgba(0, 0, 0, 0.9) 34%, #000 68%);
	display: grid;
	place-items: center;
	overflow: auto;
	padding: 20px;
}

.auth-shell {
	width: min(100%, 460px);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}

.auth-back {
	align-self: flex-start;
	color: #9fd7ff;
	text-decoration: none;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-size: 13px;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

.auth-back:hover {
	opacity: 1;
	text-shadow:
		0 0 10px rgba(0, 120, 255, 0.85),
		0 0 22px rgba(0, 120, 255, 0.7),
		0 0 44px rgba(0, 120, 255, 0.45);
}

.auth-logo {
	font-size: clamp(20px, 4vw, 40px);
	opacity: 0.95;
	animation: authPulse 2.7s ease-in-out infinite;
}

.auth-panel {
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(111, 190, 255, 0.35);
	box-shadow:
		0 0 0 1px rgba(0, 170, 255, 0.18) inset,
		0 0 26px rgba(0, 120, 255, 0.22);
	border-radius: 12px;
	padding: 20px;
	backdrop-filter: blur(3px);
}

.auth-title {
	margin: 0 0 14px;
	color: #fff;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: lowercase;
	font-size: 22px;
	text-shadow: 0 0 18px rgba(0, 120, 255, 0.55);
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.auth-label {
	color: #b8ddff;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: lowercase;
}

.auth-input {
	background: rgba(0, 0, 0, 0.62);
	border: 1px solid rgba(111, 190, 255, 0.33);
	color: #fff;
	padding: 10px 11px;
	border-radius: 8px;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-size: 14px;
	outline: none;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-input:focus {
	border-color: rgba(122, 204, 255, 0.85);
	box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.25);
}

.auth-submit {
	margin-top: 8px;
	background: rgba(0, 120, 255, 0.12);
	border: 1px solid rgba(111, 190, 255, 0.5);
	color: #cfe9ff;
	padding: 10px 14px;
	border-radius: 8px;
	font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
	font-size: 14px;
	letter-spacing: 0.05em;
	cursor: pointer;
}

.auth-submit:hover {
	text-shadow:
		0 0 10px rgba(0, 120, 255, 0.85),
		0 0 22px rgba(0, 120, 255, 0.7),
		0 0 44px rgba(0, 120, 255, 0.45);
	box-shadow: 0 0 18px rgba(0, 132, 255, 0.24);
}

.auth-switch {
	margin: 14px 0 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #a9a9a9;
	text-align: center;
}

.auth-switch a {
	color: #a9dbff;
	text-decoration: none;
}

.auth-switch a:hover {
	text-decoration: underline;
}

@keyframes authPulse {
	0%,
	100% {
		transform: scale(0.97);
		opacity: 0.8;
	}
	50% {
		transform: scale(1);
		opacity: 0.98;
	}
}
