.b42ak-root {
	font-family: Verdana, Geneva, sans-serif;
	width: 100%;
	max-width: var(--b42ak-max-width, 640px);
	margin: 0 auto;
	color: #05070c;
	background: #000000;
	border: 2px solid #2a2f3d;
	border-radius: 10px;
	padding: 12px;
	box-sizing: border-box;
	overflow: hidden;
}

.b42ak-root * { box-sizing: border-box; min-width: 0; }

.b42ak-hud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
	align-items: center;
	color: #e8ecf1;
	font-size: 15px;
	margin-bottom: 8px;
	padding: 0 2px;
}

.b42ak-hud strong { color: #ffd93d; }

.b42ak-stage {
	position: relative;
	background: #000000;
	border-radius: 6px;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 0 0 2px #000, 0 0 0 4px #2bd1e6, 0 0 14px rgba(43, 209, 230, 0.35);
}

.b42ak-canvas {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	background: #000000;
	touch-action: none;
}

.b42ak-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	color: #f4f6fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px 16px;
	gap: 12px;
	width: 100%;
	overflow: hidden;
}

.b42ak-overlay[hidden] { display: none; }

.b42ak-overlay-title {
	font-size: 22px;
	font-weight: bold;
	margin: 0;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #29d0ff;
	text-shadow: 0 0 8px rgba(41, 208, 255, 0.65);
}

.b42ak-overlay-text {
	font-size: 14px;
	max-width: 420px;
	margin: 0;
	line-height: 1.5;
}

.b42ak-start-btn,
.b42ak-name-form button {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 15px;
	font-weight: bold;
	background: #ffd93d;
	color: #10131c;
	border: 2px solid #10131c;
	border-radius: 6px;
	padding: 11px 20px;
	min-height: 44px;
	white-space: nowrap;
	flex: 0 0 auto;
	cursor: pointer;
}

.b42ak-start-btn:hover,
.b42ak-name-form button:hover { background: #ffe673; }

.b42ak-start-btn:focus-visible,
.b42ak-name-form button:focus-visible,
.b42ak-name-input:focus-visible,
.b42ak-sound-toggle:focus-visible,
.b42ak-paddle-size:focus-visible,
.b42ak-tempo:focus-visible {
	outline: 3px solid #6fb3ff;
	outline-offset: 2px;
}

.b42ak-name-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	width: 100%;
	max-width: 100%;
}

.b42ak-name-input {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 16px; /* verhindert Auto-Zoom beim Fokus auf iOS */
	padding: 10px;
	border-radius: 6px;
	border: 2px solid #10131c;
	flex: 1 1 160px;
	min-width: 0;
	width: 100%;
	max-width: 220px;
}

.b42ak-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	color: #e8ecf1;
	font-size: 13px;
	margin-top: 10px;
	padding: 10px 4px 2px;
	border-top: 1px solid #2a2f3d;
	width: 100%;
}

.b42ak-controls label {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
	max-width: 100%;
}

.b42ak-tempo { width: 100px; max-width: 32vw; min-height: 24px; }

.b42ak-paddle-size {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 13px;
	padding: 6px 4px;
	min-height: 32px;
}

.b42ak-sound-toggle {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 13px;
	background: #1c212e;
	color: #e8ecf1;
	border: 1px solid #3a4155;
	border-radius: 6px;
	padding: 8px 10px;
	min-height: 36px;
	white-space: nowrap;
	cursor: pointer;
}

.b42ak-leaderboard {
	margin-top: 12px;
	color: #e8ecf1;
	font-size: 13px;
}

.b42ak-leaderboard h3 {
	font-size: 14px;
	margin: 0 0 6px;
	color: #ffd93d;
}

.b42ak-leaderboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 3px;
}

.b42ak-help {
	margin-top: 10px;
	color: #b7bdca;
	font-size: 12px;
	line-height: 1.5;
}

.b42ak-live {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 480px) {
	.b42ak-root { padding: 8px; border-width: 1px; }
	.b42ak-hud { font-size: 12px; gap: 6px 12px; }
	.b42ak-controls { font-size: 12px; gap: 8px 12px; justify-content: center; }
	.b42ak-overlay { padding: 16px 10px; gap: 8px; }
	.b42ak-overlay-title { font-size: 18px; }
	.b42ak-overlay-text { font-size: 13px; }
	.b42ak-start-btn, .b42ak-name-form button { font-size: 14px; padding: 10px 16px; }
	.b42ak-help { font-size: 11px; }
}

@media (max-width: 360px) {
	.b42ak-hud { justify-content: center; text-align: center; }
	.b42ak-tempo { max-width: 26vw; }
}
