.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	background: var(--bg-surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
	z-index: 100;
}

.nav-menu-toggle {
	background: none;
	border: none;
	width: 32px;
	height: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	padding: 0;
}
.nav-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
}

.nav-logo img {
	height: 32px;
	width: auto;
}

.nav-profile {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
}
.nav-profile svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* The signed-in player's picture, shown in place of the generic icon. A round
   photo reads smaller than a glyph, so it is a touch larger. */
.nav-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--border-color);
}

.nav-menu {
	position: fixed;
	top: 60px;
	left: 0;
	bottom: 0;
	width: 260px;
	background: var(--bg-surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-right: 1px solid var(--border-color);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	z-index: 99;
}
.nav-menu.open {
	transform: translateX(0);
}
.nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 1rem 0;
}
.nav-menu a {
	display: block;
	padding: 0.75rem 1.5rem;
	color: var(--text-primary);
	text-decoration: none;
}
.nav-menu a:hover {
	background: rgba(255, 255, 255, 0.05);
}

body {
	padding-top: 60px;
}

.nav-profile-wrap {
	position: relative;
}
.nav-profile {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.nav-profile-dropdown {
	position: absolute;
	top: 44px;
	right: 0;
	min-width: 200px;
	background: var(--bg-surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 0.75rem;
	display: none;
	flex-direction: column;
	gap: 0.5rem;
}
.nav-profile-dropdown.open {
	display: flex;
}
.nav-profile-email {
	font-size: 0.85rem;
	color: var(--text-muted);
	word-break: break-all;
}
.nav-profile-dropdown button {
	background: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0.5rem;
	cursor: pointer;
	font-weight: 600;
}

.nav-dropdown-link {
	display: block;
	padding: 0.5rem;
	border-radius: 6px;
	color: var(--text-primary);
}
.nav-dropdown-link:hover {
	background: rgba(255, 255, 255, 0.05);
}
.nav-dropdown-link[hidden] {
	display: none;
}

/* Offline indicator. Sits left of the account button on every page. */
.nav-offline {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	margin-right: 0.75rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid var(--border-color);
	border-radius: 999px;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
	white-space: nowrap;
}
.nav-offline[hidden] { display: none; }
.nav-offline-pip {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--warning-color, #d8a23a);
	flex: 0 0 auto;
}
