:root {
  --acc: var(--accent);
  --acc-2: var(--accent-2);
  --glow: color-mix(in srgb, var(--accent) 30%, transparent);

  --topbar-h: 64px;
  --sidebar-w: 280px;
  --toc-w: 240px;
}

.lang { display: none; }
html[data-lang="pt"] .lang[data-lang="pt"],
html[data-lang="en"] .lang[data-lang="en"],
html[data-lang="es"] .lang[data-lang="es"] { display: block; }

span.lang[data-lang] { display: none; }
html[data-lang="pt"] span.lang[data-lang="pt"],
html[data-lang="en"] span.lang[data-lang="en"],
html[data-lang="es"] span.lang[data-lang="es"] { display: inline; }

.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s-4);
  padding: 0 var(--s-6);
  background: var(--grad-header);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.topbar .spacer { flex: 1; }

.servers {
  display: flex; align-items: center; gap: 4px; flex: none;
  padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: rgba(125, 125, 125, 0.08);
}
.srv {
  --c: var(--text-3);
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  background: transparent; border: none; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.srv:hover { color: var(--text); background: rgba(125, 125, 125, 0.12); }
.srv.active {
  color: var(--c);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}
.srv .dot {
  width: 6px; height: 6px; border-radius: var(--r-pill); flex: none;
  background: var(--c); opacity: 0.7; transition: opacity var(--dur-fast) var(--ease);
}
.srv.active .dot { opacity: 1; box-shadow: 0 0 6px var(--c); }
.srv .tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--c); }
.srv.blue { --c: #38bdf8; }
.srv.red  { --c: #e11d48; }

.search { position: relative; flex: 1; min-width: 0; max-width: 400px; }
.search input {
  width: 100%; height: 38px; padding: 0 var(--s-16) 0 38px;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  font-family: var(--font-text); font-size: var(--t-sm); outline: none;
  transition: all var(--dur-fast) var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-softer), 0 4px 12px rgba(0, 0, 0, 0.1);
}
.search .ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; display: flex;
}
.search .hint {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 2px 6px; height: 20px; display: inline-flex; align-items: center;
  border-radius: 4px; border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); pointer-events: none;
}

.search-results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: var(--z-overlay); display: none;
  max-height: 60vh; overflow: auto; padding: var(--s-2);
  border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: var(--sh-3);
}
.search-results.open { display: block; }
.search-results a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-radius: var(--r-sm); color: var(--text);
  transition: background var(--dur-fast) var(--ease);
}
.search-results a:hover, .search-results a.sel { background: var(--surface-2); }
.search-results .r-t { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600; }
.search-results .r-s { font-size: var(--t-xs); color: var(--accent); font-weight: 500; }
.search-results .empty { padding: var(--s-4); text-align: center; color: var(--text-3); font-size: var(--t-sm); }

.tb-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.tb-btn.primary {
  position: relative;
  overflow: hidden;
  height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 4px 16px -2px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: all var(--dur) var(--ease);
}
.tb-btn.primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: 0.6s ease;
}
.tb-btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.tb-btn.primary:hover::before {
  left: 200%;
}

.langs {
  display: flex; align-items: center; flex: none; height: 32px;
  border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden;
  background: var(--surface-2);
}
.lang-btn {
  height: 100%; min-width: 34px; padding: 0 var(--s-2);
  border: none; border-right: 1px solid var(--border);
  background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  color: var(--text-3); transition: all var(--dur-fast) var(--ease);
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover { color: var(--text); background: rgba(125, 125, 125, 0.1); }
.lang-btn.active {
  color: var(--accent); background: var(--surface);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--border-accent);
}

.menu-btn {
  display: none; width: 36px; height: 36px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  align-items: center; justify-content: center; cursor: pointer;
}

.layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  max-width: var(--shell-max); margin: 0 auto;
}

.sidebar {
  position: sticky; top: var(--topbar-h); align-self: start;
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-6) var(--s-3) var(--s-12);
  border-right: 1px solid var(--border);
  background: var(--grad-sidebar);
}
.side-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  padding: 0 var(--s-3) var(--s-3);
}

.side-group { margin-bottom: 4px; }
.side-group > .g-head {
  width: 100%; display: flex; align-items: center; gap: var(--s-3);
  height: 38px; padding: 0 var(--s-3); border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600;
  color: var(--text-2); text-align: left; background: none; border: none; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.side-group > .g-head:hover { background: var(--surface-2); color: var(--text); }
.side-group > .g-head .g-ico { display: flex; color: var(--text-3); flex: none; transition: color var(--dur-fast) var(--ease); }
.side-group > .g-head .g-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group > .g-head .chev { flex: none; color: var(--text-3); transition: transform var(--dur) var(--ease); }
.side-group.open > .g-head { color: var(--text); }
.side-group.open > .g-head .chev { transform: rotate(180deg); }
.side-group.has-active > .g-head .g-ico { color: var(--accent); }

.side-group .g-items {
  display: none; padding: 2px 0 var(--s-2) var(--s-3);
  margin-left: 14px; border-left: 1px solid var(--border);
}
.side-group.open .g-items { display: block; }

.side-link {
  display: block; padding: 7px var(--s-3); border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-2); line-height: var(--lh-snug);
  text-decoration: none; transition: all var(--dur-fast) var(--ease);
}
.side-link:hover { background: var(--surface-2); color: var(--text); padding-left: calc(var(--s-3) + 3px); }

.side-link.active {
  background: var(--menu-active-bg);
  color: var(--menu-active-text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--menu-active-border);
}

.side-sub__head { display: flex; align-items: center; gap: 2px; }
.side-sub__head .side-link { flex: 1; min-width: 0; }
.side-sub__toggle {
  width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-3); background: none; border: none; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.side-sub__toggle:hover { color: var(--text); background: var(--surface-2); }
.side-sub.open .side-sub__toggle { transform: rotate(180deg); color: var(--text); }
.side-sub__items { display: none; padding: 2px 0 4px var(--s-3); margin-left: var(--s-2); border-left: 1px solid var(--border); }
.side-sub.open .side-sub__items { display: block; }
.side-link--child { font-size: 12.5px; }

.content { min-width: 0; padding: var(--s-8) var(--s-12) var(--s-24); }

.breadcrumb {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  font-size: var(--t-xs); color: var(--text-3); margin-bottom: var(--s-5);
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb .cur { color: var(--text-2); font-weight: 600; }

.doc { max-width: var(--content-max); }
.doc h1, .doc h2, .doc h3, .doc h4 {
  font-family: var(--font-display); color: var(--text);
  line-height: var(--lh-tight); letter-spacing: -.015em; text-wrap: balance;
}
.doc h1 { font-size: 32px; font-weight: 700; margin: 0 0 var(--s-4); }
.doc h2 {
  font-size: 21px; font-weight: 700; margin: var(--s-12) 0 var(--s-4);
  border-bottom: 2px solid var(--border); padding-bottom: var(--s-2);
  scroll-margin-top: calc(var(--topbar-h) + var(--s-6));
}
.doc h3 {
  font-size: 17.5px; font-weight: 700; margin: var(--s-8) 0 var(--s-3);
  scroll-margin-top: calc(var(--topbar-h) + var(--s-6));
}
.doc h4 { font-size: var(--t-md); font-weight: 700; margin: var(--s-8) 0 var(--s-2); }

.doc .lead {
  font-size: 16px; color: var(--text-2); line-height: 1.75;
  margin: 0 0 var(--s-8); font-weight: 400;
}
.doc p { margin: var(--s-4) 0; color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 700; }
.doc em { color: var(--text-2); }

.doc ul, .doc ol { margin: var(--s-4) 0; padding-left: var(--s-5); color: var(--text-2); }
.doc li { margin: var(--s-2) 0; padding-left: var(--s-1); }
.doc li::marker { color: var(--accent); }
.doc ul ul, .doc ol ol { margin: var(--s-2) 0; }

.doc hr { border: none; height: 1px; background: var(--border); margin: var(--s-16) 0; }

.doc blockquote {
  margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface); color: var(--text-2);
  box-shadow: var(--sh-1);
}
.doc blockquote p { margin: 0; color: inherit; }

.doc code {
  font-family: var(--font-mono); font-size: .875em; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent); white-space: nowrap; font-weight: 600;
}
.doc pre {
  margin: var(--s-6) 0; padding: var(--s-4); overflow-x: auto;
  border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--code-bg);
}
.doc pre code {
  background: none; border: none; padding: 0; white-space: pre;
  font-size: var(--t-sm); line-height: 1.7; color: var(--code-fg);
}

.doc h2 .anchor, .doc h3 .anchor {
  opacity: 0; margin-left: var(--s-2); color: var(--accent); font-weight: 400; font-size: .8em;
  text-decoration: none; transition: opacity var(--dur-fast) var(--ease);
}
.doc h2:hover .anchor, .doc h3:hover .anchor { opacity: .85; }

.doc .table-wrap {
  overflow-x: auto; margin: var(--s-6) 0;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
}
.doc table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 520px; }
.doc thead th {
  text-align: left; padding: var(--s-3) var(--s-4); background: var(--bg-2); color: var(--text-3);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.doc tbody td {
  padding: 12px var(--s-4); border-bottom: 1px solid var(--border);
  color: var(--text-2); vertical-align: top;
}
.doc tbody tr:last-child td { border-bottom: none; }
.doc tbody tr:hover { background: var(--surface-2); }
.doc td code { white-space: nowrap; }
.doc table.nums td, .doc table.nums th { font-variant-numeric: tabular-nums; }

.doc tbody td.resp-sim { color: var(--success); font-weight: 700; }
.doc tbody td.resp-nao { color: var(--danger); font-weight: 700; }

.callout {
  --c: var(--accent);
  display: block; margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md); border: 1px solid var(--border);
  border-left: 4px solid var(--c);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.callout .c-head {
  display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--c);
}
.callout .c-head svg { flex: none; }
.callout p { margin: var(--s-2) 0 0; color: var(--text-2); font-size: var(--t-sm); line-height: var(--lh-snug); }
.callout p:first-of-type { margin-top: 0; }
.callout ul, .callout ol { margin: var(--s-2) 0 0; font-size: var(--t-sm); }
.callout li { margin: var(--s-1) 0; }

.callout.note    { --c: var(--text-3); }
.callout.info    { --c: var(--info); }
.callout.tip     { --c: var(--success); }
.callout.caution { --c: var(--warning); }
.callout.danger  { --c: var(--danger); }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4); margin: var(--s-6) 0;
}
.card {
  display: block; padding: var(--s-5);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); background-image: var(--grad-surface);
  box-shadow: var(--sh-1); color: var(--text); text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.card:hover .c-t {
  color: var(--accent);
}
.card .c-ico {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  margin-bottom: var(--s-3);
  background: var(--accent-soft); border: 1px solid var(--border-accent); color: var(--accent);
}
.card .c-t {
  font-family: var(--font-display); font-size: var(--t-md); font-weight: 700;
  color: var(--text); margin-bottom: var(--s-1); letter-spacing: -.01em;
  transition: color var(--dur-fast) var(--ease);
}
.card .c-d { font-size: var(--t-sm); color: var(--text-2); line-height: 1.5; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s-6) 0; }
.steps > li {
  counter-increment: step; position: relative; margin: 0;
  padding: 0 0 var(--s-6) var(--s-10);
  border-left: 2px solid var(--border);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: -15px; top: -2px;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700; color: var(--accent);
  background: var(--surface); border: 2px solid var(--accent);
}
.steps > li > strong:first-child {
  display: block; font-family: var(--font-display); font-size: var(--t-base); font-weight: 700;
  color: var(--text); margin-bottom: var(--s-1); letter-spacing: -.01em;
}

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 24px; padding: 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  color: var(--text-2); white-space: nowrap; text-transform: none; letter-spacing: 0;
  box-shadow: var(--sh-1);
}
.badge.acc  { background: var(--accent-soft); border-color: var(--border-accent); color: var(--accent); }
.badge.gm   { background: var(--warning-soft); border-color: rgba(217, 119, 6, .3);  color: var(--warning); }
.badge.vip  { background: var(--success-soft); border-color: rgba(5, 150, 105, .3); color: var(--success); }
.badge.free { background: var(--info-soft);    border-color: rgba(2, 132, 199, .3);  color: var(--info); }
.badge.hard { background: var(--danger-soft);  border-color: rgba(220, 38, 38, .3);  color: var(--danger); }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--text-3);
  box-shadow: none; letter-spacing: 0;
}

.class-hero {
  display: grid; grid-template-columns: 210px minmax(0,1fr);
  gap: var(--s-6); align-items: start; margin: 0 0 var(--s-8);
}
.class-hero__art {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
}
.class-hero__info > .row { margin-bottom: var(--s-3); }
.class-hero__info p:first-of-type { margin-top: 0; }

@media (max-width:700px) {
  .class-hero { grid-template-columns: minmax(0,1fr); gap: var(--s-4); }
  .class-hero__art { max-width: 230px; }
}

.timeline {
  margin: var(--s-6) 0; padding: var(--s-5);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); background-image: var(--grad-surface); box-shadow: var(--sh-1);
}
.tl-row {
  display: grid; grid-template-columns: 130px minmax(0,1fr);
  align-items: center; gap: var(--s-4); margin-bottom: var(--s-3);
}
.tl-name {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700; color: var(--text);
}
.tl-dot {
  width: 8px; height: 8px; border-radius: var(--r-pill); flex: none;
  background: var(--c);
}
.tl-track {
  position: relative; height: 30px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.tl-mark {
  position: absolute; top: 5px; bottom: 5px; width: 3px; border-radius: 2px;
  background: var(--c);
  transform: translateX(-1.5px);
}
.tl-scale {
  display: grid; grid-template-columns: 130px minmax(0,1fr); gap: var(--s-4);
  margin-top: calc(var(--s-2) * -1);
}
.tl-hours {
  position: relative; height: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
}
.tl-hour { position: absolute; transform: translateX(-50%); }

.inv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-4); margin: var(--s-6) 0;
}
.inv-card {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
  text-decoration: none; color: inherit;
  transition: all var(--dur) var(--ease);
}
.inv-card:hover {
  border-color: var(--c);
  transform: translateY(-3px); box-shadow: var(--sh-2);
}
.inv-card:hover .inv-title {
  color: var(--c);
}

.inv-head {
  position: relative; display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.inv-boss {
  height: 104px; width: auto; max-width: 92px; object-fit: contain; flex: none;
}
.inv-head__txt { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.inv-title {
  font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700;
  color: var(--text); letter-spacing: -.015em;
  transition: color var(--dur-fast) var(--ease);
}
.inv-freq { font-size: var(--t-sm); color: var(--text-2); }

.inv-cols {
  position: relative; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  padding: 0 var(--s-5) var(--s-4);
}
.inv-block { display: flex; flex-direction: column; gap: var(--s-2); flex: 1 1 auto; min-width: 0; }
.inv-cols > .inv-block--horas { flex: 2 1 200px; }
.inv-card > .inv-block { padding: 0 var(--s-5) var(--s-4); }
.inv-lbl {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3);
}

.inv-times { display: flex; flex-wrap: wrap; gap: var(--s-1); padding: var(--s-4) var(--s-5) 0; }
.inv-block .inv-times { padding: 0; }
.inv-time {
  display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text);
  font-variant-numeric: tabular-nums; font-weight: 600;
}

.inv-prizes { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.inv-prize__item {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 3px var(--s-3) 3px 6px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  font-size: var(--t-xs); font-weight: 600; color: var(--c); white-space: nowrap;
}
.inv-prize__item .item-ico { height: 24px; }
.inv-prize__item--texto { padding-left: var(--s-3); }

.inv-go {
  position: relative; margin-top: auto; display: flex; align-items: center; gap: 6px;
  padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  color: var(--c);
}
.inv-go__seta { transition: transform var(--dur) var(--ease); }
.inv-card:hover .inv-go__seta { transform: translateX(4px); }

.inv-body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.inv-map { display: flex; flex-direction: column; gap: var(--s-1); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.inv-map:last-child { border-bottom: none; padding-bottom: 0; }
.inv-map__name {
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700; color: var(--text);
}
.inv-mobs { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.inv-mob {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--s-2);
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2);
  font-size: var(--t-xs); color: var(--text-2);
}
.inv-mob b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.mob-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--s-3);
}
.mob-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-1);
  padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
  transition: all var(--dur) var(--ease);
}
.mob-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mob-art {
  height: 150px; width: auto; max-width: 100%; object-fit: contain; display: block;
}
.mob-name { font-size: var(--t-xs); font-weight: 600; color: var(--text); line-height: 1.35; }
.mob-drop { margin-top: auto; width: 100%; }
.mob-qtd {
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--accent);
  font-variant-numeric: tabular-nums; font-weight: 700;
}
.mob-card--sem-arte { justify-content: center; min-height: 150px; }

.mob-grid--destaque { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); max-width: 700px; }
.mob-grid--destaque .mob-card { padding: var(--s-4); }
.mob-grid--destaque .mob-art { height: 200px; width: auto; max-width: 100%; object-fit: contain; }
.mob-grid--destaque .mob-name { font-size: var(--t-sm); color: var(--text); }

.mob-drop {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px var(--s-2); border-radius: var(--r-sm);
  border: 1px solid var(--border-accent); background: var(--accent-soft);
  line-height: 1.3;
}
.mob-drop__lbl {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3);
}
.mob-drop__item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent); }

.item-ico { height: 22px; width: auto; flex: none; display: block; }
.mob-drop .item-ico { height: 26px; }
.drop-row .item-ico { height: 30px; }

.box-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--s-4); margin: var(--s-5) 0;
}
.box-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2);
  padding: var(--s-4) var(--s-3); border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
}
.box-art { height: 96px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-bottom: var(--s-1); }
.box-name { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.box-who { font-size: var(--t-xs); color: var(--text-2); line-height: 1.5; }

.receita { display: flex; gap: var(--s-5); align-items: stretch; flex-wrap: wrap; margin: var(--s-5) 0; }
.receita__lado {
  flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
}
.mat-grid { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); }
.mat-item { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) 0; font-size: var(--t-sm); color: var(--text); }
.mat-art { height: 34px; width: 34px; object-fit: contain; flex: none; }
.mat-qtd { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-3); font-weight: 600; }
.mat-item--zen { padding-left: calc(34px + var(--s-2)); }
.mat-obs { color: var(--text-3); font-size: var(--t-xs); }
.receita__saida {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md); border: 1px solid var(--border-accent); background: var(--accent-soft);
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
}
.receita__art { height: 56px; width: auto; flex: none; }
.receita__npc {
  flex: 0 1 300px; min-width: 0; height: auto; object-fit: cover; align-self: flex-start;
  border-radius: var(--r-lg); border: 1px solid var(--border);
}

.drop-list { display: flex; flex-direction: column; gap: var(--s-2); margin: var(--s-4) 0; }
.drop-row {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--sh-1);
}
.drop-row__mob { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.drop-row__lbl { margin-left: auto; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.drop-row__item {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--s-3); border-radius: var(--r-sm);
  border: 1px solid var(--border-accent); background: var(--accent-soft);
  font-size: var(--t-xs); font-weight: 600; color: var(--accent); white-space: nowrap;
}

@media (max-width:700px) {
  .tl-row, .tl-scale { grid-template-columns: minmax(0,1fr); gap: var(--s-2); }
  .tl-name { margin-bottom: 2px; }
  .inv-grid { grid-template-columns: minmax(0,1fr); }
  .mob-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

.drop-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4); margin: var(--s-6) 0;
}
.drop-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2);
  padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
  transition: all var(--dur) var(--ease);
}
.drop-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh-2); }
.drop-label {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.drop-art { width: 100%; max-width: 180px; height: auto; display: block; border-radius: var(--r-md); background: var(--surface-2); }
.drop-name { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700; color: var(--text); }
.drop-arrow { display: flex; color: var(--accent); margin: var(--s-1) 0; }

.drop-item {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: var(--s-3);
  margin-top: auto; border-radius: var(--r-md); border: 1px solid var(--border-accent);
  background: var(--accent-soft); text-align: left;
}
.drop-item img { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--surface); }
.drop-item .drop-name { font-size: var(--t-sm); color: var(--accent); }

.card .q-art { width: 100%; height: auto; display: block; margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); }
.q-icon { width: 34px; height: 34px; flex: none; vertical-align: middle; border-radius: var(--r-sm); background: var(--surface-2); }
.card .c-t { display: flex; align-items: center; gap: var(--s-2); }

.npc-art {
  display: block; margin: var(--s-6) auto var(--s-2); max-width: 230px; width: 100%; height: auto;
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-2);
}
.npc-art + .npc-caption { display: block; text-align: center; margin-bottom: var(--s-6); font-size: var(--t-xs); color: var(--text-3); }

.video-wrap {
  position: relative; aspect-ratio: 16/9; margin: var(--s-6) 0;
  border-radius: var(--r-lg); border: 1px solid var(--border); background: #000; overflow: hidden;
}
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-wrap.empty {
  display: grid; place-items: center;
  background: var(--surface-2);
}
.video-wrap.empty span { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-size: var(--t-sm); color: var(--text-3); }

.release { position: relative; margin: 0 0 var(--s-10); padding: 0; }
.release + .release { border-top: 1px solid var(--border); padding-top: var(--s-6); }
.release h2 { margin-top: 0; }
.release:first-of-type h2 { margin-top: var(--s-6); }

.release .r-meta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: calc(var(--s-2) * -1) 0 var(--s-5); }
.release .r-date { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-3); letter-spacing: 0; text-transform: none; }

.r-sec {
  --c: var(--accent);
  display: flex; align-items: center; gap: var(--s-2); margin: var(--s-6) 0 var(--s-2);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--c);
}
.r-sec::before {
  content: ''; width: 6px; height: 6px; flex: none; border-radius: var(--r-pill);
  background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 50%, transparent);
}
.r-sec::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 25%, transparent), transparent);
}
.r-sec.add { --c: var(--success); }
.r-sec.imp { --c: var(--info); }
.r-sec.fix { --c: var(--warning); }
.r-sec.bal { --c: var(--accent-2); }
.r-sec.rem { --c: var(--danger); }
.r-sec + ul { margin-top: var(--s-2); }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); margin-top: var(--s-16); }
.pager a {
  display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4);
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; box-shadow: var(--sh-1);
  transition: all var(--dur) var(--ease);
}
.pager a:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.pager a:hover .p-t { color: var(--accent); }
.pager .p-k { font-size: var(--t-xs); color: var(--text-3); font-family: var(--font-text); letter-spacing: 0; text-transform: uppercase; font-weight: 700; }
.pager .p-t { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700; color: var(--text); transition: color var(--dur-fast) var(--ease); }
.pager a.next { text-align: right; }
.pager a.only-next { grid-column: 2; }

.toc {
  position: sticky; top: var(--topbar-h); align-self: start;
  height: calc(100vh - var(--topbar-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-8) var(--s-4) var(--s-12);
}

.toc .t-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: var(--s-4);
}

.toc-list {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid var(--border);
  position: relative;
}

.toc-list a {
  padding: 6px var(--s-3);
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--text-3);
  line-height: var(--lh-snug);
  text-decoration: none;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: all var(--dur-fast) var(--ease);
}

.toc-list a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.toc-list a.sub {
  padding-left: var(--s-6);
  font-size: 12px;
}

.toc-list a.active {
  color: var(--accent) !important;
  font-weight: 700;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}

.scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1);
  background: var(--overlay-bg); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1200px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
  .content { padding: var(--s-6) var(--s-6) var(--s-16); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; top: var(--topbar-h); left: 0; z-index: var(--z-drawer);
    width: min(300px, 86vw); background: var(--bg-2);
    border-right: 1px solid var(--border-strong); box-shadow: var(--sh-3);
    transform: translateX(-101%); transition: transform var(--dur) var(--ease);
  }
  .sidebar.open { transform: none; }
  .content { padding: var(--s-6) var(--s-4) var(--s-16); }
}

@media (max-width: 600px) {
  .topbar { padding: 0 var(--s-3); gap: var(--s-2); }
  .search .hint { display: none; }
  .search input { padding-right: var(--s-3); }
  .tb-btn .label { display: none; }
  .tb-btn { padding: 0 var(--s-3); }
  .srv { padding: 0 var(--s-2); }
  .lang-btn { min-width: 30px; padding: 0 var(--s-2); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .topbar { padding: 0 var(--s-2); gap: var(--s-1); }
  .srv { display: none; }
  .tb-actions { gap: var(--s-1); }
  .tb-btn { padding: 0 var(--s-2); }
  .tb-btn.icon { width: 32px; }
  .brand span { font-size: var(--t-xs); }
}

@media (max-width: 700px) {
  .doc .table-wrap { border: none; background: none; border-radius: 0; overflow: visible; }
  .doc table { min-width: 0; width: 100%; display: block; font-size: var(--t-sm); }
  .doc table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .doc table tbody { display: block; }
  .doc table tbody tr {
    display: block; margin-bottom: var(--s-3);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--surface); overflow: hidden;
  }
  .doc table tbody tr:last-child { margin-bottom: 0; }
  .doc table tbody td {
    display: flex; gap: var(--s-3); align-items: baseline;
    padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--border);
  }
  .doc table tbody tr td:last-child { border-bottom: none; }
  .doc table tbody td[data-rotulo]:before {
    content: attr(data-rotulo);
    flex: 0 0 92px; min-width: 0;
    color: var(--text-3); font-family: var(--font-display);
    font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; line-height: 1.35;
    text-transform: uppercase; overflow-wrap: anywhere;
  }
  .doc table tbody td:not([data-rotulo]):before { content: none; }
  .doc table tbody td > * { min-width: 0; }
  .doc table tbody td:first-child { background: var(--surface-2); color: var(--text); font-weight: 700; }
  .doc td code { white-space: normal; overflow-wrap: anywhere; }
}

@media print {
  .topbar, .sidebar, .toc, .pager, .scrim { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}

/* Proteção contra seleção de texto e cópia rápida */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Permite seleção apenas dentro de inputs de busca */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ==========================================================================
   POPUP DE PROTEÇÃO (ANTI-RIGHT CLICK)
   ========================================================================== */
.protect-popup {
  display: none;
  position: fixed;
  z-index: 999999;
  background: linear-gradient(165deg, rgba(28, 11, 14, 0.95), rgba(12, 5, 7, 0.98));
  border: 1px solid var(--primary-bright, #e63946);
  border-radius: 12px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(168, 32, 32, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  text-align: center;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.protect-popup.show {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.protect-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px var(--primary-bright, #e63946));
}

.protect-title {
  font-family: var(--font-epic, 'Sora', sans-serif);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.protect-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}

.protect-brand {
  font-family: var(--font-epic, 'Sora', sans-serif);
  font-size: 0.75rem;
  color: var(--gold-light, #d4af37);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px dashed rgba(200, 165, 96, 0.3);
  padding-top: 14px;
}

/* ==========================================================================
   AJUSTES MOBILE E iPHONE (BARRA LIMPA E SEM DROPDOWN)
   ========================================================================== */
@media (max-width: 900px) {
  
  /* 1. Removemos a Pesquisa e o Botão "Jogar Agora" no mobile para liberar espaço */
  .search, 
  .tb-actions .tb-btn.primary { 
    display: none !important; 
  }

  /* 2. Servidores: Apenas as bolinhas coloridas (maiores para facilitar o toque) */
  .servers .srv .tag { 
    display: none !important; 
  }
  .servers .srv {
    padding: 0 10px !important;
    min-width: auto !important;
    height: 32px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  .servers .srv.active {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
  }
  .servers .srv .dot { 
    transform: scale(1.4); /* Aumenta a bolinha para os dedos */
  }

  /* 3. Idiomas: Lado a lado (estilo pílula nativa de app, zero dropdown) */
  .langs {
    display: flex !important;
    flex-direction: row !important; /* Força ficar lado a lado */
    position: static !important;    /* Tira qualquer flutuação */
    height: 32px !important;
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    gap: 2px !important;
    padding: 2px !important;
    width: auto !important;
  }
  
  .langs .lang-btn {
    min-width: 34px !important;
    padding: 0 !important;
    height: 100% !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Destaca o idioma que está ativo */
  .langs .lang-btn.active {
    background: var(--surface) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text) !important;
  }

  /* 4. Ajuste de espaçamento geral da Topbar */
  .tb-actions {
    gap: 6px !important;
  }
  .topbar {
    padding: 0 12px !important;
    gap: 8px !important;
  }
}