/* The Virtual World Archive control bar (bar.js). Self-contained: it sits on every skin and on the main website,
   so nothing here leans on the page's own styles. */
html { padding-top: 36px; }
/* The bar hangs above the body, so anything a skin pins to the top of the body stays below it. */
html.vwa-has-bar body { position: relative; }
#vwa-bar {
	position: absolute; top: -36px; left: 0; right: 0; height: 36px; z-index: 900;
	background: #0a0a0a; color: #fff;
	font: 700 13px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	letter-spacing: 0; text-transform: none; text-align: left;
}
#vwa-bar *, #vwa-bar *::before, #vwa-bar *::after { box-sizing: border-box; }
#vwa-bar .vwa-bar-inner {
	display: flex; align-items: center; gap: 4px; height: 36px; max-width: 1400px; margin: 0 auto; padding: 0 12px;
}
#vwa-bar a, #vwa-bar button {
	display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; margin: 0;
	border: 0; border-radius: 6px; background: none; color: #fff; font: inherit; text-decoration: none;
	white-space: nowrap; cursor: pointer; box-shadow: none; text-shadow: none; min-width: 0;
}
#vwa-bar a:hover, #vwa-bar button:hover, #vwa-bar .vwa-bar-me[aria-expanded="true"] { background: #2a2f33; color: #fff; }
#vwa-bar a:focus-visible, #vwa-bar button:focus-visible { outline: 2px solid #fccf6c; outline-offset: 1px; }
#vwa-bar .vwa-bar-brand img { width: 20px; height: 20px; display: block; }
#vwa-bar .vwa-bar-worlds { color: #a1d8eb; }
#vwa-bar .vwa-bar-side { margin-left: auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
#vwa-bar .vwa-bar-join { background: #fccf6c; color: #0a0a0a; }
#vwa-bar .vwa-bar-join:hover { background: #ffe09a; color: #0a0a0a; }
#vwa-bar .vwa-bar-account { position: relative; min-width: 0; }
#vwa-bar .vwa-bar-me { padding-left: 3px; max-width: 100%; }
#vwa-bar .vwa-bar-name { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
#vwa-bar .vwa-bar-avatar {
	width: 26px; height: 26px; flex: none; border-radius: 50%; background: #d9effa;
	/* An avatar is a whole figure: the chip shows its head. */
	object-fit: cover; object-position: 50% 0;
}
#vwa-bar .vwa-bar-initial { display: inline-flex; align-items: center; justify-content: center; color: #0b5f8a; font-size: 14px; }
#vwa-bar .vwa-bar-caret { font-size: 10px; opacity: .8; }
#vwa-bar .vwa-bar-menu {
	position: absolute; right: 0; top: 32px; min-width: 210px; padding: 6px;
	display: flex; flex-direction: column; gap: 2px;
	background: #0a0a0a; border: 1px solid #2a2f33; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
#vwa-bar .vwa-bar-menu[hidden] { display: none; }
#vwa-bar .vwa-bar-menu a, #vwa-bar .vwa-bar-menu button { width: 100%; height: 32px; justify-content: flex-start; }
#vwa-bar .vwa-bar-menu button { border-top: 1px solid #2a2f33; border-radius: 0 0 6px 6px; margin-top: 4px; }
@media (max-width: 520px) {
	#vwa-bar .vwa-bar-brand span { display: none; }
	#vwa-bar .vwa-bar-inner { padding: 0 6px; }
}
@media print {
	html { padding-top: 0; }
	#vwa-bar { display: none; }
}
/* The bar already has these, so the skins' own copies are put away. */
html.vwa-has-bar #pt-login, html.vwa-has-bar #pt-login-2, html.vwa-has-bar #pt-createaccount,
html.vwa-has-bar #pt-createaccount-2, html.vwa-has-bar #pt-logout, html.vwa-has-bar #pt-userpage { display: none; }
