/* ==========================================================================
   BRANCA RPG — REINO ENCANTADO
   Visual de conto de fadas (Branca de Neve): noite azul-real da floresta,
   ouro de coroa, vermelho maçã e páginas de marfim de livro de histórias.
   Estilo principal. Tokens no :root -> veja a página "Style Guide".

   Os nomes antigos dos tokens (obsidiana, lapis, papiro…) foram mantidos
   para não quebrar o plugin e as páginas; só os valores mudaram.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	/* Noite da floresta (fundos) */
	--obsidiana: #090d22;
	--noite: #0e1430;
	--basalto: #151d42;
	--tumba: #1c2654;
	--pedra: #2a3672;
	--pedra-clara: #44529a;

	/* Ouro da coroa */
	--ouro-100: #fff6d8;
	--ouro-300: #f7d97f;
	--ouro-500: #e2b13c;
	--ouro-700: #a77a1f;
	--ouro-900: #192a6c;

	/* Azul-real (corpete) */
	--lapis-300: #9cb6ff;
	--lapis-500: #3459cc;
	--lapis-700: #1f3486;
	--lapis-900: #101a48;

	/* Verde da floresta encantada */
	--turquesa-300: #a5ecbf;
	--turquesa-500: #46b57c;
	--turquesa-700: #1f6b47;

	/* Vermelho maçã */
	--cornalina-300: #ff95a0;
	--cornalina-500: #d9283f;
	--cornalina-700: #8c1024;

	/* Rosa (laço, bochechas, flores) */
	--rosa-300: #ffc2d1;
	--rosa-500: #f07aa0;

	/* Marfim do livro de contos */
	--papiro-100: #fdf8ec;
	--papiro-300: #f1e5c8;
	--papiro-500: #d6c08f;
	--papiro-700: #8f7650;

	/* Neve */
	--neve: #f4f7ff;

	/* Texto */
	--texto: #e9ecfb;
	--texto-suave: #a9b2d8;
	--texto-escuro: #1b1f3a;

	/* Raridades (estilo MMORPG) */
	--r-comum: #b9b2a3;
	--r-incomum: #4fd36b;
	--r-raro: #3d8cff;
	--r-epico: #b45cff;
	--r-lendario: #ff9a2e;
	--r-divino: #f7d97f;

	/* Barras */
	--hp: #d23a2a;
	--hp-escuro: #6d140c;
	--mana: #2f7bff;
	--mana-escuro: #0d2a6b;
	--xp: #c48cff;
	--xp-escuro: #3d1a63;
	--vigor: #e8c33a;

	/* Tipografia */
	--f-display: "Berkshire Swash", "Cormorant Garamond", Georgia, serif;
	--f-titulo: "Cormorant SC", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--f-texto: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
	--f-glifo: "Noto Sans Symbols 2", "Noto Sans Egyptian Hieroglyphs", "Segoe UI Symbol", "Segoe UI Historic", serif;

	/* Escala */
	--t-xs: .8125rem;
	--t-sm: .9375rem;
	--t-md: 1.0625rem;
	--t-lg: 1.25rem;
	--t-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	--t-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
	--t-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
	--t-4xl: clamp(2.75rem, 1.6rem + 5vw, 5rem);

	/* Espaços e forma */
	--s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
	--raio: 4px;
	--raio-lg: 10px;
	--container: 1200px;
	--sombra: 0 10px 30px rgba(0, 0, 0, .55);
	--brilho-ouro: 0 0 0 1px rgba(247, 217, 127, .25), 0 0 24px rgba(226, 177, 60, .25);

	/* Bordas ornamentadas */
	--borda-ouro: linear-gradient(180deg, var(--ouro-300), var(--ouro-700) 45%, var(--ouro-500) 55%, var(--ouro-900));
	--canto-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M1.5 33V14C1.5 7 7 1.5 14 1.5H33' fill='none' stroke='%23e2b13c' stroke-width='2'/%3E%3Cpath d='M6 33V16c0-5.5 4.5-10 10-10h17' fill='none' stroke='%23a77a1f'/%3E%3Cpath d='M9 9c3-4 8-3 8 1 0 3-4 4-5 2' fill='none' stroke='%23f7d97f' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='5' r='3.2' fill='%23d9283f' stroke='%235e430f'/%3E%3Cpath d='M5 1.8c.4-1 1.2-1.5 2-1.4' stroke='%2346b57c' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
	--canto-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='matrix(-1 0 0 1 34 0)'%3E%3Cpath d='M1.5 33V14C1.5 7 7 1.5 14 1.5H33' fill='none' stroke='%23e2b13c' stroke-width='2'/%3E%3Cpath d='M6 33V16c0-5.5 4.5-10 10-10h17' fill='none' stroke='%23a77a1f'/%3E%3Cpath d='M9 9c3-4 8-3 8 1 0 3-4 4-5 2' fill='none' stroke='%23f7d97f' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='5' r='3.2' fill='%23d9283f' stroke='%235e430f'/%3E%3Cpath d='M5 1.8c.4-1 1.2-1.5 2-1.4' stroke='%2346b57c' stroke-width='1.2' fill='none'/%3E%3C/g%3E%3C/svg%3E");
	--canto-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='matrix(1 0 0 -1 0 34)'%3E%3Cpath d='M1.5 33V14C1.5 7 7 1.5 14 1.5H33' fill='none' stroke='%23e2b13c' stroke-width='2'/%3E%3Cpath d='M6 33V16c0-5.5 4.5-10 10-10h17' fill='none' stroke='%23a77a1f'/%3E%3Cpath d='M9 9c3-4 8-3 8 1 0 3-4 4-5 2' fill='none' stroke='%23f7d97f' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='5' r='3.2' fill='%23d9283f' stroke='%235e430f'/%3E%3Cpath d='M5 1.8c.4-1 1.2-1.5 2-1.4' stroke='%2346b57c' stroke-width='1.2' fill='none'/%3E%3C/g%3E%3C/svg%3E");
	--canto-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='matrix(-1 0 0 -1 34 34)'%3E%3Cpath d='M1.5 33V14C1.5 7 7 1.5 14 1.5H33' fill='none' stroke='%23e2b13c' stroke-width='2'/%3E%3Cpath d='M6 33V16c0-5.5 4.5-10 10-10h17' fill='none' stroke='%23a77a1f'/%3E%3Cpath d='M9 9c3-4 8-3 8 1 0 3-4 4-5 2' fill='none' stroke='%23f7d97f' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='5' r='3.2' fill='%23d9283f' stroke='%235e430f'/%3E%3Cpath d='M5 1.8c.4-1 1.2-1.5 2-1.4' stroke='%2346b57c' stroke-width='1.2' fill='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-synthesis: none; }

body {
	margin: 0;
	font-family: var(--f-texto);
	font-size: var(--t-md);
	line-height: 1.65;
	color: var(--texto);
	background-color: var(--obsidiana);
	background-image:
		radial-gradient(1100px 560px at 50% -12%, rgba(156, 182, 255, .16), transparent 62%),
		radial-gradient(800px 480px at 100% 35%, rgba(240, 122, 160, .07), transparent 60%),
		radial-gradient(800px 480px at 0% 75%, rgba(70, 181, 124, .07), transparent 60%),
		url("../img/padrao-conto.svg");
	background-attachment: fixed, fixed, fixed, scroll;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--ouro-300); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--ouro-100); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-titulo);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ouro-300);
	margin: 0 0 var(--s-4);
	letter-spacing: .02em;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s-4); }

::selection { background: var(--ouro-500); color: var(--obsidiana); }

:focus-visible { outline: 2px solid var(--turquesa-300); outline-offset: 3px; border-radius: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -999px; top: 8px; z-index: 999;
	background: var(--ouro-500); color: var(--obsidiana); padding: .5rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 8px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- 3. Botões (estilo MMORPG: chanfrados, metálicos) ---------- */
.btn {
	--b1: var(--ouro-300);
	--b2: var(--ouro-700);
	--txt: var(--obsidiana);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.5em;
	font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-sm);
	letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	color: var(--txt);
	background: linear-gradient(180deg, var(--b1), var(--b2));
	border: 1px solid rgba(0, 0, 0, .6);
	border-radius: var(--raio);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .45),
		inset 0 -2px 0 rgba(0, 0, 0, .25),
		0 0 0 1px var(--ouro-900),
		0 4px 0 #000,
		0 6px 14px rgba(0, 0, 0, .5);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
	cursor: pointer;
	transition: transform .12s, filter .2s, box-shadow .12s;
	clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.btn:hover { filter: brightness(1.12) saturate(1.1); color: var(--txt); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px var(--ouro-900), 0 1px 0 #000; }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn--gold { --b1: var(--ouro-300); --b2: var(--ouro-700); }
.btn--lapis { --b1: #4a6fd4; --b2: var(--lapis-700); --txt: var(--papiro-100); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.btn--turquesa { --b1: #4fd2c1; --b2: var(--turquesa-700); --txt: var(--obsidiana); }
.btn--danger { --b1: #e0664a; --b2: var(--cornalina-700); --txt: var(--papiro-100); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.btn--twitch { --b1: #a970ff; --b2: #5b2bb5; --txt: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.btn--ghost {
	--txt: var(--ouro-300);
	background: rgba(9, 11, 22, .6);
	box-shadow: inset 0 0 0 1px var(--ouro-700), 0 0 0 1px rgba(0,0,0,.6);
	text-shadow: none;
}
.btn--ghost:hover { --txt: var(--ouro-100); background: rgba(226, 177, 60, .12); }
.btn--sm { padding: .55em 1em; font-size: var(--t-xs); }
.btn--lg { padding: 1em 1.9em; font-size: var(--t-md); }
.btn[disabled], .btn.is-disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; pointer-events: none; }

/* ---------- 4. Painéis com moldura ornamentada ---------- */
.panel {
	position: relative;
	padding: var(--s-6);
	background:
		var(--canto-tl) top left / 34px no-repeat,
		var(--canto-tr) top right / 34px no-repeat,
		var(--canto-bl) bottom left / 34px no-repeat,
		var(--canto-br) bottom right / 34px no-repeat,
		linear-gradient(180deg, rgba(22, 28, 53, .96), rgba(13, 16, 31, .97));
	border: 1px solid var(--ouro-900);
	border-radius: 2px;
	box-shadow: inset 0 0 0 4px rgba(9, 11, 22, .9), inset 0 0 0 5px rgba(226, 177, 60, .35), var(--sombra);
}

.panel--papiro, .papyrus {
	color: var(--texto-escuro);
	background:
		radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .35), transparent 50%),
		radial-gradient(ellipse at 80% 90%, rgba(140, 114, 68, .25), transparent 55%),
		repeating-linear-gradient(90deg, rgba(140, 114, 68, .05) 0 2px, transparent 2px 7px),
		linear-gradient(180deg, var(--papiro-100), var(--papiro-300));
	border: 1px solid var(--papiro-700);
	box-shadow: 0 0 0 4px var(--tumba), 0 0 0 5px var(--ouro-700), var(--sombra);
}
.papyrus { padding: clamp(1.5rem, 4vw, 3.25rem); border-radius: 2px; }
.papyrus h1, .papyrus h2, .papyrus h3, .papyrus h4,
.panel--papiro h1, .panel--papiro h2, .panel--papiro h3, .panel--papiro h4 { color: var(--lapis-700); }
.panel--papiro code, .papyrus code { color: var(--cornalina-700); background: rgba(140,114,68,.15); border-color: rgba(140,114,68,.35); }
.papyrus a { color: var(--cornalina-700); }
.papyrus a:hover { color: var(--lapis-500); }

/* ---------- 5. Cabeçalho ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: linear-gradient(180deg, rgba(9, 11, 22, .97), rgba(13, 16, 31, .93));
	backdrop-filter: blur(6px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 76px; }
.site-header__trim {
	height: 6px;
	background:
		linear-gradient(90deg, transparent, var(--ouro-500) 15%, var(--ouro-300) 50%, var(--ouro-500) 85%, transparent) top / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--lapis-500) 0 14px, var(--ouro-500) 14px 16px, var(--cornalina-500) 16px 30px, var(--ouro-500) 30px 32px) 0 2px / 100% 3px no-repeat,
		linear-gradient(90deg, transparent, var(--ouro-700) 15%, var(--ouro-700) 85%, transparent) bottom / 100% 1px no-repeat;
	opacity: .9;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ouro-300); }
.brand__eye {
	display: grid; place-items: center; width: 46px; height: 46px; flex: none;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ff8a98, var(--cornalina-500) 55%, var(--cornalina-700));
	box-shadow: 0 0 0 2px var(--ouro-500), 0 0 0 4px var(--obsidiana), 0 0 0 5px var(--ouro-700), 0 0 18px rgba(217, 40, 63, .45);
	color: var(--neve);
}
.brand__eye .icon { width: 28px; height: 28px; }
.brand__cartouche {
	display: flex; flex-direction: column; line-height: 1;
	padding: .35rem 1.1rem .4rem;
	border: 2px solid var(--ouro-500);
	border-radius: 999px;
	position: relative;
	box-shadow: inset 0 0 0 1px var(--ouro-900);
}
.brand__cartouche::after { /* brilho do espelho */
	content: "✦"; position: absolute; right: .55rem; top: .1rem;
	font-size: .7rem; color: var(--ouro-100); text-shadow: 0 0 6px var(--ouro-300);
}
.brand__name { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; letter-spacing: .02em; white-space: nowrap;
	background: linear-gradient(180deg, var(--ouro-100), var(--ouro-500) 60%, var(--ouro-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__tag { font-family: var(--f-titulo); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--texto-suave); margin-top: .2rem; }
.custom-logo-link img { max-height: 60px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.site-nav .menu { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: .55rem .7rem; white-space: nowrap;
	font-family: var(--f-titulo); font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--papiro-300); text-decoration: none; position: relative;
}
.site-nav .menu a::after {
	content: "❦"; font-family: var(--f-glifo);
	position: absolute; left: 50%; bottom: -.55rem; transform: translateX(-50%) scale(.6);
	color: var(--ouro-500); opacity: 0; transition: .25s;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ouro-300); }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after { opacity: 1; transform: translateX(-50%) scale(1); }
.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: .5rem;
	background: var(--basalto); border: 1px solid var(--ouro-700); box-shadow: var(--sombra);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-nav__mesa { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: .45em; padding: .45rem .8rem; font-family: var(--f-titulo); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ouro-300); text-decoration: none; border: 1px solid var(--ouro-700); background: rgba(226, 177, 60,.06); }
.site-nav__mesa:hover { color: var(--ouro-100); border-color: var(--ouro-300); }
.site-nav__mesa .icon { width: 1.3em; height: 1.3em; }
.site-nav__badge { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; font-style: normal; font-family: var(--f-texto); font-size: .72rem; color: #fff; background: var(--cornalina-500); box-shadow: 0 0 0 2px var(--obsidiana); animation: pulso 1.6s infinite; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 0 0 rgba(255,75,75,.7); animation: pulso 1.6s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(255,75,75,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,75,0); } }

.nav-toggle {
	display: none; margin-left: auto;
	width: 46px; height: 46px; border-radius: var(--raio);
	background: var(--basalto); color: var(--ouro-300);
	border: 1px solid var(--ouro-700); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }

@media (max-width: 1180px) {
	.site-nav .menu a { font-size: .78rem; padding: .55rem .5rem; letter-spacing: .06em; }
	.site-nav { gap: var(--s-3); }
}
@media (max-width: 960px) {
	.nav-toggle { display: grid; place-items: center; }
	.site-nav {
		position: fixed; inset: 82px 0 auto 0; z-index: 40;
		flex-direction: column; align-items: stretch; gap: var(--s-4);
		padding: var(--s-5); max-height: calc(100vh - 82px); overflow: auto;
		background: var(--noite); border-bottom: 2px solid var(--ouro-700);
		transform: translateY(-120%); transition: transform .3s; visibility: hidden;
	}
	.admin-bar .site-nav { top: 128px; }
	body.nav-open .site-nav { transform: none; visibility: visible; }
	body.nav-open .nav-toggle__open { display: none; }
	body.nav-open .nav-toggle__close { display: block; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: .9rem .5rem; border-bottom: 1px solid rgba(226, 177, 60,.15); font-size: 1rem; }
	.site-nav .menu a::after { display: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: transparent; padding-left: 1rem; }
	.brand__tag { display: none; }
}

/* ---------- 6. Friso de hieróglifos e divisores ---------- */
.frieze {
	overflow: hidden; white-space: nowrap;
	background: linear-gradient(180deg, var(--ouro-700), var(--ouro-900));
	border-block: 1px solid var(--ouro-300);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.15), inset 0 -2px 0 rgba(0,0,0,.35);
	color: var(--obsidiana);
	font-family: var(--f-glifo); font-size: 1.2rem; line-height: 2.4rem;
	text-shadow: 0 1px 0 rgba(255, 235, 170, .35);
	user-select: none;
}
.frieze__track { display: inline-flex; animation: friso 80s linear infinite; }
.frieze__track span { padding-right: 1rem; letter-spacing: .35em; }
.frieze--thin { font-size: 1.05rem; line-height: 1.9rem; }
.frieze--footer { background: linear-gradient(180deg, var(--cornalina-700), #4a0812); color: var(--ouro-300); text-shadow: none; border-color: var(--ouro-700); }
@keyframes friso { to { transform: translateX(-50%); } }

.divider { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-6) auto; max-width: 560px; }
.divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ouro-500)); }
.divider__line:last-child { background: linear-gradient(90deg, var(--ouro-500), transparent); }
.divider img { width: 120px; }

/* ---------- 7. Rótulos, títulos de seção, badges ---------- */
.kicker {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--f-titulo); font-size: var(--t-xs); font-weight: 700;
	letter-spacing: .28em; text-transform: uppercase; color: var(--rosa-300);
	margin-bottom: var(--s-3);
}
.kicker .icon { color: var(--ouro-500); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: var(--s-7); }
.section--stone {
	background:
		linear-gradient(180deg, rgba(9, 11, 22,.0), rgba(22, 28, 53,.55) 15%, rgba(22, 28, 53,.55) 85%, rgba(9, 11, 22,0)),
		url("../img/padrao-conto.svg");
}
.section--lapis {
	background:
		radial-gradient(800px 400px at 50% 0%, rgba(127,156,240,.18), transparent 70%),
		linear-gradient(180deg, var(--lapis-900), #0a1027);
	border-block: 1px solid var(--ouro-700);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.section-head::after {
	content: ""; display: block; width: 120px; height: 40px; margin: var(--s-4) auto 0;
	background: url("../img/ornamento.svg") center / contain no-repeat;
}
.section-title {
	font-family: var(--f-display); font-weight: 900; font-size: var(--t-2xl);
	background: linear-gradient(180deg, var(--ouro-100) 0%, var(--ouro-300) 40%, var(--ouro-500) 70%, var(--ouro-700) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
.section-lead { color: var(--texto-suave); font-size: var(--t-lg); }

.badge {
	--c: var(--r-comum);
	display: inline-flex; align-items: center; gap: .35em;
	padding: .15em .6em; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--c); border: 1px solid currentColor; border-radius: 2px;
	background: color-mix(in srgb, var(--c) 12%, transparent);
	font-family: var(--f-titulo);
}
.badge--comum { --c: var(--r-comum); }
.badge--incomum { --c: var(--r-incomum); }
.badge--raro { --c: var(--r-raro); }
.badge--epico { --c: var(--r-epico); }
.badge--lendario { --c: var(--r-lendario); }
.badge--divino { --c: var(--r-divino); text-shadow: 0 0 8px rgba(247, 217, 127,.6); }

/* ---------- 8. Barras de vida/mana/xp ---------- */
.bar {
	--v: 50%;
	--c1: var(--hp); --c2: var(--hp-escuro);
	position: relative; height: 18px; margin-bottom: 6px;
	background: linear-gradient(180deg, #05060c, #101426);
	border: 1px solid #000;
	box-shadow: 0 0 0 1px var(--ouro-900), inset 0 2px 4px rgba(0,0,0,.8);
	border-radius: 2px; overflow: hidden;
}
.bar__fill {
	position: absolute; inset: 0 auto 0 0; width: var(--v);
	background:
		linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%, rgba(0,0,0,.25)),
		linear-gradient(90deg, var(--c2), var(--c1));
	box-shadow: 0 0 10px color-mix(in srgb, var(--c1) 60%, transparent);
	transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.bar__label {
	position: relative; display: block; text-align: center;
	font-size: .7rem; font-weight: 700; letter-spacing: .08em; line-height: 16px; text-transform: uppercase;
	color: #fff; text-shadow: 0 1px 2px #000, 0 0 2px #000;
}
.bar--hp { --c1: var(--hp); --c2: var(--hp-escuro); }
.bar--mana { --c1: var(--mana); --c2: var(--mana-escuro); }
.bar--xp { --c1: var(--xp); --c2: var(--xp-escuro); }
.bar--vigor { --c1: var(--vigor); --c2: #1b2c71; }
.bar--sm { height: 15px; }
.bar--sm .bar__label { line-height: 13px; font-size: .62rem; }
.bar--xs { height: 6px; }
.bar--xs .bar__fill { box-shadow: none; }

/* ---------- 9. Unit frame (retrato + barras, como nos MMOs) ---------- */
.unit-frame {
	display: flex; gap: var(--s-4); align-items: center;
	padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
	background: linear-gradient(180deg, rgba(17, 22, 41,.92), rgba(9, 11, 22,.95));
	border: 1px solid var(--ouro-700);
	border-radius: 60px 8px 8px 60px;
	box-shadow: inset 0 0 0 3px rgba(0,0,0,.7), inset 0 0 0 4px rgba(226, 177, 60,.25), var(--sombra);
	min-width: 300px;
}
.unit-frame__portrait {
	position: relative; display: grid; place-items: center; width: 84px; height: 84px; flex: none;
	border-radius: 50%; color: var(--ouro-100);
	background: radial-gradient(circle at 35% 30%, var(--lapis-300), var(--lapis-700) 65%, var(--lapis-900));
	box-shadow: 0 0 0 3px var(--ouro-500), 0 0 0 5px #000, 0 0 0 6px var(--ouro-700), 0 0 24px rgba(226, 177, 60,.4);
}
.unit-frame__portrait .icon { width: 44px; height: 44px; }
.unit-frame__lvl {
	position: absolute; bottom: -6px; right: -6px; display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	font-family: var(--f-titulo); font-weight: 800; font-size: .8rem; color: var(--obsidiana);
	background: radial-gradient(circle at 35% 30%, var(--ouro-100), var(--ouro-500) 60%, var(--ouro-700));
	box-shadow: 0 0 0 2px #000;
}
.unit-frame__info { flex: 1; min-width: 0; }
.unit-frame__name { display: block; font-family: var(--f-titulo); font-size: 1.15rem; color: var(--ouro-300); line-height: 1.1; }
.unit-frame__title { display: block; font-size: var(--t-xs); color: var(--r-epico); margin-bottom: var(--s-2); }
.unit-frame__next { display: flex; align-items: center; gap: .4em; font-size: var(--t-xs); color: var(--texto-suave); margin: var(--s-2) 0 0; }

/* ---------- 10. Hero (topo da home) ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__scene::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(9, 11, 22,.88) 0%, rgba(9, 11, 22,.55) 45%, rgba(9, 11, 22,.05) 75%),
		linear-gradient(0deg, var(--obsidiana) 0%, transparent 25%);
}
.hero__stars {
	position: absolute; inset: 0 0 40% 0; opacity: .8;
	background-image:
		radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
		radial-gradient(1px 1px at 70% 20%, #fff, transparent),
		radial-gradient(1px 1px at 40% 70%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent),
		radial-gradient(1px 1px at 55% 45%, #fff, transparent);
	background-size: 260px 260px;
	animation: brilho 6s ease-in-out infinite alternate;
}
@keyframes brilho { to { opacity: .35; } }
.hero__inner { display: grid; grid-template-columns: 1.3fr .8fr; align-items: end; gap: var(--s-7); padding-block: var(--s-8); }
.hero__title {
	font-family: var(--f-display); font-weight: 900; font-size: var(--t-4xl); line-height: 1.02; margin-bottom: var(--s-5);
	background: linear-gradient(180deg, #fffbe8 0%, var(--ouro-300) 35%, var(--ouro-500) 60%, var(--ouro-700) 85%, var(--ouro-300) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 3px 0 rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(226, 177, 60,.25));
}
.hero__text { font-size: var(--t-lg); max-width: 560px; color: var(--papiro-300); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }
.hero__actions--center { justify-content: center; }
.kicker--hero { font-size: .85rem; }
.hero__status { justify-self: end; margin-bottom: var(--s-4); }
.hero__scroll {
	position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%) rotate(90deg);
	color: var(--ouro-500); animation: flutua 2s ease-in-out infinite;
}
.hero__scroll .icon { width: 28px; height: 28px; }
@keyframes flutua { 50% { transform: translateX(-50%) translateX(0) rotate(90deg) translateX(8px); } }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__status { justify-self: start; }
	.hero__scene::after { background: linear-gradient(0deg, var(--obsidiana) 5%, rgba(9, 11, 22,.7) 60%, rgba(9, 11, 22,.35)); }
}

/* ---------- 11. Live (Twitch) ---------- */
.live { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-4); padding: var(--s-5); }
.live iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.live__player { aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--ouro-700); }
.live__chat { min-height: 360px; box-shadow: 0 0 0 1px var(--ouro-700); }
@media (max-width: 960px) { .live { grid-template-columns: 1fr; } .live__chat { height: 420px; } }

/* ---------- 12. Quadro de missões (agenda) ---------- */
.quest-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }
.quest-card {
	position: relative; display: flex; flex-direction: column; gap: var(--s-2);
	padding: var(--s-6) var(--s-5) var(--s-5);
	color: var(--texto-escuro);
	background:
		radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.4), transparent 60%),
		linear-gradient(180deg, var(--papiro-100), var(--papiro-300));
	border: 1px solid var(--papiro-700);
	box-shadow: 0 0 0 3px var(--tumba), 0 0 0 4px var(--ouro-700), var(--sombra);
	transform: rotate(-.6deg); transition: transform .25s;
}
.quest-card:nth-child(2n) { transform: rotate(.7deg); }
.quest-card:hover { transform: rotate(0) translateY(-4px); }
.quest-card::before { /* selo */
	content: "!"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	font-family: var(--f-titulo); font-weight: 900; font-size: 1.3rem; color: var(--ouro-100);
	background: radial-gradient(circle at 35% 30%, var(--cornalina-300), var(--cornalina-500) 55%, var(--cornalina-700));
	box-shadow: 0 0 0 2px var(--ouro-500), 0 3px 8px rgba(0,0,0,.5);
}
.quest-card__icon { color: var(--lapis-500); }
.quest-card__icon .icon { width: 34px; height: 34px; }
.quest-card__day { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; color: var(--cornalina-700); line-height: 1; }
.quest-card__time { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--papiro-700); }
.quest-card__title { color: var(--lapis-700); font-size: 1.15rem; margin: var(--s-2) 0; }
.quest-card__reward { margin-top: auto; font-size: var(--t-xs); color: var(--papiro-700); border-top: 1px dashed var(--papiro-500); padding-top: var(--s-2); }
.quest-card__reward strong { color: #3a8a2e; }

/* ---------- 13. Passos (como participar) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); counter-reset: passo; }
.step {
	position: relative; text-align: center; padding: var(--s-7) var(--s-5) var(--s-5);
	background: linear-gradient(180deg, rgba(42,74,168,.16), rgba(9, 11, 22,.4));
	border: 1px solid rgba(226, 177, 60,.3);
	clip-path: polygon(50% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.step__num { display: block; font-family: var(--f-display); color: var(--ouro-700); font-size: .9rem; letter-spacing: .2em; }
.step__icon {
	display: grid; place-items: center; width: 72px; height: 72px; margin: var(--s-3) auto var(--s-4);
	color: var(--ouro-300); border-radius: 50%;
	background: radial-gradient(circle, rgba(226, 177, 60,.18), transparent 70%);
	box-shadow: inset 0 0 0 1px var(--ouro-700);
}
.step__icon .icon { width: 36px; height: 36px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--texto-suave); font-size: var(--t-sm); margin: 0; }

/* ---------- 14. Cartões de herói ---------- */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-5); }
.hero-card {
	--c: var(--r-raro);
	position: relative; display: flex; flex-direction: column;
	background: linear-gradient(180deg, #12172b, #0a0d18);
	border: 1px solid color-mix(in srgb, var(--c) 70%, #000);
	box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent), 0 0 30px color-mix(in srgb, var(--c) 18%, transparent), var(--sombra);
	transition: transform .25s, box-shadow .25s;
}
.hero-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--c), 0 0 40px color-mix(in srgb, var(--c) 35%, transparent), var(--sombra); }
.hero-card.rarity-comum { --c: var(--r-comum); }
.hero-card.rarity-incomum { --c: var(--r-incomum); }
.hero-card.rarity-raro { --c: var(--r-raro); }
.hero-card.rarity-epico { --c: var(--r-epico); }
.hero-card.rarity-lendario { --c: var(--r-lendario); }
.hero-card.rarity-divino { --c: var(--r-divino); }
.hero-card__portrait {
	position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
	background:
		radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 35%, transparent), transparent 65%),
		url("../img/padrao-conto.svg"), linear-gradient(180deg, var(--tumba), var(--obsidiana));
	border-bottom: 1px solid color-mix(in srgb, var(--c) 60%, #000);
}
.hero-card__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-card__sigil { color: var(--c); filter: drop-shadow(0 0 12px var(--c)); }
.hero-card__sigil .icon { width: 84px; height: 84px; stroke-width: 1.2; }
.hero-card__level {
	position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
	width: 36px; height: 36px; transform: rotate(45deg);
	background: linear-gradient(135deg, var(--ouro-300), var(--ouro-700)); box-shadow: 0 0 0 2px #000;
	font-family: var(--f-titulo); font-weight: 800; font-size: .9rem; color: var(--obsidiana);
}
.hero-card__level > span { transform: rotate(-45deg); }
.hero-card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hero-card__name { margin: var(--s-2) 0 0; font-size: 1.2rem; color: var(--c); }
.hero-card__name a { color: inherit; text-decoration: none; }
.hero-card__class { color: var(--texto-suave); font-style: italic; margin-bottom: var(--s-2); font-size: var(--t-sm); }
.hero-card__text { font-size: var(--t-sm); margin: var(--s-2) 0; }
.hero-card__player { margin: auto 0 0; display: flex; align-items: center; gap: .4em; font-size: var(--t-xs); color: var(--turquesa-300); }
.hero-single { max-width: 360px; margin: 0 auto var(--s-6); }

.admin-hint {
	display: flex; gap: .6em; align-items: center; margin-top: var(--s-5); padding: var(--s-3) var(--s-4);
	font-size: var(--t-sm); background: rgba(47,181,165,.12); border: 1px dashed var(--turquesa-500); color: var(--turquesa-300);
}

/* ---------- 15. Destaque (tabuleiro em construção) ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; }
.feature__media { position: relative; }
.feature__media img { width: 100%; box-shadow: 0 0 0 1px var(--ouro-700), 0 0 0 6px var(--obsidiana), 0 0 0 7px var(--ouro-900), var(--sombra); }
.feature__stamp {
	position: absolute; top: -14px; right: -10px; transform: rotate(6deg);
	padding: .4rem .9rem; font-family: var(--f-titulo); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--papiro-100); background: var(--cornalina-500); box-shadow: 0 0 0 2px var(--ouro-500), var(--sombra);
}
.feature__content .section-title { font-size: var(--t-2xl); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-2); }
.checklist li { display: flex; gap: .6em; align-items: flex-start; }
.checklist .icon { color: var(--r-incomum); }
.checklist .is-pending { color: var(--texto-suave); }
.checklist .is-pending .icon { color: var(--ouro-500); }

/* ---------- 16. Cartões de post ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-5); }
.card {
	display: flex; flex-direction: column;
	background: linear-gradient(180deg, var(--tumba), var(--noite));
	border: 1px solid var(--ouro-900);
	box-shadow: inset 0 0 0 3px rgba(0,0,0,.6), inset 0 0 0 4px rgba(226, 177, 60,.18), var(--sombra);
	transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--ouro-500); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--basalto); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--ouro-700); background: url("../img/padrao-conto.svg"); }
.card__placeholder .icon { width: 64px; height: 64px; }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.card__title { margin: var(--s-3) 0 var(--s-2); font-size: 1.2rem; }
.card__title a { color: var(--ouro-300); text-decoration: none; }
.card__excerpt { color: var(--texto-suave); font-size: var(--t-sm); }
.card__more { margin-top: auto; display: inline-flex; gap: .4em; align-items: center; font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; font-size: var(--t-xs); color: var(--texto-suave); margin-bottom: var(--s-3); }
.post-meta__sep { color: var(--ouro-700); margin-inline: .3em; }

/* ---------- 17. Chamada final ---------- */
.cta-final { background: radial-gradient(600px 300px at 50% 40%, rgba(226, 177, 60,.14), transparent 70%); }
.cta-final__emblem { width: 140px; margin: 0 auto var(--s-5); filter: drop-shadow(0 0 24px rgba(226, 177, 60,.35)); animation: flutua-y 5s ease-in-out infinite; }
@keyframes flutua-y { 50% { transform: translateY(-8px); } }

/* ---------- 18. Faixa das páginas internas ---------- */
.page-banner { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; overflow: hidden; isolation: isolate; }
.page-banner__bg {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(0deg, var(--obsidiana), transparent 60%),
		url("../img/hero-floresta.svg") center 75% / cover no-repeat;
	opacity: .55;
}
.page-banner__title {
	font-family: var(--f-display); font-weight: 900; font-size: var(--t-3xl);
	background: linear-gradient(180deg, #fffbe8, var(--ouro-300) 40%, var(--ouro-700));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 3px 0 rgba(0,0,0,.7));
	margin-bottom: var(--s-3);
}
.page-banner__lead { max-width: 680px; margin: 0 auto; font-size: var(--t-lg); color: var(--papiro-300); }

/* ---------- 19. Conteúdo de texto (editor) ---------- */
.entry-content > * + * { margin-top: var(--s-4); }
.entry-content h2 { font-size: var(--t-xl); margin-top: var(--s-7); }
.entry-content h3 { margin-top: var(--s-6); }
.entry-content blockquote {
	margin-inline: 0; padding: var(--s-4) var(--s-5); border-left: 4px solid var(--ouro-500);
	background: rgba(226, 177, 60,.1); font-style: italic;
}
.entry-content img { border: 1px solid var(--papiro-700); }
.entry-content ul li::marker { content: "❦ "; font-family: var(--f-glifo); color: var(--ouro-700); }
.entry-content code { background: rgba(0,0,0,.08); padding: .1em .35em; border-radius: 3px; }
.entry__thumb { margin: calc(-1 * clamp(1.5rem, 4vw, 3.25rem)) calc(-1 * clamp(1.5rem, 4vw, 3.25rem)) var(--s-6); }
.entry__thumb img { width: 100%; }
.entry__tags { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; margin-top: var(--s-6); font-size: var(--t-sm); }
.alignwide { width: min(100vw - 2.5rem, 1100px); margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }

.post-navigation { margin-top: var(--s-6); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.post-navigation a { display: block; padding: var(--s-4); border: 1px solid var(--ouro-900); text-decoration: none; background: var(--basalto); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .15em; color: var(--texto-suave); }
.nav-title { font-family: var(--f-titulo); color: var(--ouro-300); }

.pagination, .nav-links { margin-top: var(--s-6); }
.pagination .nav-links { display: flex; justify-content: center; gap: .4rem; }
.page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem;
	font-family: var(--f-titulo); font-weight: 700; text-decoration: none;
	background: var(--basalto); border: 1px solid var(--ouro-900); color: var(--papiro-300);
}
.page-numbers.current, .page-numbers:hover { background: var(--ouro-500); color: var(--obsidiana); }

/* ---------- 20. Formulários ---------- */
.field, input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; padding: .75rem 1rem;
	font: inherit; color: var(--texto);
	background: linear-gradient(180deg, #070810, #0d1120);
	border: 1px solid var(--ouro-900);
	box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.6);
	border-radius: 2px;
	transition: border-color .2s, box-shadow .2s;
}
.field:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ouro-500); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 0 3px rgba(226, 177, 60,.25); }
::placeholder { color: #7d6e55; }
label { font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-sm); color: var(--ouro-300); }
.search-form { display: flex; gap: var(--s-2); max-width: 520px; margin-inline: auto; }
.search-form .btn { flex: none; padding-inline: 1rem; }

/* ---------- 21. Comentários ---------- */
.comments { margin-top: var(--s-7); }
.comments__title { display: flex; align-items: center; gap: .5em; font-size: var(--t-xl); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: var(--s-4) 0; border-bottom: 1px solid rgba(226, 177, 60,.15); }
.comment-list .children { list-style: none; padding-left: var(--s-6); }
.comment-author img { float: left; margin-right: var(--s-3); border-radius: 50%; box-shadow: 0 0 0 2px var(--ouro-700); }
.comment-metadata { font-size: var(--t-xs); }
.comment-form p { margin-bottom: var(--s-4); }

/* ---------- 22. Vazio, 404 ---------- */
.empty { text-align: center; }
.empty__icon { color: var(--ouro-500); }
.empty__icon .icon { width: 64px; height: 64px; }
.notfound__dice { position: relative; width: 140px; height: 140px; margin: 0 auto var(--s-5); color: var(--cornalina-500); animation: gira 6s ease-in-out infinite; }
.notfound__dice .icon { width: 100%; height: 100%; stroke-width: 1; }
.notfound__dice span { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 18px; font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: var(--ouro-300); }
@keyframes gira { 50% { transform: rotate(12deg) scale(1.05); } }
.notfound__search { margin-top: var(--s-6); }

/* ---------- 23. Rodapé ---------- */
.site-footer { margin-top: var(--s-8); background: linear-gradient(180deg, var(--noite), #06080e); border-top: 1px solid var(--ouro-700); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); padding-block: var(--s-8) var(--s-7); }
.site-footer__brand p { color: var(--texto-suave); margin-top: var(--s-4); max-width: 400px; }
.widget__title { font-size: .95rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ouro-500); }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-menu a, .site-footer .menu a { color: var(--papiro-300); text-decoration: none; }
.footer-menu a:hover, .site-footer .menu a:hover { color: var(--ouro-300); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); color: var(--texto-suave); font-size: var(--t-sm); }
.rules li { display: flex; gap: .6em; align-items: flex-start; }
.rules .icon { color: var(--ouro-500); margin-top: .2em; }
.site-footer__bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
	padding-block: var(--s-5); border-top: 1px solid rgba(226, 177, 60,.15);
	font-size: var(--t-xs); color: var(--texto-suave);
}
.site-footer__bottom p { margin: 0; }
.to-top { display: inline-flex; gap: .4em; align-items: center; text-decoration: none; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

.social { list-style: none; display: flex; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; }
.social a {
	display: grid; place-items: center; width: 42px; height: 42px;
	color: var(--ouro-300); background: var(--basalto);
	border: 1px solid var(--ouro-900); transform: rotate(45deg); transition: .2s;
}
.social a .icon { transform: rotate(-45deg); width: 20px; height: 20px; }
.social a:hover { background: var(--ouro-500); color: var(--obsidiana); }

/* ---------- 23b. Dicas e caixas de prompt (guia, style guide) ---------- */
.tip {
	--c: var(--ouro-500);
	display: flex; gap: var(--s-4); align-items: flex-start;
	margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
	background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(9, 11, 22,.3));
	border-left: 4px solid var(--c);
}
.tip--turquesa { --c: var(--turquesa-500); }
.tip--alerta { --c: var(--cornalina-500); }
.tip__icon { color: var(--c); }
.tip__icon .icon { width: 30px; height: 30px; }
.tip__title { display: block; font-family: var(--f-titulo); color: var(--c); margin-bottom: .2rem; filter: brightness(1.3); }
.tip p { margin: 0; font-size: var(--t-sm); }
.tip em { color: var(--papiro-100); }

/* ---------- Caixa de prompt ---------- */
.prompt {
	margin: var(--s-5) 0;
	background: #080a12;
	border: 1px solid var(--ouro-700);
	box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 0 0 4px rgba(226, 177, 60,.2), var(--sombra);
}
.prompt__head {
	display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
	padding: var(--s-3) var(--s-4);
	background: linear-gradient(180deg, var(--tumba), var(--basalto));
	border-bottom: 1px solid var(--ouro-900);
}
.prompt__icon { color: var(--turquesa-300); }
.prompt__title { font-family: var(--f-titulo); font-weight: 700; color: var(--ouro-300); flex: 1 1 0; min-width: 0; }
.prompt__copy { flex: none; }
@media (max-width: 600px) {
	.prompt__title { flex-basis: 100%; order: -1; }
	.prompt__tag { margin-right: auto; }
}
.prompt__tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turquesa-300); border: 1px solid var(--turquesa-700); padding: .1em .5em; }
.prompt__copy.is-copied { --b1: #6fe58a; --b2: #2a8a3e; }
.prompt__body {
	margin: 0; padding: var(--s-5);
	max-height: 420px; overflow: auto;
	font-family: "Alegreya Sans", system-ui, sans-serif; font-size: .98rem; line-height: 1.6;
	white-space: pre-wrap; word-wrap: break-word; color: var(--papiro-100);
	scrollbar-color: var(--ouro-700) transparent;
}
.prompt__body mark { background: rgba(47,181,165,.22); color: var(--turquesa-300); padding: 0 .2em; border-radius: 2px; font-weight: 700; }


/* ---------- 24. Utilidades / movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tooltip simples (data-tip) usado em vários lugares */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
	content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
	width: max-content; max-width: 240px; padding: .4rem .65rem; z-index: 20;
	font-size: .78rem; font-family: var(--f-texto); font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.35; color: var(--texto);
	background: rgba(6, 8, 15, .96); border: 1px solid var(--ouro-700); box-shadow: var(--sombra);
	pointer-events: none;
}

/* Toast (notificação "missão concluída") */
.toast-area { position: fixed; left: 50%; top: 110px; transform: translateX(-50%); z-index: 100; display: grid; gap: var(--s-2); pointer-events: none; }
.toast {
	display: flex; align-items: center; gap: var(--s-3);
	padding: .8rem 1.4rem; min-width: 280px;
	font-family: var(--f-titulo); font-weight: 700; color: var(--ouro-100);
	background: linear-gradient(90deg, transparent, rgba(9, 11, 22,.95) 12%, rgba(9, 11, 22,.95) 88%, transparent);
	border-block: 1px solid var(--ouro-500);
	text-shadow: 0 0 12px rgba(247, 217, 127,.6);
	animation: toast-in .35s ease-out, toast-out .4s ease-in 2.6s forwards;
}
.toast .icon { color: var(--ouro-300); width: 1.6em; height: 1.6em; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); } }

/* ---------- 25. Conto de fadas: neve no topo, os quatro reinos ---------- */
.hero__stars {
	inset: 0; opacity: .75;
	background-image:
		radial-gradient(2px 2px at 20% 30%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
		radial-gradient(2.5px 2.5px at 40% 70%, rgba(255, 255, 255, .9), transparent),
		radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent),
		radial-gradient(2px 2px at 55% 45%, #fff, transparent),
		radial-gradient(1px 1px at 10% 85%, #fff, transparent);
	background-size: 300px 300px, 240px 240px, 360px 360px, 200px 200px, 280px 280px, 220px 220px;
	animation: neve 24s linear infinite;
}
@keyframes neve { to { background-position: 60px 300px, -40px 240px, 80px 360px, -30px 200px, 40px 280px, 20px 220px; } }

.unit-frame__portrait { background: radial-gradient(circle at 40% 32%, #cfd9ff, var(--lapis-500) 55%, var(--lapis-900)); }

.reinos__grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }
.reino {
	display: flex; flex-direction: column; overflow: hidden;
	background: linear-gradient(180deg, var(--tumba), var(--noite));
	border: 1px solid color-mix(in srgb, var(--bm-cor) 55%, #000);
	box-shadow: 0 0 0 1px #000, 0 0 26px color-mix(in srgb, var(--bm-cor) 14%, transparent), var(--sombra);
	transition: transform .25s, box-shadow .25s;
}
.reino:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--bm-cor), 0 0 36px color-mix(in srgb, var(--bm-cor) 30%, transparent), var(--sombra); }
.reino__arte { position: relative; display: grid; place-items: end start; aspect-ratio: 16 / 9; padding: var(--s-3); background: var(--bm-arte, none) center / cover no-repeat, var(--bm-fundo); }
.reino__arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--noite), transparent 45%); }
.reino__selo { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: -30px; color: var(--bm-cor); background: rgba(9, 13, 34, .85); border: 2px solid var(--bm-cor); border-radius: 50%; box-shadow: 0 0 20px color-mix(in srgb, var(--bm-cor) 45%, transparent); }
.reino__selo .icon { width: 26px; height: 26px; }
.reino__corpo { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-6) var(--s-5) var(--s-5); }
.reino__genero { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--bm-cor); }
.reino__nome { margin: 0; font-size: 1.35rem; color: var(--neve); }
.reino__desc { margin: 0; color: var(--texto-suave); font-size: var(--t-sm); }
.reino__vazio { margin: auto 0 0; padding-top: var(--s-3); font-size: var(--t-sm); font-style: italic; color: var(--texto-suave); border-top: 1px dashed rgba(255, 255, 255, .12); }
.reino__mesas { list-style: none; margin: auto 0 0; padding: var(--s-3) 0 0; display: grid; gap: var(--s-2); border-top: 1px dashed color-mix(in srgb, var(--bm-cor) 35%, transparent); }
.reino__mesa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); padding: var(--s-2) var(--s-3); background: color-mix(in srgb, var(--bm-cor) 8%, transparent); border-left: 3px solid var(--bm-cor); }
.reino__mesa strong { display: block; font-family: var(--f-titulo); font-size: 1.05rem; color: var(--papiro-100); line-height: 1.2; }
.reino__mesa span { font-size: var(--t-xs); color: var(--texto-suave); }
.reino__mesa .btn { flex: none; }
.reinos__nota { display: flex; gap: .6em; align-items: center; justify-content: center; margin: var(--s-6) 0 0; color: var(--texto-suave); text-align: center; }
.reinos__nota .icon { color: var(--ouro-500); }
.reino__mesa > div { flex: 1 1 170px; min-width: 0; }
.checklist .icon { margin-top: .25em; }
.quest-card__reward a { color: inherit; }
