body {
	position: fixed;
	margin: 0;
	padding: 0;
	background-color: #ffffff;
	overflow: hidden;
}

.canvas-app-container {
	width: 100%;
	height: 100%;
	position: absolute;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #00BB61;
}

.canvas-app-container:-webkit-full-screen {
	width: auto;
	height: auto;
}

#canvas {
	outline: none;
	border: 0;
	width: 100%;
	vertical-align: bottom;
}

#canvas-container {
	position: relative;
}

canvas:focus, canvas:active {
	outline: none;
	border: 0;
	-moz-outline-style: none;
}

div {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.buttons-background {
	background-color: #ffffff;
	width: 100%;
	height: 0;
}

/* Inline hub bar — do NOT use hub-bar-active layout overrides (breaks Defold WebGL). */
.hub-bar {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	max-width: calc(100vw - 20px);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(102, 126, 234, 0.18);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
}

.hub-bar-inner {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 5px 12px 5px 6px;
	pointer-events: auto;
}

.hub-bar-logo {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	text-decoration: none;
	flex-shrink: 0;
	font-weight: 700;
	font-size: 0.82rem;
	padding: 2px 6px;
	border-radius: 999px;
}

.hub-bar-logo-num {
	background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hub-bar-logo-text {
	color: #2c3e50;
}

.hub-bar-divider {
	width: 1px;
	height: 14px;
	background: rgba(0, 0, 0, 0.1);
	margin: 0 8px;
	flex-shrink: 0;
}

.hub-bar-title {
	font-size: 0.75rem;
	font-weight: 500;
	color: #7f8c8d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}

.canvas-app-canvas {
	background-repeat: no-repeat;
	background-position: top;
	background-size: cover;
	background-image: url("bg_loading.png");
}

/* Short intro line under PLAY */
.game-intro {
	--px-outline:
		-1px -1px 0 #111,
		 1px -1px 0 #111,
		-1px  1px 0 #111,
		 1px  1px 0 #111,
		 0    2px 0 #111;
	position: fixed;
	left: 50%;
	top: 58%;
	transform: translateX(-50%);
	z-index: 20;
	width: min(26rem, calc(100vw - 2rem));
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: transparent;
	text-align: center;
	color: #f4f4f4;
	font-family: "Courier New", Courier, "Lucida Console", monospace;
	line-height: 1.35;
	pointer-events: none;
	user-select: none;
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.game-intro.is-hidden {
	opacity: 0;
	filter: blur(2px);
	visibility: hidden;
}

.game-intro h1 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.1rem, 3.6vw, 1.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffe14a;
	text-shadow: var(--px-outline);
}

.game-intro p {
	margin: 0 auto;
	max-width: 24rem;
	font-size: clamp(0.68rem, 1.7vw, 0.82rem);
	color: #ececec;
	text-shadow: var(--px-outline);
}

@media (max-height: 520px) {
	.game-intro {
		top: auto;
		bottom: 6%;
	}
}
