/* Wiki — Sistema de Almas */
.almas-page {
	--al-blue: #2b8ae8;
	--al-blue-soft: #e8f3fc;
	--al-purple: #7c4dff;
	--al-purple-soft: #f3edff;
	--al-red: #d64545;
	--al-red-soft: #fdecec;
	--al-ink: #243044;
}

.almas-hero {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	margin-bottom: 1.6rem;
	padding: 1.15rem 1.15rem 1.05rem;
	background:
		radial-gradient(circle at 18% 0%, rgba(78, 172, 255, 0.22), transparent 36%),
		radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.14), transparent 32%),
		radial-gradient(circle at 84% 0%, rgba(214, 69, 69, 0.16), transparent 34%),
		linear-gradient(165deg, #101826 0%, #15283c 48%, #101c2a 100%);
	box-shadow: 0 18px 48px rgba(16, 24, 38, 0.28);
	color: #e8eef6;
}

.almas-hero__roster {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
	margin: 0 0 1.05rem;
}

.almas-hero__fig {
	margin: 0;
	text-align: center;
	padding: 0.25rem 0.45rem 0.75rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 14, 24, 0.28);
}

.almas-hero__fig--normal {
	background: linear-gradient(180deg, rgba(43, 138, 232, 0.22), rgba(8, 14, 24, 0.18) 62%);
	border-color: rgba(126, 196, 255, 0.32);
}

.almas-hero__fig--mini {
	background: linear-gradient(180deg, rgba(124, 77, 255, 0.26), rgba(8, 14, 24, 0.18) 62%);
	border-color: rgba(196, 170, 255, 0.34);
}

.almas-hero__fig--mvp {
	background: linear-gradient(180deg, rgba(214, 69, 69, 0.24), rgba(8, 14, 24, 0.18) 62%);
	border-color: rgba(255, 150, 150, 0.32);
}

.almas-hero__fig img {
	display: block;
	width: 118px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.almas-hero__fig--normal img { filter: drop-shadow(0 10px 14px rgba(43, 138, 232, 0.4)); }
.almas-hero__fig--mini img { filter: drop-shadow(0 10px 14px rgba(124, 77, 255, 0.42)); }
.almas-hero__fig--mvp img { filter: drop-shadow(0 10px 14px rgba(214, 69, 69, 0.4)); }

.almas-hero__fig figcaption {
	margin-top: 0.1rem;
}

.almas-hero__name {
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.almas-hero__fig--normal .almas-hero__name { color: #9fd0ff; }
.almas-hero__fig--mini .almas-hero__name { color: #d4c4ff; }
.almas-hero__fig--mvp .almas-hero__name { color: #ffb4b4; }

.almas-hero__rate {
	display: block;
	margin-top: 0.18rem;
	font-size: 1.35rem;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}

.almas-hero__meta {
	display: block;
	margin-top: 0.28rem;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(232, 238, 246, 0.72);
}

.almas-hero__qty {
	display: block;
	margin-top: 0.12rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: rgba(232, 238, 246, 0.88);
}

.almas-hero__lead {
	margin: 0 0 1rem;
	color: rgba(232, 238, 246, 0.88);
	line-height: 1.65;
	max-width: 46rem;
}

.almas-hero__lead strong {
	color: #fff;
	font-weight: 700;
}

.almas-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.55rem;
	margin-bottom: 0.95rem;
}

.almas-stat {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 0.7rem 0.75rem 0.75rem;
}

.almas-stat strong {
	display: block;
	font-size: 1.12rem;
	line-height: 1.15;
	color: #fff;
}

.almas-stat span {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.76rem;
	line-height: 1.35;
	color: rgba(232, 238, 246, 0.68);
}

.almas-jump {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.4rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.almas-jump a {
	text-align: center;
	color: #d7ecff;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.42rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(126, 196, 255, 0.22);
	background: rgba(78, 172, 255, 0.1);
}

.almas-jump a:hover,
.almas-jump a:focus-visible {
	background: rgba(78, 172, 255, 0.24);
	border-color: rgba(126, 196, 255, 0.45);
	color: #fff;
	outline: none;
}

.almas-lead {
	color: #4d5b6c;
	line-height: 1.7;
	max-width: 48rem;
}

.almas-steps {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.almas-steps li {
	background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
	border: 1px solid rgba(78, 172, 255, 0.2);
	border-radius: 14px;
	padding: 0.9rem 0.85rem 1rem;
}

.almas-steps__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 8px;
	background: linear-gradient(135deg, #4eacff 0%, #2b8ae8 100%);
	color: #fff;
	font-weight: 800;
	font-size: 0.85rem;
	margin-bottom: 0.45rem;
}

.almas-steps strong {
	display: block;
	color: var(--al-ink);
	margin-bottom: 0.25rem;
}

.almas-steps p {
	margin: 0;
	color: #5b6778;
	font-size: 0.9rem;
	line-height: 1.5;
}

.almas-note {
	margin: 0 0 1.5rem;
	color: #4d5b6c;
	line-height: 1.65;
}

.almas-rarity {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
	margin-bottom: 0.8rem;
}

.almas-rarity__card {
	border-radius: 16px;
	padding: 1rem 1rem 1.05rem;
	border: 1px solid transparent;
	background: #fff;
}

.almas-rarity__card img {
	width: 72px;
	height: auto;
	display: block;
	margin-bottom: 0.55rem;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.almas-rarity__card--normal {
	background: var(--al-blue-soft);
	border-color: rgba(43, 138, 232, 0.28);
}

.almas-rarity__card--mini {
	background: var(--al-purple-soft);
	border-color: rgba(124, 77, 255, 0.28);
}

.almas-rarity__card--mvp {
	background: var(--al-red-soft);
	border-color: rgba(214, 69, 69, 0.28);
}

.almas-rarity__card strong {
	display: block;
	color: var(--al-ink);
}

.almas-rarity__card p {
	margin: 0.35rem 0 0;
	color: #516070;
	font-size: 0.92rem;
	line-height: 1.5;
}

.almas-drop {
	display: inline-block;
	margin-top: 0.45rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #2b8ae8;
}

.almas-rarity__card--mini .almas-drop { color: #6d28d9; }
.almas-rarity__card--mvp .almas-drop { color: #c03636; }

.almas-rules {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.4rem;
}

.almas-rule {
	border-radius: 14px;
	padding: 0.95rem 1rem;
	background: #fff;
	border: 1px solid rgba(78, 172, 255, 0.18);
}

.almas-rule h4 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	color: var(--al-ink);
}

.almas-rule p {
	margin: 0;
	color: #516070;
	font-size: 0.92rem;
	line-height: 1.55;
}

.almas-guardian {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	border-radius: 16px;
	padding: 1.05rem 1.15rem;
	margin-bottom: 1.5rem;
	background:
		linear-gradient(180deg, rgba(78, 172, 255, 0.1), transparent 70%),
		#f7fbff;
	border: 1px solid rgba(78, 172, 255, 0.24);
}

.almas-guardian h4 {
	margin: 0 0 0.3rem;
	color: var(--al-ink);
}

.almas-guardian p {
	margin: 0;
	color: #516070;
	max-width: 40rem;
	line-height: 1.55;
}

.almas-navi {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.55rem 0.95rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #4eacff 0%, #2b8ae8 100%);
	box-shadow: 0 8px 18px rgba(43, 138, 232, 0.28);
}

.almas-navi.is-copied {
	background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.almas-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin-bottom: 0.85rem;
}

.almas-search {
	flex: 1 1 220px;
	min-width: 0;
	border: 1px solid rgba(78, 172, 255, 0.35);
	border-radius: 12px;
	padding: 0.55rem 0.8rem;
	font-size: 0.95rem;
	color: var(--al-ink);
	background: #fff;
}

.almas-search:focus {
	outline: 2px solid rgba(78, 172, 255, 0.45);
	border-color: #2b8ae8;
}

.almas-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.almas-filter {
	appearance: none;
	border: 1px solid rgba(78, 172, 255, 0.28);
	background: #fff;
	color: #3d4d60;
	border-radius: 999px;
	padding: 0.4rem 0.75rem;
	font-weight: 700;
	font-size: 0.82rem;
	cursor: pointer;
}

.almas-filter.is-active {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, #4eacff 0%, #2b8ae8 100%);
}

.almas-filter--mini.is-active {
	background: linear-gradient(135deg, #9b7bff 0%, #6d28d9 100%);
}

.almas-filter--mvp.is-active {
	background: linear-gradient(135deg, #f07171 0%, #d64545 100%);
}

.almas-count {
	margin: 0 0 0.8rem;
	color: #6b7788;
	font-size: 0.88rem;
}

.almas-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
}

.almas-card {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	background: #fff;
	border: 1px solid rgba(36, 48, 68, 0.08);
	border-radius: 14px;
	padding: 0.7rem 0.9rem;
	min-width: 0;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.almas-card[data-rarity="normal"] { border-left: 3px solid #2b8ae8; }
.almas-card[data-rarity="mini"] { border-left: 3px solid #7c4dff; }
.almas-card[data-rarity="mvp"] { border-left: 3px solid #d64545; }

.almas-card[hidden] {
	display: none !important;
}

.almas-card__art {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef5fc;
}

.almas-card[data-rarity="mini"] .almas-card__art { background: #f3edff; }
.almas-card[data-rarity="mvp"] .almas-card__art { background: #fdecec; }

.almas-card__art img {
	width: 78px;
	height: 78px;
	max-width: none;
	object-fit: cover;
	object-position: center 42%;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.almas-card__body {
	min-width: 0;
}

.almas-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.45rem;
	margin-bottom: 0.2rem;
}

.almas-card__tag {
	flex-shrink: 0;
	font-size: 0.68rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.1rem 0.45rem;
	line-height: 1.4;
}

.almas-card__tag--normal { background: var(--al-blue-soft); color: #1d6fbe; }
.almas-card__tag--mini { background: var(--al-purple-soft); color: #6d28d9; }
.almas-card__tag--mvp { background: var(--al-red-soft); color: #c03636; }

.almas-card h4 {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.3;
	color: var(--al-ink);
}

.almas-card p {
	margin: 0;
	color: #516070;
	font-size: 0.84rem;
	line-height: 1.45;
}

.almas-empty {
	display: none;
	margin: 0.4rem 0 0;
	padding: 1rem;
	border-radius: 12px;
	background: #f6f9fc;
	color: #5b6778;
}

.almas-empty.is-visible {
	display: block;
}

@media (max-width: 991.98px) {
	.almas-stats,
	.almas-steps,
	.almas-rarity,
	.almas-rules {
		grid-template-columns: 1fr 1fr;
	}

	.almas-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575.98px) {
	.almas-stats,
	.almas-steps,
	.almas-rarity,
	.almas-rules,
	.almas-grid {
		grid-template-columns: 1fr;
	}

	.almas-jump {
		display: flex;
		flex-wrap: wrap;
	}

	.almas-jump a {
		flex: 1 1 calc(50% - 0.4rem);
	}

	.almas-hero__roster {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.almas-hero__fig {
		display: grid;
		grid-template-columns: 92px minmax(0, 1fr);
		align-items: center;
		text-align: left;
		padding: 0.15rem 0.85rem 0.15rem 0.15rem;
	}

	.almas-hero__fig img {
		width: 88px;
	}

	.almas-hero__fig figcaption {
		margin-top: 0;
	}
}
