* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
	background: #f5f5f7;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

header {
	padding: 40px 20px 20px;
	background: #ffffff;
	border-bottom: 1px solid #e5e5e7;
	text-align: center;
}

header h1 {
	margin: 0 0 12px 0;
	color: #1d1d1f;
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -0.5px;
}

#status {
	color: #86868b;
	font-size: 15px;
	font-weight: 500;
}

main {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
}

section {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
}

section canvas {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	border-radius: 18px;
	cursor: pointer;
	background: #ffffff;
}

section div {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

button {
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.3px;
	border: none;
	outline: none;
	border-radius: 980px;
	background: #0071e3;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	min-width: 120px;
}

button:hover {
	background: #0077ed;
	box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

button:active {
	transform: scale(0.97);
	background: #0077ed;
}

button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	header {
		padding: 30px 16px 16px;
	}

	header h1 {
		font-size: 28px;
	}

	#status {
		font-size: 14px;
	}

	main {
		padding: 20px 16px;
	}

	section {
		flex-direction: column;
		gap: 20px;
	}

	section div {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	button {
		padding: 12px 24px;
		font-size: 14px;
	}

	canvas {
		max-width: 100%;
		height: auto;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		background: #000000;
	}

	header {
		background: #1c1c1e;
		border-bottom-color: #2c2c2e;
	}

	header h1 {
		color: #f5f5f7;
	}

	#status {
		color: #86868b;
	}

	section canvas {
		box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
	}
}
