/* CompactCSS source: /games/kabbalah-shooter/style.css */
/* B"H */
/* Boruch Hashem */
/* Blessed is He */

/**
 * The Awtsmoos renews vessel, spark, shield, and every touch gesture beyond the
 * finite shooter. Awtsmoos.com keeps Kabbalah Infinite cinematic but readable:
 * message chambers are solid, controls are high-contrast, and no frosted glass
 * interrupts the WebGL world beneath them.
 */

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: #000;
	color: #fff;
	font-family: "Courier New", monospace;
	touch-action: none;
	user-select: none;
}

#game-container {
	position: relative;
	width: 100%;
	height: 100%;
}

canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

#gl-canvas {
	z-index: 1;
}

#text-canvas {
	z-index: 2;
	pointer-events: none;
}

#ui-layer,
#hud {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

#ui-layer {
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#hud {
	z-index: 5;
}

.message-box {
	display: none;
	max-width: min(88vw, 620px);
	padding: 30px 42px;
	border: 1px solid #5ad9e6;
	border-radius: 14px;
	background: #050a12;
	box-shadow: 0 26px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 255, 255, .08) inset;
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	text-align: center;
	transform: perspective(500px) rotateX(5deg);
	transition: transform .2s, border-color .2s;
}

.message-box:hover {
	border-color: #fff;
}

.message-box:active {
	transform: perspective(500px) rotateX(0deg) scale(.98);
}

.message-box:focus-visible,
#pause-btn:focus-visible {
	outline: 3px solid #0ff;
	outline-offset: 3px;
}

h1 {
	margin: 0 0 15px;
	font-size: clamp(2rem, 7vw, 3rem);
	font-weight: 100;
	letter-spacing: .22em;
	line-height: .95;
	text-shadow: 0 0 15px #0ff;
	text-transform: uppercase;
}

h2 {
	margin-bottom: 20px;
	color: #9ba0ab;
	font-size: .88rem;
	letter-spacing: .2em;
}

p {
	margin: 5px 0;
	color: #c4c8d0;
	font-size: .9rem;
	letter-spacing: .04em;
}

.control-hint {
	display: block;
	margin-top: 15px;
	color: #0ff;
	font-size: .75rem;
	font-weight: 900;
	line-height: 1.5;
}

#pause-btn {
	position: absolute;
	top: max(16px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	z-index: 20;
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid #647080;
	border-radius: 50%;
	background: #07101a;
	color: #e3ecf3;
	cursor: pointer;
	font-weight: 900;
	pointer-events: auto;
}

#spell-hud {
	position: absolute;
	right: 0;
	bottom: max(20px, env(safe-area-inset-bottom));
	left: 0;
	color: #ffd700;
	font-size: clamp(1.1rem, 5vw, 1.5rem);
	letter-spacing: .35em;
	text-align: center;
	text-shadow: 0 0 10px #f00;
}

@media (max-width: 560px) {
	.message-box {
		padding: 24px 20px;
	}
}
