@font-face {
	font-family: 'Titillium Web';
	src: url('/static/fonts/TitilliumWeb-Regular.woff2?v=4750196') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Titillium Web';
	src: url('/static/fonts/TitilliumWeb-Bold.woff2?v=8672f69') format('woff2');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

html,
body.embed-page {
	height: 100%;
	margin: 0;
	overflow: hidden;
}

body.embed-page {
	background-image: none;
}

.map-embed-page {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 8px;
	box-sizing: border-box;
}

body.map-embed-bg-transparent {
	background-color: transparent;
}

.map-embed-bg-transparent .map-embed-page {
	padding: 0;
}

body.map-embed-font-tavern {
	font-family: 'Titillium Web', sans-serif;
}

.map-embed-font-tavern button,
.map-embed-font-tavern input,
.map-embed-font-tavern select {
	font-family: inherit;
}

.map-embed-no-controls .map-view-toolbar {
	display: none !important;
}

.map-embed-credit {
	position: absolute;
	right: 4px;
	bottom: 4px;
	z-index: 1002;
	padding: 2px 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 3px;
	text-decoration: none;
}

.map-embed-credit:hover {
	text-decoration: underline;
}

.map-embed-bg-wcdb .map-embed-credit {
	right: 12px;
	bottom: 12px;
}

.map-embed-status {
	margin: auto;
	color: var(--text-muted, #888);
}

.map-embed-page .map-view-toolbar {
	flex: 0 0 auto;
}

.map-embed-page .map-view-body,
.map-embed-page .world-map-body {
	position: relative;
	flex: 1 1 auto;
	flex-direction: row;
	height: auto;
	min-height: 0;
}

.map-embed-page .map-view-body {
	container-type: size;
	justify-content: center;
	align-items: center;
}

.map-embed-page .map-view-wrapper {
	align-self: center;
	width: min(100cqw, 100cqh * var(--map-ratio, 1.5));
	height: min(100cqh, 100cqw / var(--map-ratio, 1.5));
}

.map-embed-crop .map-view-body {
	overflow: hidden;
	border-radius: 4px;
}

.map-embed-page.map-embed-crop .map-view-wrapper {
	--crop-w: max(100cqw, 100cqh * var(--map-ratio, 1.5));
	--crop-h: max(100cqh, 100cqw / var(--map-ratio, 1.5));
	position: absolute;
	left: clamp(100cqw - var(--crop-w), 50cqw - var(--focus-x, 0.5) * var(--crop-w), 0px);
	top: clamp(100cqh - var(--crop-h), 50cqh - var(--focus-y, 0.5) * var(--crop-h), 0px);
	width: var(--crop-w);
	height: var(--crop-h);
	border-radius: 0;
}

.map-embed-page .map-view-canvas {
	width: 100%;
	height: 100%;
	max-width: none;
}

.map-embed-page .world-map-wrapper {
	flex: 1 1 auto;
	height: auto;
}

.map-embed-page .map-view-legend {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 220px;
	max-width: 70%;
	min-height: 0;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.85);
}

.map-embed-page .map-view-legend-inner {
	position: absolute;
}
