
/* ESTILO GERAL */

body {
	background: #111018;
	color: #eeeaf5;
	min-height: 100vh;
}

.navbar,.secao,.carta-card {
	background: #1c1a26;
}

.navbar-brand,h1,h2 {
	color: #d8b978;
}

.navbar-brand:hover {
	color: #efd49c;
}

.subtitulo {
	color: #b7b0c3;
}

/* LISTAGEM DE CARTAS */

.carta-card {
	display: block;
	border: 1px solid #ffffff15;
	border-radius: 15px;
	padding: 12px;
	color: #eeeaf5;
	text-decoration: none;
	height: 100%;
	transition: .25s;
}

.carta-card:hover {
	transform: translateY(-6px);
	border-color: #d8b978;
}

.carta-card img {
	width: 100%;
	aspect-ratio: 2/3;
	object-fit: cover;
	border-radius: 10px;
}

.carta-card h3 {
	font-size: 1rem;
	text-align: center;
	margin: 15px 0 5px;
}

/* DETALHES DA CARTA */

.imagem-detalhe {
	width: 100%;
	max-width: 350px;
	border-radius: 15px;
	box-shadow: 0 15px 50px #0008;
}

@media (max-width:600px) {
	.imagem-detalhe {
		max-width: 230px;
		width: 100%;
		height: auto;
	}
}

.secao {
	border: 1px solid #ffffff12;
	border-radius: 15px;
	padding: 25px;
	margin-bottom: 20px;
}

.secao h2 {
	font-size: 1.25rem;
	margin-bottom: 15px;
}

.secao p {
	line-height: 1.8;
	margin: 0;
}

.btn-dourado {
	display: inline-block;
	background: #d8b978;
	color: #17131b;
	padding: 12px 25px;
	border-radius: 9px;
	font-weight: 600;
	text-decoration: none;
	transition: background .25s;
}

.btn-dourado:hover {
	background: #efd49c;
	color: #17131b;
}

/* PÁGINA INICIAL */

.pagina-inicial {
	width: 100%;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
}

.pagina-inicial #baralho {
	width: 100%;
}

.pagina-inicial .mesa {
	width: 100%;
	height: 100dvh;
	aspect-ratio: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
}

/* MESA DO BARALHO */

.mesa {
	position: relative;
	width: min(95vw,800px);
	aspect-ratio: 1;
	margin: auto;
	overflow: hidden;
	background: #1c1a26;
	color: #eeeaf5;
	border: 1px solid #ffffff12;
	border-radius: 15px;
	perspective: 1200px;
}

/* TÍTULO DO BARALHO */

.titulo-baralho {
	position: absolute;
	top: 8%;
	left: 0;
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
	text-align: center;
	pointer-events: none;
	z-index: 50;
}

.titulo-baralho h2 {
	margin: 0 0 12px;
	font-size: 2rem;
	font-weight: 600;
	color: #d8b978;
}

.titulo-baralho p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: #b7b0c3;
}

/* BOTÃO EMBARALHAR */

.botao {
	position: absolute;
	top: calc(50% + var(--w) * .75 + 22px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	padding: 12px 25px;
	white-space: nowrap;
	border: 0;
	border-radius: 9px;
	background: #d8b978;
	color: #17131b;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .25s;
}

.botao:hover {
	background: #efd49c;
}

/* CARTAS ANIMADAS */

.mesa .carta {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--w);
	aspect-ratio: 2/3;
	border-radius: 10px;
	transform: translate(-50%,-50%);
	transform-style: preserve-3d;
	transition: transform .8s ease,width .8s ease,opacity .5s ease;
	pointer-events: none;
	box-shadow: none;
}

.mesa .face {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: none;
}

.mesa .frente {
	transform: rotateY(180deg);
}

/* EFEITO MÁGICO */

.mesa .magica {
	animation: brilho 1s ease;
}

@keyframes brilho {
	50% {
		filter: brightness(2);
	}
}

/* CARREGAMENTO */

.carregando {
	position: absolute;
	bottom: 8%;
	left: 10%;
	width: 80%;
	z-index: 110;
	text-align: center;
	font-size: 1rem;
	color: #b7b0c3;
	display: none;
}

.barra {
	width: 100%;
	height: 8px;
	margin-top: 12px;
	background: #111018;
	border: 1px solid #d8b97855;
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
}

.progresso {
	width: 0%;
	height: 100%;
	background: #d8b978;
	border-radius: 10px;
}

/* MOBILE */

@media (max-width:600px) {
	.mesa {
		width: 100%;
		height: 100dvh;
		aspect-ratio: auto;
	}

	.titulo-baralho {
		top: 10%;
		padding: 0 20px;
	}

	.titulo-baralho h2 {
		font-size: 2rem;
		margin-bottom: 12px;
	}

	.titulo-baralho p {
		font-size: 1rem;
		line-height: 1.6;
	}

	.botao {
		padding: 15px 30px;
		font-size: 1rem;
	}

	.carregando {
		bottom: 6%;
	}
}
/* cópia: sem rolagem horizontal em telas estreitas */
body {
	overflow-x: hidden;
}
