:root {
	/* Cores principais (baseado no layout em anexo) */
	--primary: #00597a;
	--primary-dark: #003c57;
	--primary-soft: #006a8f;
	--bg-main: #003047;
	--bg-card: #003a55;
	--accent: #7dfc4f;
	--accent-dark: #46b52a;

	--text-light: #ffffff;
	--text-muted: #b5d0df;
}

/* Reset básico */
* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #083249;
	color: var(--text-light);
}

/* ===== Topbar ===== */

.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 56px;
	padding: 0 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(90deg, #024c6a, #00628a);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	z-index: 20;
}

.topbar-left,
.topbar-right {
	display: flex;
	align-items: center;
}

.logo-text {
	font-weight: 700;
	letter-spacing: 0.16em;
	font-size: 0.9rem;
	text-transform: uppercase;
	color: #e7f6ff;
}

.btn-accent {
	background: var(--accent);
	border-color: var(--accent-dark);
	color: #00331f;
	font-weight: 600;
}
.btn-accent:hover {
	background: var(--accent-dark);
	color: #00150c;
}

/* ===== Layout principal ===== */

.main-wrapper {
	flex: 1; /* Faz a main crescer e empurrar o footer para o fim */
	min-height: calc(100vh - 50px);
	padding-top: 80px; /* espaço para a topbar */
	padding-bottom: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.screen {
	display: none;
}
.screen.active {
	display: block;
	animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== TELA 1 - HERO ===== */

.card-hero {
	background: radial-gradient(circle at top left, #046a8f 0, #003b55 55%, #002639 100%);
	border-radius: 26px;
	padding: 36px 26px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(7, 214, 255, 0.12);
}

.card-hero-body {
	max-width: 580px;
	margin: 0 auto;
}

.hero-title {
	font-weight: 800;
	font-size: clamp(1.8rem, 3.2vw, 2.5rem);
	text-transform: uppercase;
	line-height: 1.2;
}
.hero-title span {
	color: #a4f2ff;
}

.text-hero-sub,
.text-muted{
	color: var(--text-muted) !important;
	font-size: 1.05rem !important;
}

/* ===== Textos globais ===== */

.screen-title {
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 700;
	margin-bottom: 10px;
}
.screen-title span {
	color: #eaf7ff;
}
.screen-title .emoji {
	font-size: 1.6rem;
}

.btn-pill {
	border-radius: 999px;
	padding-inline: 1.5rem;
}

/* ===== TELA 2 - Bichos ===== */

.grid-bichos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

@media (max-width: 992px) {
	.grid-bichos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 768px) {
	.grid-bichos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 576px) {
	.grid-bichos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.card-bicho {
	background: radial-gradient(circle at top, #055779 0, #00374f 55%, #002030 100%);
	border-radius: 18px;
	border: 1px solid rgba(4, 223, 255, 0.15);
	padding: 14px 10px 12px;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
		border-color 0.15s ease-out, background 0.15s ease-out;
}
.card-bicho:hover {
	transform: translateY(-3px);
	border-color: rgba(125, 252, 79, 0.8);
	box-shadow:
		0 18px 38px rgba(0, 0, 0, 0.85),
		0 0 22px rgba(125, 252, 79, 0.45);
	background: radial-gradient(circle at top, #067290 0, #00435e 55%, #002435 100%);
}

.card-bicho img {
	width: 62px;
	height: 62px;
	object-fit: contain;
	margin-bottom: 6px;
}

.card-bicho .nome {
	font-size: 1.1rem;
	font-weight: 700;
}
.card-bicho .numero {
	font-size: 0.78rem;
	color: var(--text-muted);
}

/* ===== TELA 3 - Qtd de palpites ===== */

.qtd-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.qtd-opcao {
	min-width: 72px;
	height: 72px;
	border-radius: 999px;
	border: 2px solid rgba(125, 252, 79, 0.9);
	background: linear-gradient(135deg, #a7ff7c, #7dfc4f);
	color: #00240f;
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: 0.06em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 14px 30px rgba(0, 0, 0, 0.8),
		0 0 20px rgba(125, 252, 79, 0.55);
	cursor: pointer;
	border-width: 2px;
	transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
		filter 0.12s ease-out;
}
.qtd-opcao:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.9),
		0 0 26px rgba(125, 252, 79, 0.9);
}
.qtd-opcao:active {
	transform: translateY(0);
	box-shadow:
		0 8px 18px rgba(0, 0, 0, 0.9),
		0 0 16px rgba(125, 252, 79, 0.7);
}

/* ===== TELA 4 - Palpites ===== */

.palpites-wrapper {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.card-palpite {
	min-width: 110px;
	padding: 10px 20px;
	border-radius: 16px;
	background: radial-gradient(circle at top, #065a7a 0, #00374f 55%, #001f30 100%);
	border: 1px solid rgba(125, 252, 79, 0.75);
	box-shadow:
		0 14px 32px rgba(0, 0, 0, 0.85),
		0 0 20px rgba(125, 252, 79, 0.55);
}
.card-palpite span {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.22em;
}

/* Botão secundário dourado/verde */

.btn-secondary-gold {
	border-radius: 999px;
	border: 2px solid rgba(125, 252, 79, 0.9);
	background: #002434;
	color: #eaf7ff;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding-inline: 1.6rem;
}
.btn-secondary-gold:hover {
	background: #023043;
	color: #ffffff;
}

/* Alert de cópia */

.alert-copy {
	font-size: 0.9rem;
	color: #083249;
	border-radius: 999px;
}

/* ===== Footer ===== */
.footer {
	background: linear-gradient(90deg, #024c6a, #00628a);
	padding: 10px 16px 16px;
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: auto; /* força ficar no fim */
}

/* Pequenos ajustes responsivos */

@media (max-width: 576px) {
	.card-hero {
		padding: 28px 18px;
	}
	.hero-title {
		font-size: 1.7rem;
	}
}
