:root {
	--bg: #0f1117;
	--panel: #1a1d24;
	--text: #e6edf3;
	--muted: #8b949e;
	--accent: #00d4ff;
	--accent-soft: rgba(0, 212, 255, 0.18);
	--matrix-font-size: 20px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Segoe UI", "PingFang SC", sans-serif;
}

html,
body {
	height: 100%;
	overflow: hidden;
}

body {
	background: var(--bg);
	color: var(--text);
}

.app {
	width: 100%;
	height: 100vh;
	padding: 10px 16px 20px;
	display: flex;
	flex-direction: column;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.tab {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: #c0c7d1;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 8px 10px;
	cursor: pointer;
}

.tab.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.control-btn {
	background: var(--panel);
	color: #fff;
	border: none;
	border-radius: 6px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.control-btn:hover {
	color: var(--accent);
}

.github-link svg {
	width: 20px;
	height: 20px;
}

main {
	flex: 1;
	width: 100%;
	min-height: 0;
}

.page {
	display: none;
	width: 100%;
	height: 100%;
	text-align: center;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.page.active {
	display: flex;
	flex-direction: column;
}

@media (max-width: 600px) {
	.app {
		padding: 8px 10px 14px;
	}

	.tab {
		font-size: 13px;
		padding: 6px 8px;
	}
}
