/* Canonical compact map tooltip treatment, shared with World Atlas surfaces. */
.aoy-map-ro-tooltip {
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
	filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
	z-index: 2147483646 !important;
	isolation: isolate;
}

.aoy-map-ro-tooltip,
.aoy-map-ro-tooltip * {
	text-shadow: none !important;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-head {
	gap: 10px;
	min-height: 48px;
	padding: 7px 20px 1px 9px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-icon {
	width: 36px;
	height: 36px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-icon img.is-map-preview {
	width: 118%;
	height: 118%;
	object-fit: cover;
	transform: translate(-2px, -12px);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-head > div:last-child {
	min-width: 0;
	transform: translateY(-3px);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-title {
	max-width: 250px;
	color: #152238;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.15;
	transform: none;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-subtitle {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	max-width: 100%;
	margin-top: 3px;
	padding: 2px 6px;
	border: 1px solid rgba(47, 116, 171, 0.15);
	border-radius: 999px;
	background: rgba(78, 157, 210, 0.08);
	color: #527086;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.025em;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-subtitle i {
	color: inherit !important;
	font-size: 8px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-subtitle.is-map-type-town {
	border-color: rgba(99, 102, 241, 0.17);
	background: rgba(99, 102, 241, 0.075);
	color: #5b5fd6;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-subtitle.is-map-type-field {
	border-color: rgba(52, 211, 153, 0.17);
	background: rgba(52, 211, 153, 0.075);
	color: #25815f;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-subtitle.is-map-type-dungeon {
	border-color: rgba(251, 113, 133, 0.17);
	background: rgba(251, 113, 133, 0.075);
	color: #c35063;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-subtitle.is-map-type-indoor {
	border-color: rgba(102, 119, 138, 0.17);
	background: rgba(102, 119, 138, 0.075);
	color: #66778a;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-body {
	min-height: 58px;
	padding: 6px 12px 7px;
	color: #3f4650;
	font-size: 11px;
	line-height: 1.35;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-desc-head {
	gap: 6px;
	margin: 0 0 5px;
	padding: 0 0 5px;
	border-bottom: 1px solid rgba(59, 93, 116, 0.12);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-desc-head img {
	width: 15px;
	height: 15px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-desc-head strong {
	color: #385b73;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stats {
	--aoy-map-type-accent: #397eae;
	--aoy-map-type-bg: rgba(57, 126, 174, 0.075);
	--aoy-map-type-border: rgba(57, 126, 174, 0.17);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 5px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stats.is-map-type-town {
	--aoy-map-type-accent: #5b5fd6;
	--aoy-map-type-bg: rgba(99, 102, 241, 0.075);
	--aoy-map-type-border: rgba(99, 102, 241, 0.17);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stats.is-map-type-field {
	--aoy-map-type-accent: #25815f;
	--aoy-map-type-bg: rgba(52, 211, 153, 0.075);
	--aoy-map-type-border: rgba(52, 211, 153, 0.17);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stats.is-map-type-dungeon {
	--aoy-map-type-accent: #c35063;
	--aoy-map-type-bg: rgba(251, 113, 133, 0.075);
	--aoy-map-type-border: rgba(251, 113, 133, 0.17);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stats.is-map-type-indoor {
	--aoy-map-type-accent: #66778a;
	--aoy-map-type-bg: rgba(102, 119, 138, 0.075);
	--aoy-map-type-border: rgba(102, 119, 138, 0.17);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stat {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	min-height: 37px;
	padding: 5px 6px 4px;
	box-sizing: border-box;
	border: 1px solid var(--aoy-map-type-border);
	border-top: 2px solid var(--aoy-map-type-accent);
	border-radius: 6px;
	background: var(--aoy-map-type-bg);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stat span {
	display: flex;
	align-items: center;
	gap: 3px;
	color: var(--aoy-map-type-accent);
	font-size: 7.5px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stat span i {
	width: 9px;
	color: inherit !important;
	font-size: 7px;
	text-align: center;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-stat strong {
	color: var(--aoy-map-type-accent);
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mobs {
	margin-top: 7px;
	padding-top: 6px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mobs-label {
	margin-bottom: 4px;
	color: #385b73;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.07em;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mobs-list {
	gap: 2px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mob {
	min-height: 23px;
	padding: 2px 4px;
	border-radius: 5px;
	background: rgba(61, 96, 118, 0.045);
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mob-icon,
.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mob-icon img {
	width: 17px;
	height: 17px;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mob-name {
	color: #273541;
	font-size: 10px;
	font-weight: 700;
}

.aoy-map-ro-tooltip .monster-db-ro-tooltip-map-mob-count {
	padding: 1px 5px;
	border-radius: 999px;
	background: rgba(51, 124, 171, 0.1);
	color: #35779f;
	font-size: 9px;
	font-weight: 800;
}

@media (max-width: 420px) {
	.aoy-map-ro-tooltip .monster-db-ro-tooltip-title {
		max-width: calc(100vw - 100px);
	}
}
