/* =============================================================================
   PVP -- guia de drops: filtros numa janela do jogo, um ThinBoard por item com
   o icone num slot, o monstro com o retrato 3D num slot, os selos de onde ele
   nasce e o mapa do PVP com os pontos, que abre por item.
   ============================================================================= */

.c-pvp-guia__voltar { margin: 1rem 0 0; }

/* ---- filtros ------------------------------------------------------------------- */
.c-pvp-guia__filtros {
	display: grid;
	gap: 8px;
	margin: 0 0 1.5rem;
}

.c-pvp-guia__filtros[hidden] { display: none; }

.c-pvp-guia__linha {
	display: grid;
	grid-template-columns: 4.5rem 1fr auto;
	align-items: center;
	gap: 8px;
}

.c-pvp-guia__rotulo {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #e9c58a;
}

.c-pvp-guia__chips {
	grid-column: 2 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.c-pvp-guia__chip {
	min-height: 32px;
	padding: 0 .7rem;
	border: 5px solid transparent;
	border-image: url("../assets/pvp/ui/aba-1.png") 12 fill / 5px stretch;
	background: none;
	color: rgba(232, 220, 192, .8);
	font: inherit;
	font-size: .82rem;
	font-weight: 700;
	text-shadow: 0 1px 2px #000;
	cursor: pointer;
}

.c-pvp-guia__chip small { opacity: .6; font-weight: 600; }

.c-pvp-guia__chip.is-ativo {
	border-image-source: url("../assets/pvp/ui/aba-3.png");
	color: #1b1408;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.c-pvp-guia__busca {
	min-height: 36px;
	padding: 0 .7rem;
	border: 3px solid transparent;
	border-image: url("../assets/pvp/ui/numero.png") 6 fill / 3px stretch;
	background: none;
	color: #fff;
	font: inherit;
	font-size: .92rem;
	width: 100%;
	max-width: 24rem;
}

.c-pvp-guia__busca::placeholder { color: rgba(232, 220, 192, .4); }
.c-pvp-guia__contagem { min-width: 3rem; }

/* ---- grupos e cartoes ---------------------------------------------------------- */
.c-pvp-guia__grupo { margin: 0 0 1.6rem; }
.c-pvp-guia__grupo[hidden] { display: none; }

.c-pvp-guia__grupo-titulo {
	margin: 0 0 .7rem;
	font-family: var(--pvp-radical);
	font-weight: 400;
	font-size: 1.7rem;
	color: #f3e6c4;
	text-shadow: 0 2px 0 #000;
}

.c-pvp-guia__grupo-titulo small {
	font-family: var(--fonte);
	font-size: .85rem;
	color: rgba(232, 220, 192, .5);
}

.c-pvp-guia__grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-pvp-guia__item {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 10px 12px;
	transition: transform .2s cubic-bezier(.2, .8, .2, 1.3);
}

.c-pvp-guia__item[hidden] { display: none; }
.c-pvp-guia__item:hover { transform: translateY(-2px); }

.c-pvp-guia__topo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.c-pvp-guia__slot {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	background: url("../assets/pvp/ui/slot.png") center / 100% 100% no-repeat;
}

.c-pvp-guia__slot.is-alto {
	height: 80px;
	background:
		url("../assets/pvp/ui/slot.png") center top / 44px 44px no-repeat,
		url("../assets/pvp/ui/slot.png") center bottom / 44px 44px no-repeat;
}

.c-pvp-guia__slot img { max-width: 32px; max-height: 64px; filter: drop-shadow(0 1px 1px #000); }

.c-pvp-guia__nome { display: grid; min-width: 0; }
.c-pvp-guia__nome b { color: #ffd76a; font-size: 1rem; line-height: 1.25; }
.c-pvp-guia__nome small { color: rgba(232, 220, 192, .6); font-size: .78rem; }

.c-pvp-guia__mob {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	background: rgba(0, 0, 0, .35);
	font-size: .88rem;
	color: rgba(232, 220, 192, .85);
}

.c-pvp-guia__mob > span:last-child { display: grid; }
.c-pvp-guia__mob small { color: rgba(232, 220, 192, .55); font-size: .76rem; }
.c-pvp-guia__quem b { color: #f3e6c4; }

.c-pvp-guia__quem em {
	margin-left: 4px;
	padding: 0 4px;
	border: 1px solid #000;
	background: #8f2a20;
	color: #fff;
	font-style: normal;
	font-size: .66rem;
	font-weight: 800;
	text-transform: uppercase;
}

.c-pvp-guia__retrato { overflow: hidden; }
.c-pvp-guia__retrato img { width: 40px; height: 40px; object-fit: cover; }

.c-pvp-guia__retrato b {
	font-family: var(--pvp-radical);
	font-size: 1.4rem;
	color: #c9bfa6;
	text-shadow: 0 1px 0 #000;
}

.c-pvp-guia__onde {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
}

.c-pvp-guia__selo {
	padding: 1px 6px;
	border: 1px solid #6f5a33;
	background: rgba(0, 0, 0, .55);
	color: #e9c58a;
	font-size: .74rem;
	font-weight: 700;
}

.c-pvp-guia__selo--lado {
	border-color: color-mix(in srgb, var(--c) 60%, #000);
	color: var(--c);
}

.c-pvp-guia__tambem {
	margin: 0;
	font-size: .8rem;
	line-height: 1.45;
	color: rgba(232, 220, 192, .6);
}

.c-pvp-guia__mapa summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffd76a;
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.c-pvp-guia__mapa summary::-webkit-details-marker { display: none; }

.c-pvp-guia__mapa summary::before {
	content: "";
	width: 7px;
	height: 7px;
	border: 2px solid #d9b45a;
	transform: rotate(45deg);
	transition: transform .2s, background .2s;
}

.c-pvp-guia__mapa[open] summary::before { background: #d9b45a; transform: rotate(135deg); }

.c-pvp-guia__quadro {
	position: relative;
	margin-top: 8px;
	line-height: 0;
	box-shadow: 0 0 0 1px #000, 0 0 0 2px #6f5a33;
}

.c-pvp-guia__quadro img { width: 100%; height: auto; }

.c-pvp-guia__ponto {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 2px #000, 0 0 12px var(--c);
}

.c-pvp-guia__ponto::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid var(--c);
	animation: c-pvp-guia-onda 1.8s ease-out infinite;
}

@keyframes c-pvp-guia-onda {
	from { transform: scale(1); opacity: .9; }
	to   { transform: scale(3); opacity: 0; }
}

.c-pvp-guia__vazio { padding: 10px 14px; color: rgba(232, 220, 192, .75); }
.c-pvp-guia__vazio[hidden] { display: none; }

@media (max-width: 560px) {
	.c-pvp-guia__linha { grid-template-columns: 1fr auto; }
	.c-pvp-guia__rotulo { grid-column: 1 / -1; }
	.c-pvp-guia__chips { grid-column: 1 / -1; }
	.c-pvp-guia__chip { font-size: .76rem; padding: 0 .5rem; }
	.c-pvp-guia__busca { max-width: none; }
	.c-pvp-guia__grade { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.c-pvp-guia__ponto::after { animation: none; }
}
