/* Shared tier list tokens — inherits blog theme where possible */
.atl-tier-list {
	--atl-border: rgba(128, 128, 128, 0.35);
	--atl-surface: transparent;
	--atl-surface-muted: rgba(128, 128, 128, 0.08);
	--atl-accent: currentColor;
	--atl-radius: 6px;
	--atl-icon-size: 56px;
	box-sizing: border-box;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 1.5em 0;
	clear: both;
}

.atl-tier-list *,
.atl-tier-list *::before,
.atl-tier-list *::after {
	box-sizing: border-box;
}

.atl-char {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	width: var(--atl-icon-size);
	vertical-align: top;
}

.atl-char-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: var(--atl-radius);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.atl-char-link:hover {
	transform: translateY(-2px);
}

.atl-char img,
.atl-char-placeholder {
	width: var(--atl-icon-size);
	height: var(--atl-icon-size);
	border-radius: var(--atl-radius);
	object-fit: cover;
	display: block;
	border: 1px solid var(--atl-border);
}

.atl-char-placeholder {
	background: var(--atl-surface-muted);
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 700;
	opacity: 0.85;
}

.atl-char-badge {
	position: absolute;
	top: 2px;
	left: 2px;
	background: #c53030;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 1px 4px;
	border-radius: 3px;
	line-height: 1.2;
	z-index: 1;
}

.atl-char-name {
	font-size: 0.7rem;
	margin-top: 4px;
	text-align: center;
	max-width: calc(var(--atl-icon-size) + 8px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.9;
}

.atl-char[data-tooltip] {
	cursor: help;
}

.atl-char[data-tooltip]:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.88);
	color: #fff;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.4;
	white-space: normal;
	width: max-content;
	max-width: 240px;
	z-index: 20;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
