/* Bamberdöst arcade frame for Zombie Siege (same layout as the site's other
   arcade games: game screen in a bezel, touch controls below it in normal page
   flow, help text underneath on desktop). Sizes are set by frame.js. */
html, body { height: 100%; }
body {
	background: repeating-linear-gradient(180deg, #0a1206 0 46px, #0e1808 46px 92px, #121f0a 92px 138px);
	font-family: "ZSPixel", ui-monospace, Menlo, Consolas, monospace;
	color: #6f3;
	overscroll-behavior: none;
}
.zs-wrap {
	box-sizing: border-box;
	height: 100%;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	padding: 14px 10px 20px;
}
.zs-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.zs-screen {
	background: #000;
	border: 3px solid #2a5a12;
	padding: 8px;
	border-radius: 4px;
	line-height: 0;
	flex: none;
}
#c2canvasdiv { margin: 0 !important; }
.zs-help {
	margin: 0;
	max-width: 480px;
	padding: 6px 10px;
	font-size: 8px;
	line-height: 2;
	text-align: center;
	color: #9c6;
	background: rgba(0, 0, 0, .55);
	border-radius: 3px;
}
.zs-help b { color: #6f3; font-weight: normal; }

/* touch controls: hidden until frame.js picks a touch layout */
.zs-touch, .zs-side { display: none; }
.zs-mode-bottom .zs-help, .zs-mode-side .zs-help { display: none; }
.zs-mode-bottom .zs-wrap { padding: 8px 8px 12px; }
.zs-mode-bottom .zs-touch { display: flex; flex: 1; min-height: 120px; align-self: stretch; }
.zs-mode-side .zs-wrap { padding: 8px; }
.zs-mode-side .zs-side { display: flex; flex: 1; max-width: 260px; }

.zs-pad {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.zs-pad .zs-track {
	position: relative;
	flex: 1;
	min-height: 60px;
	background: #000 repeating-linear-gradient(90deg, transparent 0 31px, #13260a 31px 32px);
	border: 3px solid #2a5a12;
	border-radius: 4px;
	overflow: hidden;
}
.zs-pad.held .zs-track { border-color: #6f3; }
.zs-pad .zs-marker {
	position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px;
	background: #6f3; opacity: .35; pointer-events: none;
}
.zs-pad.held .zs-marker { opacity: 1; }
.zs-pad .zs-hint {
	position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
	pointer-events: none; color: #6f3; opacity: .7; font-size: 16px; line-height: 24px; white-space: pre-line;
}
.zs-pad.held .zs-hint { opacity: .25; }
.zs-pad .zs-status {
	display: flex; justify-content: space-between; gap: 8px; padding: 0 4px;
	font-size: 16px; line-height: 20px; white-space: nowrap;
}
.zs-pad .zs-bombs.flash { color: #f33; }
.zs-pad .zs-gun { color: #ff3; }
.zs-side .zs-hint { font-size: 8px; line-height: 14px; }
.zs-side .zs-status { flex-direction: column; font-size: 8px; line-height: 14px; }
.zs-pad.idle .zs-track, .zs-pad.idle .zs-status { visibility: hidden; }
