@charset "utf-8";
/* Template Ethernalia - layout, cores e tipografia. Classes de conteudo do MyAAC ficam em base.css.
   Layout em 3 colunas (menu | conteudo | destaques); pixel-art em images/pixel/ (site-pixelart.js). */

:root {
	--eth-bg: #120e0a;
	--eth-panel: #241c14;
	--eth-line: #4a3a26;
	--eth-text: #eadfcb;
	--eth-muted: #a8977c;
	--eth-gold: #d9a441;
	--eth-gold2: #f0c46a;
	--eth-parch: #f6eedb;
	--eth-parch-text: #2e2418;
	--eth-link: #8a3b12;
	--eth-link-hover: #b8541c;
	--eth-ok: #7fc47a;
	--eth-err: #e2735f;
	--eth-serif: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
	--eth-sans: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--eth-bg); }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	/* muro de pedra em pixel-art, escurecido nas bordas */
	background:
		radial-gradient(ellipse 80% 70% at 50% 30%, rgba(18,14,10,.25), rgba(8,6,4,.92) 100%),
		url('images/pixel/wall.png') 0 0 / 64px 64px repeat,
		var(--eth-bg);
	image-rendering: pixelated;
	color: var(--eth-text);
	font: 13px/1.5 var(--eth-sans);
}
body > * { image-rendering: auto; }

.eth-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- Pixel-art: icones e moldura ---------- */
.eth-ico { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -3px; margin-right: 6px; flex: none; }
.eth-framed, .eth-box, .eth-panel {
	border: 16px solid transparent;
	border-image: url('images/pixel/frame.png') 8 fill / 16px / 0 stretch;
	image-rendering: pixelated;
}

/* ---------- Cabecalho (banner) ---------- */
.eth-header { border-bottom: 2px solid #000; background: #0b0a14; box-shadow: 0 4px 0 #3a2c1b; }
/* cenario em pixel-art (640x120) em escala inteira: 2x no desktop, 1x no celular */
.eth-hero {
	background:
		linear-gradient(90deg, rgba(11,10,20,.85) 0%, rgba(11,10,20,.35) 40%, rgba(11,10,20,0) 65%),
		url('images/pixel/header-scene.png') right bottom / auto 240px repeat-x,
		#0b0a14;
	image-rendering: pixelated;
}
.eth-header-inner { display: flex; align-items: flex-start; gap: 14px; padding-top: 34px; padding-bottom: 24px; min-height: 240px; }
.eth-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; image-rendering: auto; }
.eth-brand:hover { color: inherit; }
.eth-emblem { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 2px 8px rgba(217,164,65,.35)); }
.eth-brand-text { display: flex; flex-direction: column; }
.eth-title {
	font-family: var(--eth-serif); font-size: 40px; line-height: 1; letter-spacing: 5px; text-transform: uppercase;
	color: var(--eth-gold2); text-shadow: 0 3px 0 #3a2410, 0 2px 16px rgba(217,164,65,.4);
}
.eth-tagline { color: #cdbb98; text-shadow: 0 1px 4px #000; font-style: italic; font-family: Georgia, serif; margin-top: 6px; }

.eth-burger {
	display: none; flex: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-top: 8px;
	background: #241c14; border: 2px solid #5a4326; box-shadow: inset 0 0 0 2px #120e0a;
}
.eth-burger span { display: block; height: 3px; background: var(--eth-gold2); margin: 0 0 5px; }
.eth-burger span:last-child { margin: 0; }

/* ---------- Layout 3 colunas ---------- */
.eth-layout {
	flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: 18px; align-items: start;
	padding-top: 20px; padding-bottom: 36px;
}
.eth-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eth-left, .eth-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- Caixas laterais ---------- */
.eth-box { background: #1d1610; padding: 4px 6px 6px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.eth-box-title {
	display: flex; align-items: center; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px dashed #5a4326;
	font: 700 13px var(--eth-serif); letter-spacing: 1px; color: var(--eth-gold2); text-transform: uppercase;
}
.eth-box-title .eth-ico { width: 20px; height: 20px; }
.eth-box-more { display: inline-block; margin-top: 10px; color: var(--eth-gold); font-weight: 600; text-decoration: none; }
.eth-box-more:hover { color: var(--eth-gold2); }
.eth-box p { margin: 0 0 10px; color: #cdbb98; }
.eth-empty { color: var(--eth-muted); margin: 0; font-style: italic; }

/* ---------- Botoes ---------- */
.eth-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0; padding: 8px 14px; font: 700 13px var(--eth-sans);
	text-decoration: none; cursor: pointer; border: 2px solid #120e0a; color: #1d150b;
	background: linear-gradient(#f0c46a, #c9952f); box-shadow: inset 0 -3px 0 #8a6424, inset 0 2px 0 #f6d488;
}
.eth-btn:hover { color: #1d150b; filter: brightness(1.08); }
.eth-btn:active { box-shadow: inset 0 3px 0 #8a6424; }
.eth-btn-block { display: flex; width: 100%; margin-top: 8px; }
.eth-btn-ghost { background: #2a2017; color: var(--eth-gold2); box-shadow: inset 0 -3px 0 #120e0a, inset 0 2px 0 #4a3a26; }
.eth-btn-ghost:hover { color: var(--eth-gold2); }
.eth-btn-green { background: linear-gradient(#8fd486, #3f8a3a); box-shadow: inset 0 -3px 0 #2d6a29, inset 0 2px 0 #b9eab2; }
.eth-btn-download {
	margin-top: 0; padding: 12px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
	background: linear-gradient(#8fd486, #3f8a3a); box-shadow: inset 0 -4px 0 #2d6a29, inset 0 2px 0 #b9eab2, 0 6px 18px rgba(0,0,0,.45);
}
.eth-btn:focus-visible, .eth-acc summary:focus-visible, .eth-burger:focus-visible { outline: 2px solid var(--eth-gold2); outline-offset: 2px; }

/* ---------- Login ---------- */
.eth-login-form label { display: block; margin-bottom: 8px; }
.eth-login-form label span { display: block; color: var(--eth-muted); font-size: 12px; margin-bottom: 2px; }
.eth-login-form input {
	width: 100%; padding: 7px 8px; font: 13px var(--eth-sans); color: var(--eth-text);
	background: #120e0a; border: 2px solid #3a2c1b; box-shadow: inset 0 2px 0 #000;
}
.eth-login-form input:focus { outline: none; border-color: var(--eth-gold); }
.eth-login-lost { display: block; text-align: center; margin-top: 8px; color: var(--eth-muted); font-size: 12px; }
.eth-login-lost:hover { color: var(--eth-gold2); }
.eth-login-hello { color: #cdbb98; }

/* ---------- Menu em acordeao ---------- */
.eth-acc-nav { display: flex; flex-direction: column; gap: 6px; }
.eth-acc { background: #1d1610; border: 2px solid #120e0a; box-shadow: inset 0 0 0 2px #3a2c1b, 0 4px 12px rgba(0,0,0,.35); }
.eth-acc summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; padding: 9px 12px;
	font: 700 13px var(--eth-serif); letter-spacing: 1px; text-transform: uppercase; color: var(--eth-gold2);
	background: linear-gradient(#3a2c1b, #2a2017);
}
.eth-acc summary::-webkit-details-marker { display: none; }
.eth-acc summary span { flex: 1; }
.eth-acc summary::after { content: "▸"; color: var(--eth-gold); transition: transform .15s; }
.eth-acc[open] summary::after { transform: rotate(90deg); }
.eth-acc summary:hover { filter: brightness(1.15); }
.eth-acc summary .eth-ico { width: 20px; height: 20px; }
.eth-acc-links { display: flex; flex-direction: column; padding: 4px; }
.eth-acc-links a {
	display: flex; align-items: center; padding: 6px 8px; color: var(--eth-text); text-decoration: none; font-weight: 500;
}
.eth-acc-links a:hover { background: rgba(217,164,65,.12); color: var(--eth-gold2); }
.eth-acc-links a[aria-current="page"] { background: rgba(217,164,65,.18); color: var(--eth-gold2); box-shadow: inset 3px 0 0 var(--eth-gold); }

/* ---------- Barra rapida ---------- */
.eth-quickbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; padding: 6px 8px;
	background: linear-gradient(#2a2017, #1d1610); border: 2px solid #120e0a; box-shadow: inset 0 0 0 2px #5a4326, 0 6px 18px rgba(0,0,0,.45);
}
.eth-quickbar a { display: inline-flex; align-items: center; padding: 6px 10px; color: var(--eth-text); text-decoration: none; font-weight: 600; }
.eth-quickbar a:hover { color: var(--eth-gold2); background: rgba(217,164,65,.1); }
.eth-quickbar .eth-qb-online { margin-right: auto; }
.eth-qb-online { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.eth-qb-online.is-online, .eth-qb-online.is-online:hover { color: var(--eth-ok); }
.eth-qb-online.is-offline, .eth-qb-online.is-offline:hover { color: var(--eth-err); }
.eth-dot { width: 8px; height: 8px; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }

/* ---------- Paineis do centro ---------- */
.eth-panel { background: #1d1610; padding: 0 4px 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.eth-panel-title {
	display: flex; align-items: center; margin: -4px -4px 10px; padding: 8px 12px;
	font: 700 15px var(--eth-serif); letter-spacing: 1.5px; text-transform: uppercase; color: var(--eth-gold2);
	background: linear-gradient(#3a2c1b, #2a2017); border-bottom: 2px solid #120e0a;
}
.eth-panel-title .eth-ico { width: 20px; height: 20px; }

/* ultimas atualizacoes */
.eth-updates-list { list-style: none; margin: 0; padding: 0; }
.eth-updates-list li { background: var(--eth-parch); color: var(--eth-parch-text); border-bottom: 1px solid #c9b48a; }
.eth-updates-list li:nth-child(even) { background: #efe3c6; }
.eth-updates-list summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 7px 10px;
}
.eth-updates-list summary::-webkit-details-marker { display: none; }
.eth-updates-list summary .eth-ico { margin: 0; }
.eth-updates-list summary::after { content: "›"; margin-left: auto; font-weight: 700; color: #8a6424; transition: transform .15s; }
.eth-updates-list details[open] summary::after { transform: rotate(90deg); }
.eth-updates-list summary:hover { background: rgba(176,127,42,.12); }
.eth-updates-list time { flex: none; color: #7a6548; font-size: 12px; width: 76px; }
.eth-updates-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eth-updates-text b { color: #4a3520; }
.eth-updates-full { padding: 4px 12px 10px 112px; }
@media (max-width: 600px) { .eth-updates-full { padding-left: 12px; } .eth-updates-list time { width: auto; } }

/* pergaminho (conteudo das paginas) */
.eth-parchment {
	background: var(--eth-parch); color: var(--eth-parch-text);
	border: 1px solid #c9b48a; padding: 20px; overflow-x: auto;
	box-shadow: inset 0 0 60px rgba(176,127,42,.18);
}
@media (max-width: 600px) { .eth-parchment { padding: 14px 10px; } }
.eth-parchment, .eth-parchment td, .eth-parchment th { font-size: 12px; }
.eth-parchment a { color: var(--eth-link); font-weight: 700; text-decoration: none; }
.eth-parchment a:hover { color: var(--eth-link-hover); text-decoration: underline; }
.eth-parchment h1, .eth-parchment h2, .eth-parchment h3 { font-family: var(--eth-serif); color: #4a3520; }
.eth-parchment table { max-width: 100%; }
.eth-parchment img { max-width: 100%; height: auto; }

/* tabelas do MyAAC */
.eth-parchment .TableContainer { font-size: 12px; border-color: #c9b48a; }
.eth-parchment .TableContainer .Odd { background-color: #f2e8d0; }
.eth-parchment .TableContainer .Even { background-color: #e3d4b0; }
.eth-parchment .CaptionContainer, .eth-parchment .CaptionContainer .CaptionInnerContainer { background: #4a3520 !important; }
.eth-parchment .CaptionContainer .Text { color: #f6eedb !important; font-family: var(--eth-serif); }
.eth-parchment td.white, .eth-parchment .white, .eth-parchment .whites { color: #fff; }

/* formularios */
.eth-parchment input[type=text], .eth-parchment input[type=email], .eth-parchment input[type=password],
.eth-parchment input[type=number], .eth-parchment select, .eth-parchment textarea {
	font: 13px var(--eth-sans); padding: 5px 8px; border: 1px solid #b9a072; border-radius: 4px;
	background: #fffaf0; color: var(--eth-parch-text); max-width: 100%;
}
.eth-parchment input:focus, .eth-parchment select:focus, .eth-parchment textarea:focus { outline: 2px solid var(--eth-gold); outline-offset: 0; }

/* noticias em formato de artigo */
.eth-news { margin-bottom: 18px; }
.eth-news-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid #c9b48a; margin-bottom: 12px; }
.eth-news-icon { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.eth-news-title { margin: 0; font: 700 20px var(--eth-serif); color: #4a3520; }
.eth-news-meta { color: #7a6548; font-size: 12px; margin-top: 2px; }
.eth-news-body { font-size: 14px; line-height: 1.65; }
.eth-news-body h3, .eth-news-body h4 {
	text-align: center; font: 700 15px var(--eth-serif); letter-spacing: 2px; text-transform: uppercase; color: #8a3b12; margin: 20px 0 10px;
}
.eth-news-body h3::before, .eth-news-body h4::before { content: "◆ "; color: var(--eth-gold); }
.eth-news-body h3::after, .eth-news-body h4::after { content: " ◆"; color: var(--eth-gold); }
.eth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.eth-divider::before, .eth-divider::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #b07f2a); }
.eth-divider::after { background: linear-gradient(90deg, #b07f2a, transparent); }
.eth-divider img { width: 16px; height: 16px; image-rendering: pixelated; }
.eth-news-comments { text-align: right; }

/* ---------- Boosted ---------- */
.eth-boosted-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eth-boosted-card { margin: 0; text-align: center; }
.eth-boosted-stage {
	height: 92px; display: flex; align-items: flex-end; justify-content: center;
	background:
		radial-gradient(ellipse 60% 18% at 50% 88%, rgba(0,0,0,.55), rgba(0,0,0,0) 70%),
		radial-gradient(circle at 50% 60%, rgba(217,164,65,.28), rgba(217,164,65,0) 60%),
		repeating-conic-gradient(#2b2520 0 25%, #221d19 0 50%) 0 0 / 16px 16px;
	border: 2px solid #120e0a; box-shadow: inset 0 0 0 1px #3a2c1b; overflow: hidden;
}
.eth-boosted-img { max-height: 88px; max-width: 100%; image-rendering: pixelated; margin-bottom: 4px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.eth-boosted-img:not(.is-fallback) { transform: scale(1.25); transform-origin: 50% 100%; }
.eth-boosted-img.is-fallback { width: 40px; height: 40px; margin-bottom: 22px; }
.eth-boosted-card figcaption { display: flex; flex-direction: column; margin-top: 6px; line-height: 1.3; }
.eth-boosted-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--eth-muted); }
.eth-boosted-name { font: 700 13px var(--eth-serif); color: var(--eth-text); overflow-wrap: anywhere; }
.eth-boosted-perk { color: var(--eth-ok); font-size: 11px; }

/* ---------- Status e top 5 ---------- */
.eth-stats { list-style: none; margin: 0; padding: 0; }
.eth-stats li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(90,67,38,.4); }
.eth-stats li:last-child { border-bottom: 0; }
.eth-stats span { color: var(--eth-muted); }
.eth-stats .is-online { color: var(--eth-ok); }
.eth-stats .is-offline { color: var(--eth-err); }

.eth-top { list-style: none; margin: 0; padding: 0; }
.eth-top li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(90,67,38,.4); }
.eth-top li:last-child { border-bottom: 0; }
.eth-rank {
	width: 20px; height: 20px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 11px;
	background: #3a2c1b; color: var(--eth-text); border: 1px solid #120e0a;
}
.eth-rank-1 { background: #c9952f; color: #1d150b; }
.eth-rank-2 { background: #a9b0b8; color: #1d150b; }
.eth-rank-3 { background: #a0673a; color: #1d150b; }
.eth-top-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eth-top-name a { color: var(--eth-text); font-weight: 600; text-decoration: none; }
.eth-top-name a:hover { color: var(--eth-gold2); }
.eth-top-name small { display: block; color: var(--eth-muted); font-size: 11px; }
.eth-top-lvl { color: var(--eth-gold); font-weight: 700; font-size: 12px; }

/* ---------- Rodape com mapa do site ---------- */
.eth-footer { background: #0f0b08; color: var(--eth-muted); font-size: 12px; padding: 0 0 18px; }
.eth-ground { height: 48px; background: url('images/pixel/ground.png') left top / auto 48px repeat-x; image-rendering: pixelated; margin-bottom: 18px; }
.eth-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #2a2017; }
.eth-sitemap h3 { display: flex; align-items: center; margin: 0 0 8px; font: 700 12px var(--eth-serif); letter-spacing: 1px; text-transform: uppercase; color: var(--eth-gold2); }
.eth-sitemap a { display: block; color: var(--eth-muted); text-decoration: none; padding: 2px 0; }
.eth-sitemap a:hover { color: var(--eth-gold2); }
.eth-footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-top: 14px; }
.eth-footer-meta { flex: 1; text-align: center; min-width: 200px; }
.eth-footer-meta br { display: none; }
.eth-footer a { color: var(--eth-gold); }
.eth-template-form { margin-top: 8px; text-align: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
	.eth-layout { grid-template-columns: 210px minmax(0, 1fr); }
	.eth-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
}
@media (max-width: 820px) {
	.eth-layout { grid-template-columns: minmax(0, 1fr); }
	.eth-burger { display: block; }
	/* menu lateral vira gaveta */
	.eth-left {
		position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(290px, 86vw); overflow-y: auto;
		padding: 14px; background: #120e0a; border-right: 2px solid #5a4326; transform: translateX(-105%);
		transition: transform .2s ease-out; visibility: hidden;
	}
	.eth-nav-open .eth-left { transform: none; visibility: visible; }
	.eth-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); }
	.eth-nav-open { overflow: hidden; }
}
@media (min-width: 821px) { .eth-scrim { display: none !important; } }
@media (max-width: 640px) {
	.eth-hero { background-size: auto, auto 120px, auto; }
	.eth-header-inner { min-height: 0; padding-top: 18px; padding-bottom: 44px; }
	.eth-title { font-size: 26px; letter-spacing: 3px; }
	.eth-emblem { width: 44px; height: 44px; }
	.eth-quickbar .eth-qb-online { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .eth-left, .eth-acc summary::after, .eth-updates-list summary::after { transition: none; } }
