/* ==========================================================================
   MDK MU — Guia / Wiki  ·  v2
   Identidade: escuro premium, dourado refinado, tipografia forte
   ========================================================================== */

:root {
  /* Superfícies */
  --bg:          #08090c;
  --bg-grid:     #0c0e13;
  --surface:     #0f1218;
  --surface-2:   #141821;
  --surface-3:   #1a1f2b;
  --line:        #232a37;
  --line-soft:   #1a202b;

  /* Dourado / accent */
  --gold:        #d9a441;
  --gold-hi:     #f3ce74;
  --gold-lo:     #a97d26;
  --gold-glow:   rgba(217,164,65,0.18);

  /* Texto */
  --ink:         #eef1f6;
  --ink-2:       #aeb6c4;
  --ink-3:       #7b8494;
  --ink-4:       #565f6e;

  /* Estados */
  --ok:          #45d483;
  --no:          #f0616a;
  --info:        #5aa9ff;

  /* Métricas */
  --nav-w:       288px;
  --toc-w:       232px;
  --top-h:       60px;
  --wrap:        1500px;
  --read:        820px;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --serif: "Cinzel", Georgia, serif;

  --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
  --ring: 0 0 0 1px var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  background:
    radial-gradient(1000px 520px at 88% -8%, rgba(217,164,65,.10), transparent 62%),
    radial-gradient(760px 440px at -6% 8%, rgba(90,169,255,.05), transparent 60%),
    linear-gradient(180deg, var(--bg-grid), var(--bg) 320px);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 40%, transparent 100%);
  z-index: 0;
}

a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--gold); }
::selection { background: rgba(217,164,65,.3); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #29313f; border-radius: 20px; border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #39434f; background-clip: content-box; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h);
  z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 0 22px;
  background: rgba(9,11,15,.72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .3px; color: var(--ink); }
.brand .name b { color: var(--gold-hi); }
.brand .brand-guia {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); padding-left: 10px; position: relative;
}
.brand .brand-guia::before {
  content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 1px;
  background: var(--line);
}

.searchbox {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-3); font-size: 13.5px;
  cursor: text; transition: .16s;
}
.searchbox:hover { border-color: #33404f; background: var(--surface-2); }
.searchbox .kbd {
  margin-left: auto; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--ink-4);
}

.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.langsel { position: relative; }
.langsel .cur {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer;
}
.langsel .cur:hover { border-color: var(--gold-lo); color: var(--ink); }
.langsel .cur .chev { font-size: 9px; color: var(--ink-4); }
.langsel .menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: var(--shadow);
  display: none; z-index: 120;
}
.langsel.open .menu { display: block; }
.langsel .menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
}
.langsel .menu button:hover { background: var(--surface-3); color: var(--ink); }
.langsel .menu button.active { color: var(--gold-hi); }
.langsel .menu button .flag { font-size: 15px; }
.langsel .menu button .tick { margin-left: auto; color: var(--gold); opacity: 0; }
.langsel .menu button.active .tick { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; border: 1px solid transparent;
  cursor: pointer; transition: .16s; white-space: nowrap;
}
.btn-primary {
  color: #17130a;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold-lo));
  box-shadow: 0 6px 20px -6px rgba(217,164,65,.6);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); color: #17130a; }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  place-items: center; background: var(--surface); border: 1px solid var(--line);
  color: var(--gold-hi); cursor: pointer; font-size: 17px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0,1fr) var(--toc-w);
  max-width: var(--wrap); margin: 0 auto; padding-top: var(--top-h);
}

/* ---- NAV ---- */
.nav {
  position: sticky; top: var(--top-h); align-self: start;
  height: calc(100vh - var(--top-h)); overflow-y: auto;
  padding: 26px 14px 60px 24px;
  border-right: 1px solid var(--line-soft);
}
.nav-group { margin-bottom: 6px; }

/* Cabeçalho de grupo (com ícone) */
.nav .grp-head {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--ink); font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  cursor: pointer; user-select: none; transition: .13s;
}
.nav .grp-head:hover { background: var(--surface); }
.nav .grp-head .gico { width: 17px; height: 17px; display: grid; place-items: center; color: var(--gold); flex: none; }
.nav .grp-head .gico svg { width: 17px; height: 17px; }
.nav .grp-head .grp-label { flex: 1; }
.nav .grp-head .chev { font-size: 11px; color: var(--ink-4); transition: .2s; }
.nav .grp-head.open .chev { transform: rotate(90deg); color: var(--gold); }

/* Corpo do grupo */
.nav .grp-body { display: none; margin: 2px 0 8px; padding-left: 12px; margin-left: 8px; border-left: 1px solid var(--line-soft); }
.nav .grp-body.open { display: block; }

/* Itens */
.nav .item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 9px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; position: relative; transition: .13s;
}
.nav .item:hover { background: var(--surface); color: var(--ink); }
.nav .item.active {
  background: linear-gradient(90deg, var(--gold-glow), transparent 85%);
  color: var(--gold-hi); font-weight: 600;
}
.nav .item.active::before {
  content: ""; position: absolute; left: -13px; top: 7px; bottom: 7px; width: 2.5px;
  border-radius: 3px; background: linear-gradient(var(--gold-hi), var(--gold-lo));
  box-shadow: 0 0 8px var(--gold);
}
.nav .item.has-sub { justify-content: space-between; }
.nav .item .sub-chev { font-size: 11px; color: var(--ink-4); padding: 2px 4px; border-radius: 5px; transition: .18s; }
.nav .item .sub-chev:hover { background: var(--surface-3); color: var(--gold); }
.nav .item.open .sub-chev { transform: rotate(90deg); color: var(--gold); }

/* Filhos (3º nível) */
.nav .subitems { display: none; margin: 1px 0 4px; padding-left: 10px; margin-left: 6px; border-left: 1px solid var(--line-soft); }
.nav .subitems.open { display: block; }
.nav .subitem {
  display: block; padding: 6px 11px; border-radius: 8px;
  color: var(--ink-3); font-size: 12.5px; transition: .12s;
}
.nav .subitem:hover { background: var(--surface); color: var(--ink-2); }
.nav .subitem.active { color: var(--gold-hi); font-weight: 600; }

/* ---- CONTENT ---- */
.content { min-width: 0; padding: 40px 56px 100px; }
.content-inner { max-width: var(--read); margin: 0 auto; }

.breadcrumb { font-size: 12.5px; color: var(--ink-4); margin-bottom: 22px; display: flex; gap: 9px; align-items: center; }
.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb .sep { opacity: .5; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  color: var(--gold); padding: 5px 12px; border-radius: 20px;
  background: var(--gold-glow); border: 1px solid rgba(217,164,65,.25); margin-bottom: 18px;
}
h1.page-title {
  font-family: var(--display); font-weight: 700;
  font-size: 40px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.5px;
  color: #fff;
  background: linear-gradient(180deg, #fff 40%, #cfd4dd);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-tags { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .4px;
  padding: 5px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-hi);
}
.lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 34px; }

h2 {
  font-family: var(--display); font-weight: 600; font-size: 24px;
  margin: 52px 0 16px; color: #fff; scroll-margin-top: 80px;
  display: flex; align-items: center; gap: 12px;
}
h2::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h3 { font-size: 17px; margin: 30px 0 10px; color: var(--gold-hi); scroll-margin-top: 80px; }
p { margin: 0 0 15px; color: var(--ink-2); }
strong, b { color: var(--ink); font-weight: 650; }
em { color: var(--gold-hi); font-style: normal; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px,1fr)); gap: 16px; margin: 28px 0; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px; transition: .18s;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,164,65,.5), transparent);
  opacity: 0; transition: .2s;
}
.card:hover { border-color: var(--gold-lo); transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card .ci {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  font-size: 20px; margin-bottom: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(217,164,65,.28), rgba(217,164,65,.05));
  border: 1px solid var(--line);
}
.card h4 { margin: 0 0 6px; font-size: 15.5px; color: #fff; font-weight: 650; }
.card p { margin: 0; font-size: 13px; color: var(--ink-3); }
.card.link { cursor: pointer; }
.card.link h4 { color: var(--gold-hi); }
.card.link::before {
  content: "→"; position: absolute; top: 20px; right: 20px; color: var(--gold);
  opacity: 0; transform: translateX(-4px); transition: .18s;
}
.card.link:hover::before { opacity: 1; transform: translateX(0); }

/* Tabelas */
.table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 440px; }
thead th {
  text-align: left; padding: 13px 18px;
  background: var(--surface-2); color: var(--gold);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: .1s; }
tbody tr:hover td { background: rgba(217,164,65,.045); }
tbody td:first-child { color: var(--ink); font-weight: 600; }
.yes, td .yes { color: var(--ok); font-weight: 700; }
.no, td .no { color: var(--no); font-weight: 700; }
.val, td.val, td .val { color: var(--gold-hi); font-weight: 700; }

/* Callouts */
.callout { display: flex; gap: 14px; padding: 17px 19px; border-radius: var(--r); margin: 24px 0; border: 1px solid var(--line); background: var(--surface); }
.callout .ci { font-size: 18px; line-height: 1.5; }
.callout .body { font-size: 13.5px; color: var(--ink-2); }
.callout .body b { display: block; margin-bottom: 3px; color: #fff; }
.callout.success { border-color: rgba(69,212,131,.32); background: rgba(69,212,131,.06); }
.callout.success .ci { color: var(--ok); }
.callout.warn { border-color: rgba(217,164,65,.38); background: rgba(217,164,65,.07); }
.callout.warn .ci { color: var(--gold-hi); }
.callout.danger { border-color: rgba(240,97,106,.36); background: rgba(240,97,106,.06); }
.callout.danger .ci { color: var(--no); }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { border: 1px solid var(--line); border-radius: var(--r); padding: 17px 20px; background: var(--surface); transition: .15s; }
.pager a:hover { border-color: var(--gold-lo); background: var(--surface-2); transform: translateY(-2px); }
.pager .dir { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-4); }
.pager .ttl { color: var(--gold-hi); font-weight: 600; margin-top: 5px; }
.pager .next { text-align: right; }

/* Rodapé de crédito */
.site-credit {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4);
}
.site-credit a {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; letter-spacing: .5px; color: var(--gold-hi);
  padding: 6px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-2); transition: .15s;
}
.site-credit a:hover { border-color: var(--gold-lo); color: var(--gold); transform: translateY(-1px); }
.site-credit .wa-ic { font-size: 12px; }

/* ---- TOC ---- */
.toc { position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 40px 22px 40px 10px; font-size: 13px; }
.toc .label { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); font-weight: 700; margin-bottom: 14px; }
.toc a { display: block; padding: 6px 14px; color: var(--ink-4); border-left: 2px solid var(--line-soft); transition: .12s; }
.toc a:hover { color: var(--ink-2); }
.toc a.active { color: var(--gold-hi); border-left-color: var(--gold); }

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.search-modal.open { display: block; }
.search-modal .sm-backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.7); backdrop-filter: blur(4px); }
.search-modal .sm-panel {
  position: relative; max-width: 620px; margin: 90px auto 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  overflow: hidden;
}
.sm-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sm-input-row .ic { color: var(--gold); font-size: 17px; }
.sm-input-row input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ink); font-size: 16px; font-family: inherit;
}
.sm-input-row input::placeholder { color: var(--ink-4); }
.sm-input-row .esc { font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-4); }
.sm-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.sm-empty { padding: 34px 20px; text-align: center; color: var(--ink-4); font-size: 13.5px; }
.sm-item { display: block; padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.sm-item:hover, .sm-item.sel { background: var(--surface-3); }
.sm-item .t { color: var(--ink); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.sm-item .t .pg { font-size: 11px; font-weight: 600; color: var(--gold); background: var(--gold-glow); padding: 2px 8px; border-radius: 6px; }
.sm-item .s { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-item mark { background: rgba(217,164,65,.3); color: var(--gold-hi); border-radius: 3px; padding: 0 2px; }
.sm-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-4); }
.sm-foot .k { border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; margin-right: 5px; }

/* Overlay mobile nav */
.overlay { display: none; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(4,5,7,.65); z-index: 80; }
.overlay.show { display: block; }

/* ==========================================================================
   HERO DE PERSONAGEM (foto + info)
   ========================================================================== */
.char-hero {
  display: flex; gap: 26px; align-items: flex-start;
  margin: 6px 0 34px;
}
.char-hero .char-photo {
  flex: none; width: 210px; height: 260px;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); position: relative;
}
.char-hero .char-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: inset 0 -40px 60px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(217,164,65,.12);
  pointer-events: none;
}
.char-hero .char-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.char-hero .char-info { flex: 1; min-width: 0; padding-top: 4px; }
.char-hero .char-info .lead { margin-bottom: 0; }
.char-hero .page-tags { margin-top: 4px; }

@media (max-width: 620px) {
  .char-hero { flex-direction: column; gap: 18px; }
  .char-hero .char-photo { width: 100%; max-width: 280px; height: 300px; margin: 0 auto; }
}

/* ==========================================================================
   DROP BOX (Box of Kundun)
   ========================================================================== */
.box-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(217,164,65,.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 0; margin: 26px 0 34px; overflow: hidden; scroll-margin-top: 78px;
}
.box-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(217,164,65,.08), transparent 70%);
}
.box-head .box-ic {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 11px; font-size: 20px;
  background: radial-gradient(circle at 30% 25%, var(--gold-hi), var(--gold-lo));
  color: #17130a; box-shadow: 0 4px 16px rgba(217,164,65,.4);
}
.box-head .box-t { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: .3px; }
.box-head .box-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.box-head .box-tier { margin-left: auto; }
.box-head .box-tier .tag { background: var(--gold-glow); border-color: rgba(217,164,65,.3); }

.box-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.box-col { padding: 20px 22px; border-right: 1px solid var(--line-soft); }
.box-col:last-child { border-right: none; }
.box-col > .col-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.box-col > .col-h .cih { font-size: 15px; }

/* Sets em chips */
.set-list { display: flex; flex-direction: column; gap: 7px; }
.set-list .set {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 9px;
  background: var(--surface-3); border: 1px solid var(--line-soft);
  color: var(--ink); font-size: 13.5px; font-weight: 600; transition: .13s;
}
.set-list .set:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.set-list .set::before { content: "◆"; color: var(--gold); font-size: 9px; }

/* Listas de itens em colunas compactas */
.item-list { columns: 2; column-gap: 20px; }
.item-list.one-col { columns: 1; }
.item-list li {
  list-style: none; break-inside: avoid;
  font-size: 12.8px; color: var(--ink-2); padding: 3px 0 3px 14px; position: relative;
}
.item-list li::before { content: "›"; position: absolute; left: 0; color: var(--gold-lo); font-weight: 700; }
.item-list li:hover { color: var(--ink); }
ul.item-list { margin: 0; padding: 0; }

/* Item especial (Ring Wizard etc.) */
.special-item {
  border: 1px solid rgba(217,164,65,.3); border-radius: var(--r);
  background: rgba(217,164,65,.06); padding: 16px; text-align: center;
}
.special-item .si-name { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--gold-hi); margin-bottom: 4px; }
.special-item .si-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.special-item .si-warn { font-size: 12px; color: var(--no); margin-bottom: 10px; }
.special-item .si-stats { display: flex; flex-direction: column; gap: 5px; }
.special-item .si-stats span { font-size: 12.5px; color: var(--ok); font-weight: 600; }

/* Índice rápido das boxes */
.box-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.box-index a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 10px; font-weight: 600; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); transition: .14s;
}
.box-index a:hover { border-color: var(--gold-lo); color: var(--gold-hi); transform: translateY(-2px); }
.box-index a b { color: var(--gold); }

@media (max-width: 620px) {
  .item-list { columns: 1; }
  .box-col { border-right: none; border-bottom: 1px solid var(--line-soft); }
}

/* i18n helper: elementos escondidos conforme idioma são só data-driven */

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1200px) {
  .layout { grid-template-columns: var(--nav-w) minmax(0,1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  /* No mobile o .layout não deve criar contexto de empilhamento,
     senão o .nav fixo fica preso abaixo do overlay e não recebe toques. */
  .layout { grid-template-columns: 1fr; z-index: auto; }
  .nav {
    position: fixed; top: var(--top-h); left: 0; bottom: 0;
    width: 84%; max-width: 330px; background: var(--surface);
    border-right: 1px solid var(--line);
    transform: translateX(-104%); transition: transform .25s;
    z-index: 95; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: translateX(0); }
  .content { padding: 28px 20px 80px; }
  h1.page-title { font-size: 30px; }
  .searchbox { display: none; }
  .menu-btn { display: grid; }
  .brand .tag { display: none; }
  .search-modal .sm-panel { margin: 60px 14px 0; }
}
