:root {
	--bg: #0b0c0e;
	--surface: #131417;
	--surface-2: #1a1b1f;
	--border: #24262b;
	--text: #ececee;
	--muted: #8a8d96;
	--accent: #3ddc97;
	--accent-soft: rgba(61, 220, 151, 0.12);
	--danger: #ff6b6b;
	--radius: 14px;
	--mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
	background:
		radial-gradient(900px 500px at 50% -200px, rgba(61, 220, 151, 0.08), transparent 70%),
		var(--bg);
	color: var(--text);
	font-family: "Geist", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

a { color: inherit; }

.dim { color: var(--muted); }

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 20px 48px;
}

/* Header */
.hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.logo {
	width: 30px; height: 30px;
	border-radius: 8px;
	object-fit: contain;
}
.brand-name { font-size: 14px; }

/* Counter */
.counter { text-align: center; padding: 64px 0 40px; }
.big {
	font-size: clamp(72px, 14vw, 120px);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.counter-label { margin-top: 10px; color: var(--muted); font-size: 15px; }
.meta {
	margin-top: 16px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}
.sep { margin: 0 8px; opacity: 0.5; }

/* Links */
.links {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin-bottom: 40px;
}
.links a {
	text-decoration: none;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--muted);
	transition: color .15s, border-color .15s, background .15s;
}
.links a span { opacity: 0.5; margin-left: 2px; }
.links a:hover { color: var(--text); border-color: #3a3d44; background: var(--surface); }

/* Games */
.games { display: flex; flex-direction: column; gap: 8px; }

.game {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .2s;
	animation: rise .4s ease both;
	animation-delay: calc(var(--i) * 40ms);
}
.game:hover, .game[open] { border-color: #34363c; }

@keyframes rise {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.game summary {
	list-style: none;
	display: flex; align-items: center; gap: 16px;
	padding: 16px 18px;
	cursor: pointer;
	user-select: none;
}
.game summary::-webkit-details-marker { display: none; }

.game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.game-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-ids { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.game-count {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chev { color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.game[open] .chev { transform: rotate(90deg); }

.groups {
	border-top: 1px solid var(--border);
	padding: 14px 18px 18px;
	display: grid; gap: 12px;
}
.group { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.group-name { font-family: var(--mono); font-size: 13px; }
.chip {
	font-family: var(--mono); font-size: 11px; color: var(--muted);
	border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
th:first-child { width: 40%; }
th {
	text-align: left; font-weight: 500; font-size: 11px;
	text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--muted); padding: 6px 0;
}
td { padding: 7px 0; border-top: 1px solid var(--border); vertical-align: top; }
td.nick { font-weight: 500; }
.port {
	display: inline-block; margin: 0 4px 4px 0;
	font-family: var(--mono); font-size: 11px;
	padding: 1px 6px; border-radius: 5px;
	background: var(--bg); color: var(--muted);
}

.empty {
	text-align: center; color: var(--muted);
	padding: 40px; border: 1px dashed var(--border); border-radius: var(--radius);
}

/* Footer */
.footer {
	margin-top: 56px; text-align: center;
	font-size: 12px; color: var(--muted); line-height: 1.7;
}
.footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.footer a:hover { border-color: var(--text); }

@media (max-width: 520px) {
	.counter { padding: 48px 0 32px; }
	.game summary { padding: 14px; gap: 10px; }
	.groups { padding: 12px 14px 14px; }
	.pc-break { display: none; }
}

@media (min-width: 520px) {
	.mobile-break {display: none; }
}
