:root {
	color-scheme: dark;
	--nav-height: 56px;
}

.top-nav {
	position: relative;
	z-index: 20;
	height: var(--nav-height);
	background: rgba(15, 17, 21, .94);
	border-bottom: 1px solid #2a2e38;
	backdrop-filter: blur(10px);
}

.top-nav__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.top-nav a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	height: 36px;
	padding: 0 13px;
	border: 1px solid transparent;
	border-radius: 7px;
	color: #aeb4c0;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.top-nav a:hover {
	color: #fff;
	background: #1b1e26;
}

.top-nav a[aria-current="page"] {
	color: #fff;
	background: #232732;
	border-color: #3a3f4b;
}

.top-nav [hidden] {
	display: none !important;
}

[hidden] {
	display: none !important;
}

.top-nav__lang {
	margin-left: auto;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #3a3f4b;
	border-radius: 7px;
	background: #14171e;
	color: #aeb4c0;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.top-nav__lang:hover {
	color: #fff;
	border-color: #4a505e;
}

/* When the language picker is present it already claims the right edge, so the
   player badge no longer needs to. */
.top-nav__lang ~ .top-nav__player {
	margin-left: 8px;
}

.top-nav__player {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 13px;
	border: 1px solid #3a3f4b;
	border-radius: 7px;
	color: #aeb4c0;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.top-nav__player:hover {
	color: #fff;
	background: #1b1e26;
}

.top-nav__nick {
	color: #fff;
}

.top-nav__stars {
	color: #ffd45e;
}

@media (max-width: 640px) {
	.top-nav {
		height: auto;
		overflow-x: auto;
	}

	.top-nav__inner {
		width: max-content;
		min-width: 100%;
		height: 52px;
		padding: 0 10px;
	}

	.top-nav a {
		padding: 0 10px;
		font-size: 11.5px;
	}
}
