:root {
	--bg: #0b0f17;
	--card: #121826;
	--line: #232c3d;
	--text: #f2f4f8;
	--muted: #8b95a8;
	--accent: #fbbf24;
	--low: #22c55e;
	--mid: #f59e0b;
	--high: #ef4444;
	color-scheme: dark;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
main { max-width: 48rem; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.hero { text-align: center; padding: 56px 0 28px; }
.badge {
	display: inline-block; margin: 0 0 20px; padding: 4px 12px;
	border-radius: 999px; font-size: 12px; font-weight: 600;
	color: var(--accent); background: rgb(251 191 36 / 0.1);
}
h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
.lede { margin: 0 auto; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
h2 { margin: 0; font-size: 1rem; }

.card {
	margin-bottom: 24px; padding: 20px;
	background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.bar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.seg { padding: 6px 12px; text-decoration: none; color: #cbd2de; background: #1a2233; }
.seg:hover { background: #222c42; }
.seg.on { background: var(--accent); color: #111827; font-weight: 600; }

.chart { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart text.strong { fill: var(--text); font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: #44506a; stroke-width: 1; }
.chart .divider { stroke: #44506a; stroke-width: 1; stroke-dasharray: 3 3; }
.bar.low { fill: var(--low); }
.bar.mid { fill: var(--mid); }
.bar.high { fill: var(--high); }
.bar { opacity: 0.88; }
.bar:hover { opacity: 1; }
.bar.cur { opacity: 1; stroke: #fff; stroke-width: 1.5; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; margin-top: 8px; font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; }
.dot.low { background: var(--low); }
.dot.mid { background: var(--mid); }
.dot.high { background: var(--high); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.stat .muted { font-size: 12px; }
.stat strong { display: block; font-size: 1.1rem; }
.stat.low strong, .stat.low div:last-child { color: var(--low); }
.stat.mid strong, .stat.mid div:last-child { color: var(--accent); }
.stat.high strong, .stat.high div:last-child { color: var(--high); }

.empty { padding: 56px 0; text-align: center; color: var(--muted); }
.note { margin: 12px 0 0; font-size: 13px; text-align: center; }
.daynav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.daynav a { color: var(--accent); text-decoration: none; }
.daynav a:hover { text-decoration: underline; }

.subscribe h2 { font-size: 1.25rem; margin-bottom: 4px; }
.subscribe p { margin: 0 0 16px; font-size: 14px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { flex: 1 1 14rem; padding: 12px 20px; border-radius: 12px; text-align: center; font-weight: 600; text-decoration: none; }
.btn.discord { background: #4f46e5; }
.btn.discord:hover { background: #6366f1; }
.btn.telegram { background: #0ea5e9; }
.btn.telegram:hover { background: #38bdf8; }
.btn.disabled { background: #1a2233; color: var(--muted); cursor: default; }

footer { padding: 24px 16px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }
footer a:hover { color: var(--text); }

@media (max-width: 480px) {
	.hero { padding-top: 36px; }
	.card { padding: 14px; }
	.chart text { font-size: 13px; }
}
