/* Wiki — หน้ารายละเอียดไอเทม/มอน/แมพ/สกิล */
.wiki-head { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.wiki-search { width: min(440px, 100%); margin-bottom: 20px; }
.wiki-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; border-bottom: 2px solid var(--night-line); }
.wiki-tabs a { padding: 8px 14px; text-decoration: none; color: #b9c8de; font: 500 14px var(--font-head); border-radius: var(--radius) var(--radius) 0 0; }
.wiki-tabs a:hover { color: #fff; background: rgba(255,255,255,.05); }
.wiki-tabs a.on { color: var(--win-ink); background: linear-gradient(180deg, var(--win-title-a), var(--win-title-b)); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; min-width: 0; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hub a { display: block; padding: 16px; text-decoration: none; background: #fff; border: 1px solid #d5deea; border-top: 3px solid var(--ro-blue); border-radius: var(--radius); }
.hub a:hover { border-top-color: var(--gold); background: #f4f8fe; }
.hub b { display: block; font: 500 17px var(--font-head); color: var(--win-ink); }
.hub span { font-size: 13px; color: var(--win-mute); }

.ent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.ent .pic { width: 128px; min-height: 128px; display: grid; place-items: center; background: #fff; border: 1px solid #d5deea; border-radius: var(--radius); padding: 6px; }
.ent .pic img { max-width: 116px; max-height: 160px; }
.ent .pic.icon img { width: 48px; height: 48px; image-rendering: pixelated; }
.ent h2.name { margin: 0 0 4px; font: 500 22px/1.3 var(--font-head); color: var(--win-ink); }
.ent .sub { color: var(--win-mute); font-size: 13px; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.chip { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: #e6eef9; color: #1f4170; border: 1px solid #c8d7ec; }
.chip.warn { background: #fdeceb; color: #8d2a22; border-color: #f2c8c4; }
.stats6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; text-align: center; }
.stats6 div { background: #fff; border: 1px solid #d5deea; border-radius: var(--radius); padding: 4px 0; }
.stats6 b { display: block; font: 600 16px var(--font-head); color: var(--win-ink); }
.stats6 span { font-size: 11.5px; color: var(--win-mute); }

.ico { width: 24px; height: 24px; vertical-align: middle; image-rendering: pixelated; margin-right: 6px; }
.mobthumb { width: 36px; height: 36px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

.minimap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; background: #2a3a52 center/contain no-repeat; border: 1px solid var(--win-line); border-radius: var(--radius); }
.minimap i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #ff3b30; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #000; }
.minimap i.npc { background: #ffcc00; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.minimap i.area { border-radius: 2px; background: rgba(255, 59, 48, .25); border-color: rgba(255,255,255,.7); }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-bottom: 1px solid #dfe6f0; }
.filters select, .filters input { height: 34px; border: 1px solid var(--win-line); border-radius: var(--radius); padding: 0 8px; font: inherit; background: #fff; color: var(--win-ink); }
.filters input { width: 80px; }

.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.jobs a { padding: 7px 10px; background: #fff; border: 1px solid #d5deea; border-radius: var(--radius); text-decoration: none; font-size: 14px; }
.jobs a:hover { border-color: var(--ro-blue); background: #f2f7fe; }
.jobs h3 { grid-column: 1 / -1; margin: 10px 0 2px; font: 500 14px var(--font-head); color: var(--win-mute); }

.lv-table td { white-space: nowrap; }
.empty { padding: 14px 16px; color: var(--win-mute); }

@media (max-width: 860px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .stats6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .ent { grid-template-columns: 1fr; }
  .ent .pic { width: 100%; }
}
