/* Valdora Online — site oficial. Fantasia medieval sombria: ferro, couro, pergaminho gasto, brasa. */
:root {
  --bg: #0b0908;
  --bg-2: #120f0c;
  --panel: #18130f;
  --panel-2: #1f1913;
  --line: #3a2f24;
  --line-2: #574632;
  --bronze: #a8814b;
  --gold: #cfae6b;
  --gold-hi: #e6cd93;
  --text: #e8dfcf;
  --text-2: #c9bda7;
  --muted: #a3967f;
  --blood: #8f1d15;
  --blood-hi: #d0493a;
  --ok: #8fb878;
  --t1: #b8bec6; --t2: #e0773c; --t3: #d9aa45; --t4: #3fd58a; --t5: #5b8dff;
  --f-title: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-text: "Alegreya", Georgia, "Times New Roman", serif;
  --f-label: "Alegreya Sans SC", "Alegreya Sans", "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gut: 16px;
  --radius: 2px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.33'/></svg>");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-text); font-kerning: normal;
  background-image: var(--noise), radial-gradient(120% 60% at 50% -10%, #2a1d12 0%, transparent 60%);
  
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(207, 174, 107, .45); text-underline-offset: .18em; }
a:hover { color: var(--gold-hi); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: #6b3a1c; color: #fff; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #120d08; padding: .6rem 1rem; z-index: 99; font-family: var(--f-label); }
.skip:focus { left: var(--gut); top: .5rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 46rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 600; color: var(--gold-hi); line-height: 1.18; letter-spacing: .02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 700; letter-spacing: .04em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .5vw, 1.35rem); }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong, strong { color: var(--text); font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--text-2); max-width: 40rem; }
.kicker { font-family: var(--f-label); text-transform: lowercase; font-variant: small-caps; letter-spacing: .14em; color: var(--bronze); font-size: 1rem; margin: 0 0 .4rem; }
.muted { color: var(--muted); }
small, .small { font-size: .92rem; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin: .2em 0; }
li::marker { color: var(--bronze); }
code, kbd { font-family: ui-monospace, "DejaVu Sans Mono", Menlo, monospace; font-size: .86em; background: #0e0b09; border: 1px solid var(--line); padding: .05em .35em; border-radius: var(--radius); color: #eadcc0; word-break: break-word; }
pre { background: #0e0b09; border: 1px solid var(--line); padding: .9rem 1rem; overflow-x: auto; max-width: 100%; font-size: .92rem; line-height: 1.5; }
pre code { border: 0; padding: 0; background: none; word-break: normal; }
hr.rule { border: 0; height: 18px; margin: 2.5rem auto; max-width: 30rem; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18'><g fill='none' stroke='%23a8814b' stroke-width='1'><path d='M0 9h128M172 9h128'/><path d='M150 2l7 7-7 7-7-7z'/><path d='M135 9h-4M169 9h-4' stroke-width='3'/></g></svg>") center/contain no-repeat; }

/* ---------- cabeçalho ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 9, 8, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: linear-gradient(90deg, transparent, rgba(168, 129, 75, .35), transparent); pointer-events: none; }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--gold-hi); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand svg { width: 34px; height: 38px; flex: none; }
.brand b { font-family: var(--f-title); font-weight: 700; letter-spacing: .16em; font-size: 1.12rem; line-height: 1; }
.brand .wm { display: block; }
.brand b { display: block; }
.brand i { display: block; font-style: normal; font-family: var(--f-label); font-size: .72rem; letter-spacing: .38em; color: var(--bronze); margin-top: .2rem; }
.nav { display: flex; gap: .15rem; align-items: center; }
.nav a { font-family: var(--f-label); font-size: 1.02rem; letter-spacing: .06em; color: var(--text-2); text-decoration: none; padding: .55rem .7rem; min-height: 44px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold-hi); }
.nav a[aria-current="page"], .nav a.on { color: var(--gold-hi); border-bottom-color: var(--bronze); }
.nav .cta-mini { margin-left: .4rem; border: 1px solid var(--bronze); color: var(--gold-hi); padding: .45rem .9rem; background: linear-gradient(#2a1f14, #17110c); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--gold); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #0d0b09; border-bottom: 1px solid var(--line); padding: .4rem var(--gut) 1rem; box-shadow: 0 18px 30px rgba(0, 0, 0, .6); }
  .nav a { border-bottom: 1px solid #221b14; padding: .7rem .2rem; }
  .nav a[aria-current="page"] { border-bottom-color: #221b14; color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--bronze); padding-left: .7rem; }
  .nav .cta-mini { margin: .8rem 0 0; justify-content: center; }
  html.js .nav { display: none; }
  html.js .top.open .nav { display: flex; }
}

/* ---------- botões ---------- */
.btn { --c: var(--gold-hi); display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.35rem; font-family: var(--f-title); font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--c); border: 1px solid var(--bronze); border-radius: var(--radius); background: linear-gradient(180deg, #2c2116 0%, #16100b 100%); box-shadow: inset 0 1px 0 rgba(230, 205, 147, .18), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .45); position: relative; }
.btn::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(168, 129, 75, .28); pointer-events: none; }
.btn:hover { color: #fff3d6; border-color: var(--gold); background: linear-gradient(180deg, #3a2a19, #1c140d); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.prime { --c: #1a0f07; color: #1a0f07; border-color: #e7c27a; background: linear-gradient(180deg, #e9c983 0%, #b88a45 55%, #8e6430 100%); text-shadow: 0 1px 0 rgba(255, 240, 200, .35); box-shadow: inset 0 1px 0 rgba(255, 245, 215, .7), 0 0 0 1px #3b2712, 0 10px 28px rgba(150, 90, 30, .28); }
.btn.prime::before { border-color: rgba(60, 35, 10, .35); }
.btn.prime:hover { color: #000; background: linear-gradient(180deg, #f4d999, #c79a52 55%, #9a6d35); }
.btn.blood { border-color: #a5372a; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn small { font-family: var(--f-label); text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: .85rem; opacity: .85; }

/* ---------- herói ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 46rem); display: flex; align-items: flex-end; padding: 6rem 0 3.5rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .bg { position: absolute; inset: 0; z-index: -2; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); filter: saturate(.9) contrast(1.05) brightness(1.08); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 9, 8, .6) 0%, rgba(11, 9, 8, .05) 30%, rgba(11, 9, 8, .55) 72%, var(--bg) 100%), linear-gradient(90deg, rgba(11, 9, 8, .78) 0%, rgba(11, 9, 8, .35) 45%, transparent 70%); }
.hero.small::before { background: linear-gradient(180deg, rgba(11, 9, 8, .55), rgba(11, 9, 8, .7) 60%, var(--bg)), linear-gradient(90deg, rgba(11, 9, 8, .7), transparent 75%); }
@media (max-width: 700px) { .hero .bg img { object-position: var(--pos-m, 62% 40%); } .hero::before { background: linear-gradient(180deg, rgba(11, 9, 8, .45) 0%, rgba(11, 9, 8, .25) 30%, rgba(11, 9, 8, .82) 62%, var(--bg) 100%); } }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 6vw, 5.4rem); margin-bottom: .25em; background: linear-gradient(180deg, #f6e5b9 0%, #d2ad66 55%, #9a7238 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .95)) drop-shadow(0 0 18px rgba(0, 0, 0, .7)); }
.hero .lede { color: #e9dfcb; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.hero .kicker { color: #d9b878; text-shadow: 0 1px 4px #000, 0 0 12px rgba(0, 0, 0, .9); }
.hero .btns { margin-top: 1.6rem; }
.hero.small { min-height: 0; padding: 5rem 0 2.2rem; }
.hero.small h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); }
.hero .note { margin-top: 1rem; font-family: var(--f-label); color: var(--text-2); font-size: .95rem; text-shadow: 0 1px 6px #000; }

/* ---------- seções ---------- */
.sec { padding: clamp(2.6rem, 2rem + 3vw, 4.8rem) 0; }
.sec.alt { background: linear-gradient(180deg, rgba(31, 25, 19, .55), rgba(18, 15, 12, .2)); border-top: 1px solid #221b14; border-bottom: 1px solid #221b14; }
.sec-head { margin-bottom: 1.8rem; max-width: 44rem; }
.sec-head p { color: var(--text-2); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.4rem; }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 1fr; } .split.rev > :first-child { order: 2; } }

/* ---------- cartões e molduras ---------- */
.card { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem 1.2rem; box-shadow: inset 0 1px 0 rgba(255, 230, 180, .04), 0 10px 24px rgba(0, 0, 0, .35); min-width: 0; }
.card::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(168, 129, 75, .12); pointer-events: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
.card .ico { width: 40px; height: 40px; color: var(--bronze); margin-bottom: .7rem; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--bronze); transform: translateY(-2px); }
a.card:hover h3 { color: #fff0cc; }
.frame { position: relative; border: 1px solid var(--line-2); padding: 5px; background: #0c0a08; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.frame img { width: 100%; }
.frame::after { content: ""; position: absolute; inset: 5px; box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); pointer-events: none; }
.frame figcaption, figure figcaption { font-family: var(--f-label); font-size: .9rem; color: var(--muted); padding: .55rem .2rem .1rem; }
figure { margin: 0; }
.shot { aspect-ratio: 16 / 9; object-fit: cover; }

.region-card { padding: 0; overflow: hidden; }
.region-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); filter: saturate(.9); }
.region-card .body { padding: 1rem 1.1rem 1.15rem; }
.region-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }

/* faixa de números */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); border: 1px solid var(--line); background: rgba(14, 11, 9, .8); }
.stats div { padding: 1rem .8rem; text-align: center; border-right: 1px solid #221b14; border-bottom: 1px solid #221b14; }
.stats b { display: block; font-family: var(--f-title); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--gold-hi); line-height: 1.1; }
.stats span { font-family: var(--f-label); color: var(--muted); font-size: .95rem; letter-spacing: .04em; }

/* ---------- selos ---------- */
.tag { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-label); font-size: .86rem; letter-spacing: .05em; line-height: 1; padding: .32rem .5rem; border: 1px solid var(--line-2); color: var(--text-2); background: #120e0b; border-radius: var(--radius); white-space: nowrap; }
.tag.t { --tc: var(--t1); border-color: color-mix(in srgb, var(--tc) 55%, #000); color: color-mix(in srgb, var(--tc) 80%, #fff); }
.tag.t::before { content: ""; width: .55rem; height: .55rem; transform: rotate(45deg); background: var(--tc); box-shadow: 0 0 6px var(--tc); }
.tag.t1 { --tc: var(--t1); } .tag.t2 { --tc: var(--t2); } .tag.t3 { --tc: var(--t3); } .tag.t4 { --tc: var(--t4); } .tag.t5 { --tc: var(--t5); }
.tag.red { border-color: #7a2219; color: #ff9b8c; background: #1d0b08; }
.tag.safe { border-color: #3f5a33; color: #b9d7a4; }
.tag.boss { border-color: #8a6a2a; color: var(--gold-hi); background: #1d150b; }

/* aviso de zona vermelha */
.warn { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid #6e1f17; border-left: 4px solid var(--blood-hi); background: linear-gradient(90deg, rgba(110, 25, 18, .32), rgba(30, 10, 8, .5)); margin: 1.2rem 0; }
.warn svg { width: 28px; height: 28px; color: var(--blood-hi); flex: none; margin-top: .15rem; }
.warn p { margin: 0; color: #f0d7cf; }
.warn strong { color: #ffc2b5; }
.note-box { padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-left: 4px solid var(--bronze); background: rgba(31, 25, 19, .6); margin: 1.2rem 0; }
.note-box p:last-child { margin: 0; }

/* ---------- tabelas ---------- */
.tbl { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: rgba(14, 11, 9, .7); margin: 0 0 1.4rem; -webkit-overflow-scrolling: touch; }
.tbl:focus-visible { outline-offset: 1px; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid #231c15; vertical-align: top; }
th { font-family: var(--f-label); font-weight: 500; letter-spacing: .05em; color: var(--gold); background: #15100c; position: sticky; top: 0; white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover { background: rgba(168, 129, 75, .06); }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
.cell-item { display: flex; align-items: center; gap: .55rem; min-width: 10rem; }
.cell-item img, .ico-sm { width: 32px; height: 32px; flex: none; border: 1px solid #2c241b; background: #0c0a08; }
.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .15rem 1.1rem; margin: 0 0 1.2rem; }
.kv dt { font-family: var(--f-label); color: var(--muted); letter-spacing: .03em; }
.kv dd { margin: 0; color: var(--text); }
@media (max-width: 340px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .5rem; } }
@media (max-width: 999px) { .wiki-layout > .side { order: 2; border-top: 1px solid var(--line); padding-top: 1.4rem; } }

/* ---------- novidades ---------- */
.news { display: grid; gap: 1.4rem; }
.post { border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 1.3rem 1.3rem 1.1rem; position: relative; }
.post time, .post .date { font-family: var(--f-label); color: var(--bronze); letter-spacing: .08em; font-size: .95rem; }
.post h2, .post h3 { margin: .25rem 0 .6rem; }
.post ul { color: var(--text-2); }
.post .tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }
.post.lead { border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(168, 129, 75, .15), 0 16px 40px rgba(0, 0, 0, .5); }
.post .media { margin: .4rem 0 1rem; }

/* ---------- wiki ---------- */
.crumbs { font-family: var(--f-label); font-size: .95rem; color: var(--muted); margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.page-head { padding: 2.4rem 0 1.2rem; border-bottom: 1px solid #221b14; margin-bottom: 2rem; background: linear-gradient(180deg, rgba(42, 29, 18, .35), transparent); }
.page-head p { color: var(--text-2); max-width: 44rem; margin-bottom: 0; }
.wiki-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 4rem; }
@media (min-width: 1000px) { .wiki-layout { grid-template-columns: 14rem 1fr; } }
.side { font-family: var(--f-label); }
.side h2 { font-size: 1rem; letter-spacing: .12em; color: var(--bronze); margin-bottom: .5rem; }
.side ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.side li { margin: 0; }
.side a { display: flex; align-items: center; min-height: 40px; padding: .3rem .6rem; color: var(--text-2); text-decoration: none; border: 1px solid #221b14; background: #110d0a; }
.side a:hover { color: var(--gold-hi); border-color: var(--line-2); }
.side a.on { color: var(--gold-hi); border-color: var(--bronze); }
@media (min-width: 1000px) {
  .side { position: sticky; top: 5rem; align-self: start; max-height: calc(100vh - 6rem); overflow: auto; }
  .side ul { flex-direction: column; gap: 0; }
  .side a { border: 0; border-left: 2px solid #2a2118; background: none; min-height: 36px; }
  .side a.on { border-left-color: var(--bronze); }
}
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 1.2rem; padding: .8rem; border: 1px solid var(--line); background: rgba(14, 11, 9, .8); }
.search { position: relative; flex: 1 1 16rem; min-width: 0; }
.search svg { position: absolute; left: .75rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--bronze); pointer-events: none; }
input[type="search"], select { width: 100%; min-height: 44px; font: inherit; font-size: 1rem; color: var(--text); background: #0d0a08; border: 1px solid var(--line-2); border-radius: var(--radius); padding: .5rem .8rem .5rem 2.4rem; }
select { padding-left: .7rem; width: auto; max-width: 100%; flex: 0 1 auto; }
input[type="search"]::placeholder { color: #85786a; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-family: var(--f-label); font-size: .95rem; min-height: 40px; padding: .35rem .75rem; border: 1px solid var(--line-2); background: #120e0b; color: var(--text-2); cursor: pointer; border-radius: var(--radius); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: #1a0f07; background: linear-gradient(180deg, #e0be7a, #a47a3e); }
.count { font-family: var(--f-label); color: var(--muted); font-size: .95rem; margin-left: auto; }
.empty { display: none; padding: 1rem; color: var(--muted); border: 1px dashed var(--line-2); }
.empty.show { display: block; }

.entry-list { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.entry { display: flex; gap: .8rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); background: linear-gradient(180deg, #1b1611, #14100d); text-decoration: none; color: var(--text); min-height: 64px; min-width: 0; }
.entry:hover { border-color: var(--bronze); color: var(--text); }
.entry img { width: 48px; height: 48px; flex: none; border: 1px solid #2c241b; background: #0b0908; object-fit: cover; }
.entry .ph { width: 48px; height: 48px; flex: none; border: 1px solid #2c241b; background: #0b0908; display: grid; place-items: center; color: var(--bronze); }
.entry .ph svg { width: 26px; height: 26px; }
.entry b { display: block; font-family: var(--f-title); font-weight: 600; font-size: 1rem; color: var(--gold-hi); line-height: 1.25; overflow-wrap: anywhere; }
.entry span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.35; }
.entry .tag { margin-top: .25rem; }
.entry-body { min-width: 0; }
[hidden] { display: none !important; }

.detail { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 760px) { .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } .detail.icon { grid-template-columns: 9rem 1fr; } }
.detail .portrait img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.big-icon { width: 128px; height: 128px; border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 40%, #2a2118, #0b0908); padding: 6px; }
.statline { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1rem; }
.wiki-main h2 { margin-top: 2rem; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); border-bottom: 1px solid #2a2118; padding-bottom: .35rem; }
.wiki-main h2:first-child { margin-top: 0; }
.cols { columns: 2 16rem; column-gap: 2rem; }
.cols li { break-inside: avoid; }

/* busca global */
.gsearch-out { display: grid; gap: .5rem; margin-top: .8rem; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); background: #080706; padding: 2.4rem 0 2rem; margin-top: 2rem; font-family: var(--f-label); color: var(--muted); }
.foot .cols3 { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: 1.6rem; }
.foot h2 { font-size: .95rem; letter-spacing: .14em; color: var(--bronze); margin-bottom: .6rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0; }
.foot a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot a:hover { color: var(--gold-hi); }
.foot .fine { border-top: 1px solid #1d1712; padding-top: 1.2rem; font-size: .9rem; }

/* passos numerados */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .8rem; }
.steps > li { counter-increment: s; position: relative; padding: .9rem 1rem .9rem 3.4rem; border: 1px solid var(--line); background: rgba(24, 19, 15, .8); margin: 0; color: var(--text-2); }
.steps > li::before { content: counter(s, upper-roman); position: absolute; left: .8rem; top: .85rem; width: 1.9rem; text-align: center; font-family: var(--f-title); color: var(--gold); font-weight: 700; }
.steps > li strong { color: var(--text); }

/* FAQ */
details.faq { border: 1px solid var(--line); background: rgba(24, 19, 15, .85); margin: 0 0 .6rem; }
details.faq summary { cursor: pointer; list-style: none; padding: .9rem 2.8rem .9rem 1rem; font-family: var(--f-title); font-weight: 600; color: var(--gold-hi); position: relative; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--bronze); border-bottom: 2px solid var(--bronze); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq > div { padding: 0 1rem 1rem; color: var(--text-2); }
details.faq > div p:last-child { margin-bottom: 0; }

.keys { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; }
.keys li { display: flex; gap: .6rem; align-items: baseline; margin: 0; color: var(--text-2); }
kbd { min-width: 1.8em; text-align: center; display: inline-block; border-bottom-width: 2px; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; text-align: center; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.7); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(11, 9, 8, .55), rgba(11, 9, 8, .95)); }
.cta-band .btns { justify-content: center; }
.cta-band p { color: var(--text-2); max-width: 36rem; margin-left: auto; margin-right: auto; }

.dl-card { display: grid; gap: 1rem; }
.hash { font-family: ui-monospace, monospace; font-size: .78rem; word-break: break-all; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .foot, .side, .filters, .menu-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* itens de grade não crescem além da coluna (tabelas largas rolam dentro da própria caixa) */
.wiki-layout > *, .split > *, .grid > *, .detail > *, .dl-card > * { min-width: 0; }
.ico-inline { width: 1em; height: 1em; vertical-align: -.15em; display: inline-block; }
@media (max-width: 480px) {
  .hero .btns .btn, .cta-band .btns .btn { flex: 1 1 100%; }
  .btn { letter-spacing: .06em; padding: .7rem 1rem; }
}
