/* NeoGuide - Modern theme (navbar like "Database" layout) */
:root{
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  /* aproximar visual do menu "Database" (GNB) */
  --topbar: #1f2327;
  --topbarText: #d5dbe1;
  --topbarMuted: rgba(213,219,225,.72);
  --linkHover: rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 10px;
  --max: 1200px;
  /* usa a mesma fonte do menu "Database" (GNB) quando disponível */
  --font: "Noto Sans KR", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

/* ===== Weapon Upgrade (guide/upgrade/weapon/weapon_*.php) ===== */
table.weapon-index{
  width: min(1000px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
table.weapon-index thead th{
  padding: 16px;
  background: #111111;
  color: #ffffff;
  border-right: 1px solid rgba(255,255,255,.18);
  font-weight: 700;
  text-align: center;
}
table.weapon-index td,
table.weapon-index th{
  border: 1px solid rgba(255,255,255,.12);
}

/* Turn the 3 legacy columns into one organized list (no empty gaps) */
table.weapon-index tbody{
  display:block;
  padding: 18px 16px;
  text-align: left;
  column-count: 3;
  column-gap: 48px;
  column-fill: balance;
}
table.weapon-index tbody tr{ display: contents; }
table.weapon-index tbody td.weapon-links,
table.weapon-index tbody td.list{
  display:block;
  border: 0;
  padding: 0;
}

/* New markup (weapon_sword.php) wraps ULs in .weapon-columns */
table.weapon-index .weapon-columns{
  display: contents;
}

table.weapon-index tbody td.list ul,
table.weapon-index tbody td.weapon-links ul{
  margin: 0 0 10px 0;
  padding: 0;
  list-style: none;
  break-inside: avoid;
  white-space: nowrap;
}
table.weapon-index tbody td.list a,
table.weapon-index tbody td.list font,
table.weapon-index tbody td.weapon-links a,
table.weapon-index tbody td.weapon-links font{
  white-space: nowrap;
}

/* Conversion page text centering */
.conversion-page{
  text-align: center;
}
.conversion-page table{
  margin: 0 auto;
}
.conversion-page table th,
.conversion-page table td{
  text-align: center;
  vertical-align: middle;
}
/* Não esconder layout legado: o comportamento original depende dele (sem iframe/JS) */
body > header{ display:block; }
.nav-container{ display:block; }

/* ===== Legacy menu -> Modern topbar styling (CSS-only, keeps original behavior) ===== */
.nav-container{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)), var(--topbar);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

nav.modern-menu{
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 12px;
  display:flex;
  flex-wrap: nowrap;
  align-items:center;
  gap: 4px;
  background: transparent;
}

/* Buttons and links in the legacy menu */
.modern-menu .dropbtn,
.modern-menu .dropbtn2,
.modern-menu a.dropbtn2{
  appearance:none;
  background: transparent;
  border: 0;
  color: var(--topbarText);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  opacity: .92;
  text-shadow: none;
}
.modern-menu .dropbtn:hover,
.modern-menu .dropbtn2:hover,
.modern-menu a.dropbtn2:hover{
  background: var(--linkHover);
  opacity: 1;
}

.modern-menu .dropdown{ position: relative; }

.modern-menu .dropdown-content,
.modern-menu .nested-content{
  display:none;
  position:absolute;
  top: 100%;
  left: 0;
  /* sem gap: evita o dropdown "desgrudar" ao mover o mouse */
  margin-top: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 12px;
  background: #1f2327;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  z-index: 1000;
}

/* Hover bridge: mantém o menu aberto ao mover o mouse do botão para o dropdown */
.modern-menu .dropdown-content::before{
  content:"";
  position:absolute;
  left: 0;
  top: -12px;
  width: 100%;
  height: 12px;
}

.modern-menu .dropdown-content a,
.modern-menu .nested-content a{
  display:block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--topbarText);
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
  opacity: .95;
}
.modern-menu .dropdown-content a:hover,
.modern-menu .nested-content a:hover{
  background: var(--linkHover);
  opacity: 1;
}

.modern-menu .dropdown:hover > .dropdown-content{ display:block; }

.modern-menu .nested-dropdown{ position: relative; }
.modern-menu .nested-content{
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 8px;
}
.modern-menu .nested-dropdown:hover > .nested-content{ display:block; }

/* Hover bridge entre dropdown e nested submenu (para não "sumir" ao atravessar o gap lateral) */
.modern-menu .nested-dropdown::after{
  content:"";
  position:absolute;
  top: 0;
  left: 100%;
  width: 10px;
  height: 100%;
}

/* Hover bridge extra (pequena) logo abaixo do item */
.modern-menu .dropdown::after{
  content:"";
  position:absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

/* Top bar */
.topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)) , var(--topbar);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  gap: 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.brand a{
  color: var(--topbarText);
  text-decoration:none;
  font-weight: 700;
  letter-spacing:.2px;
  font-size: 18px;
}
.brand small{
  color: var(--topbarMuted);
  font-weight: 600;
}

.topnav{
  display:flex;
  align-items:center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  /* importante: permite dropdown aparecer (não "corta" o menu) */
  overflow: visible;
}
.topnav a{
  color: var(--topbarText);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  opacity: .92;
  white-space:nowrap;
}
.topnav a:hover{ background: var(--linkHover); opacity: 1; }

.topnav-dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.topnav-dropdown .topnav-link{
  color: var(--topbarText);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  opacity: .92;
  white-space:nowrap;
}
.topnav-dropdown .topnav-link:hover{ background: var(--linkHover); opacity: 1; }

.topnav-menu{
  display:none;
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #1f2327;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  z-index: 50;
}
.topnav-menu a{
  display:block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--topbarText);
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
  opacity: .95;
}
.topnav-menu a:hover{ background: var(--linkHover); opacity: 1; }
.topnav-divider{
  height: 1px;
  margin: 6px 4px;
  background: rgba(255,255,255,.10);
}
.topnav-dropdown:hover .topnav-menu{ display:block; }

/* "ponte" de hover para não sumir ao mover o mouse do link até o menu */
.topnav-dropdown::after{
  content:"";
  position:absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.search{
  position: relative;
}
.search input{
  width: 260px;
  max-width: 38vw;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: var(--topbarText);
  outline: none;
}
.search input::placeholder{ color: rgba(243,244,246,.68); }
.search input:focus{
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
}

/* Page container */
.page{
  max-width: var(--max);
  margin: 26px auto;
  padding: 0 18px 48px;
}
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.intro-text{
  text-align: center;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.intro-text h2{
  margin: 0 0 8px;
  font-size: 18px;
}

/* Tables */
table{
  width:100%;
  border-collapse: collapse;
  background: var(--surface);
}
th,td{
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align:left;
  font-size: 13px;
}
th{
  background: #f3f4f6;
  color: #111827;
}

/* ===== Content tables (Quest pages etc.) ===== */
#main_content{
  font-size: 14px;
  line-height: 1.55;
  color: #000;
}

/* Forçar textos do conteúdo (quests) para preto, ignorando cores inline antigas */
#main_content :where(p, div, span, font, b, strong, em, i, u, li, td){
  color: #000 !important;
}
#main_content a:where(:link, :visited){
  color: #000 !important;
  text-decoration: underline;
}

/* Exceção: cards de equipamentos/armas precisam manter título branco */
#main_content .weapon-card .weapon-name,
#main_content .weapon-card .weapon-name *{
  color: #fff !important;
}

/* =========================
   Skill pages (Character)
   ========================= */

#main_content.skill-page{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

#main_content.skill-page h2,
#main_content.skill-page .skill-title{
  margin: 12px 0 10px;
}

#main_content.skill-page .skill-note{
  margin: 10px auto 14px;
  max-width: 720px;
  color: #374151;
}

#main_content.skill-page .skill-frame{
  display: block;
  margin: 0 auto 10px;
  width: 600px;
  max-width: 100%;
  border: 0;
}

#main_content.skill-page .skill-intro,
#main_content.skill-page .skill-help{
  width: 600px;
  max-width: 100%;
  margin: 10px auto;
  padding: 10px 12px;
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
}

#main_content.skill-page .skill-grid{
  width: 600px;
  max-width: 100%;
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Tabela (grid) de skills - visual mais "tabelado" */
#main_content.skill-page table.skill-table{
  width: 600px;
  max-width: 100%;
  margin: 10px auto;
  border-collapse: separate;
  border-spacing: 10px 10px;
}

#main_content.skill-page table.skill-table td{
  padding: 0;
  vertical-align: top;
}

#main_content.skill-page .skill-cell{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
}

#main_content.skill-page .skill-cell img{
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

#main_content.skill-page .skill-cell a{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: inherit !important;
  text-decoration: none;
  justify-content: flex-start;
}

#main_content.skill-page .skill-cell span{
  flex: 1 1 auto;
  text-align: left;
}

#main_content.skill-page .skill-cell a:hover{
  text-decoration: underline;
}

/* Viewer (substitui o iframe: troca o conteúdo no topo sem rolar) */
#main_content.skill-page .skill-viewer{
  width: 600px;
  max-width: 100%;
  margin: 12px auto;
}

#main_content.skill-page .skill-viewer .skill-detail{
  margin: 0;
}

/* No viewer, esconder o cabeçalho (ícone + título) por padrão.
   Ele aparece quando o usuário clicar em alguma skill (JS adiciona .show-header) */
#main_content.skill-page .skill-viewer:not(.show-header) .skill-detail-header{
  display: none !important;
}

/* Detalhe de skill (seção sem iframe) */
#main_content.skill-page .skill-detail{
  width: 600px;
  max-width: 100%;
  margin: 14px auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

#main_content.skill-page .skill-detail-header{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

#main_content.skill-page .skill-detail-header img{
  width: 34px;
  height: 34px;
}

#main_content.skill-page .skill-detail-body{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  padding: 12px 14px 14px;
}

#main_content.skill-page .skill-detail-media{
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

#main_content.skill-page .skill-detail-media img{
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#main_content.skill-page .skill-detail-meta p{
  margin: 0 0 8px;
  color: #111827;
}

#main_content.skill-page .skill-req{
  margin: 8px 0 10px;
  font-weight: 700;
  color: #b91c1c;
}

#main_content.skill-page .skill-stats{
  margin: 0;
  padding-left: 16px;
  color: #374151;
}

/* Stats no overview: sem bullets, bem alinhado */
#main_content.skill-page .skill-stat-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 6px 0 10px;
  padding: 0;
}

#main_content.skill-page .skill-stat{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #111827;
  font-size: 12px;
}

#main_content.skill-page .skill-stat strong{
  color: #374151;
  font-weight: 700;
}

@media (max-width: 720px){
  #main_content.skill-page .skill-detail-body{
    grid-template-columns: 1fr;
  }
}

#main_content.skill-page .skill-tile{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: left;
  color: #111827;
}

/* Em alguns templates antigos existem regras que escurecem DIVs; força o skill grid a ficar claro */
#main_content.skill-page .skill-grid,
#main_content.skill-page .skill-tile{
  background-color: transparent !important;
}

/* E garante o card branco mesmo com overrides de background-color */
#main_content.skill-page .skill-tile{
  background-color: #ffffff !important;
}

#main_content.skill-page .skill-tile img{
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

#main_content.skill-page .skill-tile a{
  color: inherit !important;
  text-decoration: none;
}

#main_content.skill-page .skill-tile a:hover{
  text-decoration: underline;
}

@media (max-width: 720px){
  #main_content.skill-page .skill-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* manter header do table no tema */
#main_content th{
  color: #fff !important;
}

#main_content table{
  width: min(980px, 100%) !important;
  margin: 14px auto !important;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

#main_content th, 
#main_content td{
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}

/* Header preto como o modelo */
#main_content th{
  background: #111827;
  color: #ffffff;
  font-weight: 700;
}

/* Alinhamento/legibilidade */
#main_content td{
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Optional: center all content text when the page wants it (no inline CSS) */
#main_content.center-text{
  text-align: center;
}
#main_content.center-text :where(p, div, span, font, b, strong, em, i, u, li){
  text-align: center;
}
#main_content.center-text th,
#main_content.center-text td{
  text-align: center;
}

/* ===== Gem & Enhancement (pages in guide/upgrade/) ===== */
#main_content.gem-page{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 18px 48px;
}

/* Keep sections centered and nicely spaced */
#main_content.gem-page > div:not(.intro-text){
  width: min(980px, 100%);
  margin: 18px auto;
}

/* Don't force the "first column = 210px" rule on Gem pages (it breaks multi-column tables) */
#main_content.gem-page th:first-child,
#main_content.gem-page td:first-child{
  width: auto;
}
#main_content.gem-page table{
  width: min(980px, 100%) !important;
}

/* Chip flow mini-table */
#main_content.gem-page table.ge-chipflow{
  width: min(860px, 100%) !important;
  margin: 14px auto !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
#main_content.gem-page table.ge-chipflow td{
  font-size: 12px;
  padding: 8px;
}
#main_content.gem-page table.ge-chipflow td.ge-chip-dark{
  background: #0b1220;
  color: #fff !important;
}
#main_content.gem-page table.ge-chipflow td.ge-chip-step1{ background: #f8f9ee; }
#main_content.gem-page table.ge-chipflow td.ge-chip-step2{ background: #f1f3de; }
#main_content.gem-page table.ge-chipflow td.ge-chip-step3{ background: #e3e8bd; }

/* Great gem block */
#main_content.gem-page .ge-great-row{
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
}
#main_content.gem-page .ge-great-title{
  font-weight: 800;
}
#main_content.gem-page .ge-great-desc{
  margin-top: 6px;
}

/* Bracelet Evolution: make body columns non-bold (Name / Order Form Option / Details) */
#main_content.bracelet-page table td:nth-child(2),
#main_content.bracelet-page table td:nth-child(3),
#main_content.bracelet-page table td:nth-child(4){
  font-weight: 400 !important;
}
#main_content.bracelet-page table td:nth-child(2) :where(b, strong),
#main_content.bracelet-page table td:nth-child(3) :where(b, strong),
#main_content.bracelet-page table td:nth-child(4) :where(b, strong){
  font-weight: 400 !important;
}

#main_content th:first-child,
#main_content td:first-child{
  width: 210px;
  text-align: center;
}

#main_content img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Upgrade tables (Armor 400 up) */
#main_content table.upgrade-table{
  table-layout: fixed;
}
#main_content table.upgrade-table th:nth-child(1),
#main_content table.upgrade-table td:nth-child(1){
  width: 360px;
  text-align: left !important;
}
#main_content table.upgrade-table th:nth-child(2),
#main_content table.upgrade-table td:nth-child(2){
  width: 90px;
  text-align: center;
}
#main_content table.upgrade-table th:nth-child(3),
#main_content table.upgrade-table td:nth-child(3){
  width: 120px;
  text-align: center;
}
#main_content table.upgrade-table th:nth-child(4),
#main_content table.upgrade-table td:nth-child(4){
  width: 170px;
  text-align: center;
}

/* rowspans mudam nth-child por linha; alinhar via classe */
#main_content table.upgrade-table td.upgrade-plus,
#main_content table.upgrade-table td.upgrade-defense,
#main_content table.upgrade-table td.upgrade-lime{
  text-align: center !important;
}

/* Upgrade: alinhar gem list (icone + nome) */
#main_content table.upgrade-table td:nth-child(1) .upgrade-gem-list{
  width: fit-content;
  margin: 0 auto; /* centraliza o bloco todo embaixo da imagem */
}

#main_content table.upgrade-table td:nth-child(1) .upgrade-item-name{
  display: block;
  text-align: center;
}
#main_content table.upgrade-table td:nth-child(1) .upgrade-gem-row{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 6px 0;
  width: 100%;
}
#main_content table.upgrade-table td:nth-child(1) .upgrade-gem-row img{
  width: 28px;
  height: 28px;
  object-fit: cover;
  flex: 0 0 auto;
  margin: 0;
}
#main_content table.upgrade-table td:nth-child(1) .upgrade-gem-text{
  display: inline-block;
  line-height: 1.3;
  white-space: nowrap;
}
#main_content table.upgrade-table td:nth-child(1) .upgrade-gem-title{
  margin: 10px 0 4px;
}

/* ===== Production page (when rendered inside index.tpl) ===== */
.areaopac.color3 .buttons{
  display: none !important;
}

.areaopac.color3{
  /* sem "card" atrás: deixa o fundo igual ao da página */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#results table{
  width: min(980px, 100%) !important;
  margin: 22px auto !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  background: #fff;
  color: #000;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow: hidden;
}

#results thead th{
  /* header preto com letra branca (como Quest) */
  background: #111827 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(0,0,0,.10) !important;
}

/* coluna da imagem (tbody usa <th>) também branca */
#results tbody th{
  background: #ffffff !important;
  color: #111827 !important;
}

#results thead th:first-child,
#results tbody th:first-child{
  width: 210px !important;
}

/* imagem no tamanho "original" (sem forçar escala) */
#results tbody th:first-child img{
  max-width: none;
  width: auto;
  height: auto;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 700px){
  #results tbody th:first-child img{
    max-width: 100%;
  }
}

/* Centralizar "Success Rate" abaixo da imagem */
#results tbody th:first-child div{
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  margin-top: 10px;
}

#results tbody th:first-child div p{
  margin: 0;
  font-weight: 700;
  text-align: center;
}

/* Alinhar lista de itens/ícones no "Required Item" */
#results tbody td:nth-child(2){
  line-height: 1.7;
}

#results tbody td:nth-child(2) img{
  /* mexer apenas nesses ícones (Required Item): usar tamanho natural do arquivo */
  width: auto;
  height: auto;
  max-width: none;
  max-height: 32px;
  vertical-align: middle;
  margin-right: 8px;
  margin-left: 0;
  float: none !important;
  display: inline-block !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#results tbody td:nth-child(2) img[align]{
  float: none !important;
}

/* Monster Drop (guide.php / maps) - alinhar Normal Drop + Special Drop */
#results tbody td:nth-child(5),
#results tbody td:nth-child(6){
  text-align: left !important;
  vertical-align: top;
  line-height: 1.5;
}

#results tbody td:nth-child(5) img,
#results tbody td:nth-child(6) img{
  width: 28px;
  height: 28px;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 8px 0 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  float: none !important;
  display: inline-block !important;
}

/* Monster Drop agora é 3 colunas: alinhar drops nas colunas 2 e 3 */
#results tbody td:nth-child(2),
#results tbody td:nth-child(3){
  text-align: left !important;
  vertical-align: top;
  line-height: 1.5;
}

#results tbody td:nth-child(2) img,
#results tbody td:nth-child(3) img,
#results tbody td:nth-child(2) img.map-icon,
#results tbody td:nth-child(3) img.map-icon{
  width: 28px;
  height: 28px;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 8px 0 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  float: none !important;
  display: inline-block !important;
}

/* Monster Drop: infos abaixo da imagem alinhadas à esquerda (não centralizado) */
table.maps-table tbody th:first-child div{
  align-items: flex-start !important;
}
table.maps-table tbody th:first-child div p{
  text-align: left !important;
  width: 100%;
  font-weight: 400 !important; /* valores sem negrito */
  margin: 2px 0;
}

table.maps-table tbody th:first-child div p b{
  font-weight: 700 !important;
}

table.maps-table tbody th:first-child div{
  padding-left: 6px;
}

/* Footer (keep simple) */
#footer{
  padding: 26px 0;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
}

/* Links do footer (compacto e centralizado) */
#footer .link_yd{
  display: inline-flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 6px 0;
  list-style: none;
}
#footer .link_yd li{
  margin: 0;
}
#footer .link_yd a{
  color: var(--muted);
  text-decoration: none;
}
#footer .link_yd a:hover{
  text-decoration: underline;
}
#footer address{
  margin: 0;
  font-style: normal;
  color: var(--muted);
}

/* ===== Botão "voltar ao topo" (floatBanner/goTop) =====
   Mantém o comportamento clássico de ficar flutuando no canto. */
.floatBanner{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
}
.floatBanner.is-hidden{
  display: none;
}
.goTop{
  margin-top: 0;
}
.goTop a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(31,35,39,.85);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.goTop a:hover{
  background: rgba(31,35,39,.95);
}
.goTop img{
  width: 45px;
  height: 19px;
}

@media (max-width: 700px){
  .topbar-inner{ flex-wrap: wrap; }
  .topnav{ order: 3; width: 100%; overflow:auto; }
  .search input{ width: 100%; max-width: 100%; }
  nav.modern-menu{ overflow:auto; }
}

