:root {
	--bg: #0e1320;
	--panel: #111827;
	--text: #e5e7eb;
	--accent: #60a5fa;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
	background: radial-gradient(1200px 800px at 50% -200px, #1f2937 0%, var(--bg) 60%);
	color: var(--text);
	display: grid;
	place-items: center;
}

.wrap {
	width: 480px;
	max-width: 92vw;
}

.hud {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	background: var(--panel);
	padding: 10px 12px;
	border-radius: 12px 12px 0 0;
	border: 1px solid #1f2937;
	border-bottom: none;
}

.hud .mid {
	text-align: center;
	font-weight: 700;
	letter-spacing: 1px;
}

.hud .right {
	text-align: right;
}

.hud .next {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	vertical-align: middle;
	margin-left: 6px;
	border: 2px solid rgba(255, 255, 255, 0.25);
}

canvas#game {
	display: block;
	width: 480px;
	height: 720px;
	max-width: 92vw;
	background: #0b1020;
	border: 1px solid #1f2937;
}

.controls {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	background: var(--panel);
	padding: 10px 12px;
	border-radius: 0 0 12px 12px;
	border: 1px solid #1f2937;
	border-top: none;
}

button {
	background: var(--accent);
	border: none;
	color: #0b1020;
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
}

button:hover {
	filter: brightness(1.05);
}

button:active {
	transform: translateY(1px);
}