/* Guerra dos Elementos: site (GDE-032). Cores e fontes do jogo (scripts/ui.gd). */

@font-face {
	font-family: "Marcellus";
	src: url("fonts/Marcellus-Regular.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "Outfit";
	src: url("fonts/Outfit-Variable.ttf") format("truetype");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--bg: #111a21;
	--bg-2: #17202f;
	--painel: #1b2633;
	--linha: rgba(229, 177, 78, 0.28);
	--ouro: #e5b14e;
	--ouro-claro: #f3d48c;
	--bronze: #af882d;
	--texto: #fffeeb;
	--texto-2: rgba(255, 254, 235, 0.74);
	--ar: #7fe3f2;
	--fogo: #ff7a2e;
	--agua: #4a90ff;
	--terra: #d49a52;
	--serif: "Marcellus", Georgia, serif;
	--sans: "Outfit", system-ui, sans-serif;
	--largura: 1180px;
	--gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--texto);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ouro-claro); }
a:hover { color: var(--texto); }
b { font-weight: 650; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 0.4em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sobretitulo {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ouro);
	margin-bottom: 0.6em;
}

.miudo { font-size: 0.88rem; color: var(--texto-2); }

kbd {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.42em 0.6em;
	border: 1px solid rgba(255, 254, 235, 0.28);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--bg-2);
	color: var(--texto);
	white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }

/* ---------------------------------------------------------------- topo */

.topo {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px max(var(--gutter), calc((100% - var(--largura)) / 2));
	background: rgba(13, 19, 25, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--linha);
}

.marca {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--texto);
	text-decoration: none;
	font-family: var(--serif);
	font-size: 1.2rem;
	white-space: nowrap;
}

.losango {
	width: 18px;
	height: 18px;
	border: 2px solid var(--ouro);
	transform: rotate(45deg);
	box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 7px rgba(229, 177, 78, 0.55);
	flex: none;
}

.topo nav { display: flex; align-items: center; gap: 22px; }
.topo nav a {
	color: var(--texto-2);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.topo nav a:hover { color: var(--texto); }
.topo nav .nav-baixar {
	color: var(--bg);
	background: var(--ouro);
	padding: 8px 14px;
	border-radius: 4px;
}
.topo nav .nav-baixar:hover { background: var(--ouro-claro); color: var(--bg); }

/* ---------------------------------------------------------------- botões */

.botao {
	display: inline-block;
	padding: 14px 26px;
	font-family: var(--serif);
	font-size: 1.2rem;
	text-decoration: none;
	border-radius: 3px;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.botao:hover { transform: translateY(-1px); }
.botao.ouro {
	color: #1a191e;
	background: linear-gradient(180deg, #f3d48c, var(--ouro) 55%, #c8902f);
	box-shadow: 0 0 0 1px var(--bronze), 0 0 0 5px rgba(229, 177, 78, 0.18);
}
.botao.ouro:hover { color: #1a191e; background: linear-gradient(180deg, #fbe3a8, #efbe5d 55%, #d39b35); }
.botao.contorno {
	color: var(--texto);
	border: 1px solid var(--ouro);
	background: rgba(23, 32, 47, 0.7);
}
.botao.contorno:hover { background: var(--bg-2); color: var(--texto); }
.botao.grande { font-size: 1.3rem; padding: 18px 30px; margin: 0.4em 0 0.8em; }

/* ---------------------------------------------------------------- hero */

.hero {
	position: relative;
	min-height: min(88vh, 860px);
	display: flex;
	align-items: flex-end;
	padding: 120px max(var(--gutter), calc((100% - var(--largura)) / 2)) 72px;
	background:
		linear-gradient(180deg, rgba(17, 26, 33, 0.05) 0%, rgba(17, 26, 33, 0.2) 50%, var(--bg) 100%),
		linear-gradient(90deg, rgba(17, 26, 33, 0.82) 0%, rgba(17, 26, 33, 0.15) 58%, rgba(17, 26, 33, 0) 100%),
		url("img/arena.webp") center 35% / cover no-repeat;
}

.hero-texto { max-width: 640px; }
.hero h1 {
	font-size: clamp(2.8rem, 8vw, 5.6rem);
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
	margin-bottom: 0.25em;
}
.hero .lead {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	color: var(--texto);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
	max-width: 34em;
}
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1em; }

/* ---------------------------------------------------------------- blocos */

.bloco {
	padding: 88px max(var(--gutter), calc((100% - var(--largura)) / 2));
}
.bloco.escuro {
	background: var(--bg-2);
	border-top: 1px solid var(--linha);
	border-bottom: 1px solid var(--linha);
}
.cabeca { max-width: 720px; margin-bottom: 40px; }
.cabeca p:last-child { color: var(--texto-2); }

/* elementos */

.elementos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.elemento {
	--cor: var(--ouro);
	background: var(--painel);
	border: 1px solid rgba(255, 254, 235, 0.08);
	border-top: 4px solid var(--cor);
	border-radius: 4px;
	padding: 22px 20px 12px;
	display: flex;
	flex-direction: column;
}
.elemento.ar { --cor: var(--ar); }
.elemento.fogo { --cor: var(--fogo); }
.elemento.agua { --cor: var(--agua); }
.elemento.terra { --cor: var(--terra); }

.elemento h3 { color: var(--cor); font-size: 2rem; margin-bottom: 0.1em; }
.elemento .papel {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 0.4em;
}
.elemento .atributos { font-size: 0.9rem; color: var(--texto-2); }

.poderes { list-style: none; margin: 4px 0 0; padding: 0; }
.poderes li {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 10px;
	align-items: start;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 254, 235, 0.07);
	font-size: 0.9rem;
	color: var(--texto-2);
	line-height: 1.45;
}
.poderes kbd { justify-self: start; }
.poderes b { display: block; color: var(--texto); font-size: 0.98rem; }

/* fotos */

.foto { margin: 0; }
.foto img {
	border: 1px solid var(--linha);
	border-radius: 4px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.foto figcaption { font-size: 0.88rem; color: var(--texto-2); margin-top: 10px; }
.foto.larga { margin-top: 48px; }

/* duas colunas */

.duas {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 56px;
	align-items: center;
}
.duas.invertida { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

.passos { counter-reset: passo; list-style: none; padding: 0; margin: 1.6em 0; }
.passos li {
	counter-increment: passo;
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 14px;
	align-items: start;
	margin-bottom: 14px;
}
.passos li::before {
	content: counter(passo);
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--bg);
	background: var(--ouro);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.passos li span { padding-top: 4px; }

.fatos { padding-left: 1.1em; color: var(--texto-2); margin: 0; }
.fatos li { margin-bottom: 6px; }
.fatos li::marker { color: var(--ouro); }

/* controles */

.controles { border-collapse: collapse; width: 100%; margin: 1.2em 0 0.8em; }
.controles th, .controles td {
	padding: 11px 0;
	border-bottom: 1px solid rgba(255, 254, 235, 0.09);
	text-align: left;
	vertical-align: middle;
}
.controles th { font-weight: 400; padding-right: 18px; white-space: nowrap; }
.controles td { color: var(--texto-2); }

/* baixar */

.baixar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
.avisos {
	background: var(--painel);
	border: 1px solid var(--linha);
	border-radius: 4px;
	padding: 26px 28px 12px;
}
.avisos h3 { font-size: 1.35rem; }
.avisos ul { padding-left: 1.1em; margin: 0; color: var(--texto-2); }
.avisos li { margin-bottom: 14px; }
.avisos li::marker { color: var(--ouro); }
.hash {
	display: block;
	margin-top: 6px;
	font-size: 0.8rem;
	color: var(--texto);
	word-break: break-all;
	background: var(--bg);
	padding: 8px 10px;
	border-radius: 3px;
}

/* rodapé */

.rodape {
	padding: 36px max(var(--gutter), calc((100% - var(--largura)) / 2)) 48px;
	font-size: 0.85rem;
	color: var(--texto-2);
}
.rodape p { margin-bottom: 0.4em; }

/* ---------------------------------------------------------------- telas menores */

@media (max-width: 1080px) {
	.elementos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.duas, .duas.invertida, .baixar { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.bloco { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.topo nav a:not(.nav-baixar) { display: none; }
	.marca { font-size: 1.05rem; }
	.elementos { grid-template-columns: minmax(0, 1fr); }
	.hero { min-height: 78vh; padding-top: 96px; padding-bottom: 48px; background-position: 62% 35%, center, 62% 35%; }
	.botao { width: 100%; text-align: center; }
	.botao.grande { font-size: 1.1rem; padding: 16px 18px; }
	.poderes li { grid-template-columns: 84px 1fr; }
	.controles th { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.botao { transition: none; }
	.botao:hover { transform: none; }
}
