/* =========================================================
   SAVE GAME — WIDGET ÁRVORE DE REPRODUÇÃO DE PALS
   ========================================================= */

.sg-arvore-widget {
	box-sizing: border-box;

	width: 100%;
	margin: 0;
	padding: 22px;

	overflow: hidden;

	border: 1px solid rgba(135, 88, 245, 0.22);
	border-radius: 14px;

	background:
		linear-gradient(
			145deg,
			#ffffff 0%,
			#ffffff 68%,
			#faf8ff 100%
		);

	box-shadow:
		0 8px 26px rgba(22, 22, 22, 0.06);
}


/* =========================================================
   TAG
   ========================================================= */

.sg-arvore-widget__tag {
	display: inline-flex;
	align-items: center;

	margin: 0 0 10px;
	padding: 5px 9px;

	border-radius: 999px;

	background: rgba(135, 88, 245, 0.10);

	color: #8758f5;

	font-size: 10px;
	font-weight: 800;
	line-height: 1;

	letter-spacing: 0.7px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.sg-arvore-widget__titulo {
	margin: 0 0 9px;
	padding: 0;

	color: #161616;

	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}


/* =========================================================
   TEXTO
   ========================================================= */

.sg-arvore-widget__texto {
	margin: 0 0 20px;
	padding: 0;

	color: #606269;

	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
}


/* =========================================================
   PRÉVIA DA REPRODUÇÃO
   ========================================================= */

.sg-arvore-widget__preview {
	box-sizing: border-box;

	display: flex;
	flex-direction: column;
	align-items: center;

	width: 100%;

	margin: 0 0 20px;
	padding: 18px 14px;

	border: 1px solid rgba(135, 88, 245, 0.16);
	border-radius: 11px;

	background:
		linear-gradient(
			145deg,
			rgba(135, 88, 245, 0.025) 0%,
			rgba(135, 88, 245, 0.065) 100%
		);
}


/* =========================================================
   PAIS — DUPIN + FLARACLE
   ========================================================= */

.sg-arvore-widget__pais {
	display: grid;

	grid-template-columns:
		minmax(0, 1fr)
		auto
		minmax(0, 1fr);

	align-items: start;

	width: 78%;

	margin: 0 auto;
	padding: 0;

	gap: 8px;
}


/* =========================================================
   PAL
   ========================================================= */

.sg-arvore-widget__pal {
	display: flex;
	flex-direction: column;

	align-items: center;
	justify-content: center;

	min-width: 0;

	text-align: center;
}


.sg-arvore-widget__pal strong {
	display: block;

	max-width: 100%;

	margin: 6px 0 0;

	overflow: hidden;

	color: #161616;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;

	text-overflow: ellipsis;
	white-space: nowrap;
}


/* =========================================================
   ÍCONE DO PAL
   ========================================================= */

.sg-arvore-widget__icone {
	box-sizing: border-box;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 54px;
	height: 54px;

	padding: 3px;

	overflow: hidden;

	border: 1px solid rgba(135, 88, 245, 0.22);
	border-radius: 50%;

	background: #ffffff;

	box-shadow:
		0 4px 12px rgba(22, 22, 22, 0.06);
}


.sg-arvore-widget__icone img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: contain;
}


/* =========================================================
   SINAL +
   ========================================================= */

.sg-arvore-widget__operador {
	display: flex;
	align-items: center;
	justify-content: center;

	align-self: center;

	width: 26px;
	height: 26px;

	margin-top: 14px;

	color: #8758f5;

	font-size: 21px;
	font-weight: 800;
	line-height: 1;
}


/* =========================================================
   CONEXÕES DA ÁRVORE
   ========================================================= */

.sg-arvore-widget__arvore-linhas {
	position: relative;

	width: 78%;
	height: 42px;

	margin: 7px auto 0;
	padding: 0;
}


/* =========================================================
   RAMO ESQUERDO — DUPIN
   ========================================================= */

.sg-arvore-widget__ramo--esquerda {
	position: absolute;

	top: 0;
	left: 16.5%;

	box-sizing: border-box;

	width: 33.5%;
	height: 18px;

	border-left:
		2px solid rgba(135, 88, 245, 0.52);

	border-bottom:
		2px solid rgba(135, 88, 245, 0.52);
}


/* =========================================================
   RAMO DIREITO — FLARACLE
   ========================================================= */

.sg-arvore-widget__ramo--direita {
	position: absolute;

	top: 0;
	right: 16.5%;

	box-sizing: border-box;

	width: 33.5%;
	height: 18px;

	border-right:
		2px solid rgba(135, 88, 245, 0.52);

	border-bottom:
		2px solid rgba(135, 88, 245, 0.52);
}


/* =========================================================
   TRONCO CENTRAL
   ========================================================= */

.sg-arvore-widget__tronco {
	position: absolute;

	top: 18px;
	left: 50%;

	width: 2px;
	height: 24px;

	transform: translateX(-50%);

	background: rgba(135, 88, 245, 0.52);
}


/* =========================================================
   RESULTADO — ANUBIS
   ========================================================= */

.sg-arvore-widget__resultado {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	margin: 0;
	padding: 0;
}


.sg-arvore-widget__pal--resultado .sg-arvore-widget__icone {
	width: 68px;
	height: 68px;

	padding: 4px;

	border: 2px solid rgba(135, 88, 245, 0.42);

	background:
		linear-gradient(
			145deg,
			#ffffff 0%,
			#f7f2ff 100%
		);

	box-shadow:
		0 5px 16px rgba(135, 88, 245, 0.15);
}


.sg-arvore-widget__pal--resultado strong {
	margin-top: 7px;

	color: #8758f5;

	font-size: 13px;
	font-weight: 800;
}


/* =========================================================
   BOTÃO
   ========================================================= */

.sg-arvore-widget__botao {
	box-sizing: border-box;

	display: flex;
	align-items: center;
	justify-content: space-between;

	width: 100%;
	min-height: 44px;

	padding: 11px 14px;

	border-radius: 9px;

	background: #8758f5;

	color: #ffffff !important;

	font-size: 12px;
	font-weight: 800;
	line-height: 1;

	text-decoration: none !important;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}


.sg-arvore-widget__botao:hover {
	background: #7547e8;

	color: #ffffff !important;

	transform: translateY(-1px);
}


.sg-arvore-widget__seta {
	font-size: 18px;
	font-weight: 500;
	line-height: 1;

	transition: transform 0.2s ease;
}


.sg-arvore-widget__botao:hover .sg-arvore-widget__seta {
	transform: translateX(3px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

	.sg-arvore-widget {
		padding: 18px;
	}


	.sg-arvore-widget__titulo {
		font-size: 18px;
	}


	.sg-arvore-widget__preview {
		padding: 16px 12px;
	}


	.sg-arvore-widget__pais {
		width: 82%;
	}


	.sg-arvore-widget__arvore-linhas {
		width: 82%;
	}


	.sg-arvore-widget__icone {
		width: 54px;
		height: 54px;
	}


	.sg-arvore-widget__pal--resultado .sg-arvore-widget__icone {
		width: 66px;
		height: 66px;
	}

}