/* 모험 도감 v2 (2026-12-01): /library/ = one encyclopedia - search band with suggestions, kind tabs, filter column (bottom sheet on
   phones), result list / cards, linked detail views (pet growth calculator, box contents, iso mini map). The hanji skin is in paper.css. */
.dex { --dx-line: #d9cbb0; --dx-soft: #f6efe1; --dx-card: #fffdf8; --dx-ink: #3a3226; --dx-sub: #8c7b60; --dx-acc: #c9772b;
  --dx-acc-d: #a35e1c; --dx-brown: #3b2a1a; --dx-hl: #fbe7c6; --dx-green: #3e7d3a; --dx-new: #b4421c;
  --el-0: #3f9a3c; --el-1: #3a72c8; --el-2: #d24a3a; --el-3: #c28f10; color: var(--dx-ink);
  font: 13px/1.55 "Malgun Gothic", "맑은 고딕", sans-serif; }
.dex *, .dex *::before, .dex *::after { box-sizing: border-box; }
.dex :where(button) { font: inherit; color: inherit; cursor: pointer; }
.dex :where(a) { color: inherit; text-decoration: none; }
.dex img { image-rendering: pixelated; }
.dex :focus-visible { outline: 3px solid var(--dx-acc); outline-offset: 2px; }
.library-panel .section-heading, .library-panel .catalog-toolbar, .library-panel #publicCatalog,
.library-panel .list-pagination, .library-panel #acquireGuide { display: none !important; }
body[data-page="library"] .portal-panel.library-panel { padding: 0; background: none; border: 0; box-shadow: none; }

/* search band + suggestions */
.dx-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 24px; align-items: start; padding: 18px 20px 16px;
  background: var(--dx-soft); border: 1px solid var(--dx-line); border-radius: 10px; }
.dx-band h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--dx-brown); }
.dx-band .dx-asof { margin: 2px 0 10px; color: var(--dx-sub); font-size: 13px; }
.dx-band .dx-note { display: inline-block; font-size: 13px; color: var(--dx-sub); }
.dx-search { position: relative; display: flex; height: 46px; border: 2px solid var(--dx-brown); border-radius: 8px; background: #fff; }
.dx-search .ic { display: grid; place-items: center; width: 40px; flex: none; color: var(--dx-sub); font-size: 18px; }
.dx-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 15px "Malgun Gothic", sans-serif; color: var(--dx-ink); background: none; }
.dx-search input::-webkit-search-cancel-button { display: none; }
.dx-search kbd { align-self: center; flex: none; margin-right: 8px; padding: 1px 6px; border: 1px solid var(--dx-line); border-radius: 4px;
  font: 11px Consolas, monospace; color: var(--dx-sub); background: var(--dx-soft); }
.dx-search button[type="submit"] { flex: none; width: 74px; border: 0; background: var(--dx-acc); color: #fff; font-weight: 800; }
.dx-suggest { color: var(--dx-ink); text-align: left; font: 13px/1.4 "Malgun Gothic", sans-serif; position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); z-index: 30; padding: 6px; max-height: 70vh; overflow: auto;
  border: 2px solid var(--dx-brown); border-radius: 8px; background: #fffdf8; box-shadow: 0 14px 30px #2c241d40; }
.dx-suggest[hidden] { display: none; }
.dx-sug { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--dx-ink); }
.dx-sug .dx-pic { flex: 0 0 36px; width: 36px; height: 34px; }
.dx-sug .t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.dx-sug .t b { display: inline; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-sug .t small { flex: none; color: var(--dx-sub); font-size: 12px; }
.dx-sug .nw { flex: none; padding: 0 6px; border-radius: 3px; background: var(--dx-new); color: #fff; font: 700 10px/16px sans-serif; font-style: normal; }
.dx-sug.on, .dx-sug:hover { background: var(--dx-hl); }
.dx-sug.all { justify-content: center; margin-top: 4px; border-top: 1px dashed var(--dx-line); border-radius: 0; color: var(--dx-acc-d); font-weight: 700; }
.dx-quick { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: var(--dx-sub); }
.dx-quick a { color: var(--dx-green); text-decoration: underline; text-underline-offset: 2px; }

/* kind tabs */
.dx-tabs { display: flex; margin-top: 18px; border-bottom: 3px solid var(--dx-brown); }
.dx-tabs a { flex: 1 0 auto; display: flex; justify-content: center; align-items: baseline; gap: 5px; padding: 10px 8px; white-space: nowrap;
  border-radius: 8px 8px 0 0; font-size: 15px; font-weight: 700; color: var(--dx-ink); }
.dx-tabs a small { font-size: 11px; font-weight: 400; color: var(--dx-sub); }
.dx-tabs a:hover { background: var(--dx-soft); }
.dx-tabs a.on { background: var(--dx-acc); color: #fff; }
.dx-tabs a.on small { color: #fde9cf; }
.dx-view { margin-top: 16px; min-height: 320px; }

/* layout + filter column */
.dx-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.dx-body.wide { grid-template-columns: minmax(0, 1fr); }
.dx-side { position: sticky; top: 10px; padding: 14px; border: 1px solid var(--dx-line); border-radius: 10px; background: var(--dx-card); }
.dx-side h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding-bottom: 8px; font-size: 15px; }
.dx-side .dx-clear { font: 400 12px/1 "Malgun Gothic", sans-serif; color: var(--dx-sub); text-decoration: underline; }
.dx-field { display: block; margin: 12px 0 0; }
.dx-field > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.dx-side select, .dx-side input:not([type="checkbox"]) { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--dx-line); border-radius: 6px;
  background: #fff; font: 13px "Malgun Gothic", sans-serif; color: var(--dx-ink); }
.dx-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; cursor: pointer; }
.dx-check input { width: 18px; height: 18px; accent-color: var(--dx-green); }
.dx-side .dx-hint { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--dx-line); font-size: 12px; color: var(--dx-sub); }
.dx-side .dx-hint b { display: block; color: var(--dx-ink); margin-bottom: 4px; }
.dx-sheet-x, .dx-sheet-done, .dx-filterbtn { display: none; }
.dx-main { min-width: 0; }
.dx-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.dx-head .dx-count { font-size: 15px; }
.dx-head .dx-count b { font-size: 20px; color: var(--dx-acc-d); }
.dx-head p { margin: 2px 0 0; font-size: 12px; color: var(--dx-sub); }
.dx-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-head select { height: 34px; padding: 0 8px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font: 13px "Malgun Gothic", sans-serif; }
.dx-seg { display: flex; border: 1px solid var(--dx-line); border-radius: 6px; overflow: hidden; }
.dx-seg button { padding: 0 12px; border: 0; background: #fff; font-size: 12px; }
.dx-seg button.on { background: var(--dx-brown); color: #fff; }

/* sub tabs + chips */
.dx-subtabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--dx-brown); margin-bottom: 10px; }
.dx-subtabs a { padding: 8px 11px; font-size: 13px; color: var(--dx-ink); white-space: nowrap; border-radius: 6px 6px 0 0; }
.dx-subtabs a small { margin-left: 3px; font-size: 10px; color: var(--dx-sub); }
.dx-subtabs a:hover { background: var(--dx-soft); }
.dx-subtabs a.on { background: var(--dx-brown); color: #fff; font-weight: 700; }
.dx-subtabs a.on small { color: #e9dcc4; }
.dx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--dx-line); border-radius: 8px; background: var(--dx-soft); }
.dx-chips > span { margin-right: 4px; font-size: 12px; color: var(--dx-sub); }
.dx-chips a { min-width: 38px; padding: 4px 10px; text-align: center; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 700; }
.dx-chips a.e0 { color: var(--el-0); } .dx-chips a.e1 { color: var(--el-1); } .dx-chips a.e2 { color: var(--el-2); } .dx-chips a.e3 { color: var(--el-3); }
.dx-chips a.on { border-color: var(--dx-green); background: var(--dx-green); color: #fff; }
.dx-chips a.on.e0 { background: var(--el-0); border-color: var(--el-0); } .dx-chips a.on.e1 { background: var(--el-1); border-color: var(--el-1); }
.dx-chips a.on.e2 { background: var(--el-2); border-color: var(--el-2); } .dx-chips a.on.e3 { background: var(--el-3); border-color: var(--el-3); }

/* rows */
.dx-list { display: flex; flex-direction: column; gap: 8px; }
.dx-group { margin-top: 6px; padding: 7px 12px; border-radius: 6px; background: #e9eedf; color: var(--dx-green); font-size: 13px; font-weight: 700; }
.dx-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 12px;
  border: 1px solid var(--dx-line); border-radius: 10px; background: #fff; }
.dx-row:hover { border-color: var(--dx-acc); background: #fffaf0; }
.dx-row .dx-pic { width: 58px; height: 50px; }
.dx-row h4 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.dx-row .dx-sub { font-size: 12px; color: var(--dx-sub); overflow-wrap: anywhere; }
.dx-row .dx-meta { text-align: right; font-size: 12px; color: var(--dx-sub); white-space: nowrap; }
.dx-row .dx-meta b { color: var(--dx-ink); }
.dx-more { display: block; margin: 2px 0 6px; padding: 7px 14px; text-align: center; border: 1px dashed var(--dx-line); border-radius: 6px; color: var(--dx-acc-d); font-weight: 700; }
.dx-tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.dx-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: #f1e6cf; color: #8a5a1c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dx-tag.green { background: #e4efdc; color: var(--dx-green); }
.dx-tag.gray { background: #eee9df; color: #6f6452; }
.dx-tag.catch { background: #fff2b8; color: #7a5d00; }
.dx-tag.box { background: #f4e0cf; color: #8f4a14; }
.dx-tag.shop { background: #e2ecf4; color: #2d5a80; }
.dx-tag.drop { background: #f3dddd; color: #8f2c2c; }
.dx-tag.skill { background: #ece4f3; color: #5b3f80; font-weight: 400; font-size: 12px; }
.dx-tag.ride { background: #e4efdc; color: var(--dx-green); font-size: 12px; }
.dx-tag.new { background: var(--dx-new); color: #fff; }
.dx-tag.k { background: var(--dx-brown); color: #fff; }
.dx-els { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dx-el { display: inline-block; padding: 0 6px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dx-el.e0 { background: var(--el-0); } .dx-el.e1 { background: var(--el-1); } .dx-el.e2 { background: var(--el-2); } .dx-el.e3 { background: var(--el-3); }
.dx-elbars { margin: 2px 0 4px; }
.dx-bar { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.dx-bar .dx-el { min-width: 40px; text-align: center; }
.dx-bar .dots { display: flex; gap: 2px; }
.dx-bar .dots u { width: 7px; height: 8px; background: #e3ddd2; }
.dx-bar.e0 u.f { background: var(--el-0); } .dx-bar.e1 u.f { background: var(--el-1); } .dx-bar.e2 u.f { background: var(--el-2); } .dx-bar.e3 u.f { background: var(--el-3); }

/* pictures: lazy image or a drawn glyph when the game has no picture for it */
.dx-pic { position: relative; display: grid; place-items: center; overflow: hidden; }
.dx-pic img { max-width: 100%; max-height: 100%; }
.dx-pic.dx-noimg::before { content: attr(data-g); display: grid; place-items: center; width: 76%; height: 76%; max-width: 64px; max-height: 64px;
  border: 2px solid #cdb68a; border-radius: 50% 46% 52% 44%; background: #f3e7cc; color: #7a5b33; font: 700 18px/1 "Malgun Gothic", sans-serif; }
.dx-pic.dx-noimg.big::before { font-size: 30px; }
.dx-pic.k-r::before { background: #f4ddd2; color: #8f3214; } .dx-pic.k-n::before { background: #e3ece3; color: #2f6b63; }
.dx-pic.k-s::before { background: #e2ecf4; color: #2d5a80; } .dx-pic.k-q::before { background: #efe3c3; color: #6e5410; }
.dx-pic.k-m::before { background: #e4efdc; color: #3e7d3a; }

/* favourites */
.dx-fav { padding: 6px 12px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font-size: 13px; white-space: nowrap; }
.dx-fav.on { border-color: #d9a21a; background: #fff3c7; color: #7a5600; }
.dx-fav.sm { width: 34px; height: 34px; padding: 0; border-color: transparent; background: none; font-size: 19px; color: #b8a27c; }
.dx-fav.sm.on { color: #d29a0c; background: none; }
.dx-fav.sm:hover { color: #d29a0c; }

/* cards */
.dx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dx-card { display: flex; flex-direction: column; border: 1px solid var(--dx-line); border-radius: 10px; background: #fff; overflow: hidden; }
.dx-card:hover { border-color: var(--dx-acc); }
.dx-card .top { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; padding: 12px 10px 6px 12px; }
.dx-card .top .dx-pic { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #fbf6ea 0, #fbf6ea 60%, transparent 61%); }
.dx-card h4 { margin: 2px 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.dx-card .where { padding: 2px 14px 10px; font-size: 12px; color: #5b5142; min-height: 54px; }
.dx-card .where b { display: inline; margin-right: 6px; font-size: 11px; color: var(--dx-sub); }
.dx-card .where small { display: block; margin-top: 3px; color: var(--dx-sub); font-size: 11px; }
.dx-card .stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; margin-top: auto; background: var(--dx-soft); border-top: 1px solid var(--dx-line); }
.dx-card .stats div { padding: 7px 4px; text-align: center; border-right: 1px solid #ebe1cd; font-size: 11px; color: var(--dx-sub); }
.dx-card .stats div:last-child { border-right: 0; }
.dx-card .stats b { display: block; font-size: 15px; color: var(--dx-ink); }
.dx-card .stats div:first-child b { font-size: 18px; color: var(--dx-acc-d); }
.dx-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.dx-kind { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
.dx-kind .dx-pic { flex: 0 0 54px; width: 54px; height: 54px; }
.dx-kind h4 { margin: 0; }
.dx-kind .dx-sub { font-size: 12px; color: var(--dx-sub); }
.dx-kind .n { display: block; margin-top: 2px; color: var(--dx-acc-d); font-size: 15px; }

/* pager */
.dx-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0 4px; }
.dx-pager a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; }
.dx-pager a.on { background: var(--dx-brown); color: #fff; border-color: var(--dx-brown); }
.dx-pager a.off { opacity: .35; pointer-events: none; }
.dx-empty { padding: 40px 10px; text-align: center; color: var(--dx-sub); }
.dx-loading { opacity: .8; }

/* update log inside the dex */
.dx-upd { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.dx-upd .dx-link { margin: 0; }
.dx-upd time { flex: none; width: 42px; color: var(--dx-acc-d); font-weight: 700; font-size: 13px; }
.dx-upd .t b { display: block; }

/* detail */
.dx-detail { border: 1px solid var(--dx-line); border-radius: 10px; background: var(--dx-card); }
.dx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; background: #eef2e6; border-bottom: 1px solid var(--dx-line); font-size: 12px; color: var(--dx-sub); border-radius: 10px 10px 0 0; }
.dx-crumb button, .dx-crumb .dx-cbtn { padding: 5px 12px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font-size: 12px; white-space: nowrap; }
.dx-crumb .path { min-width: 0; overflow-wrap: anywhere; }
.dx-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-bottom: 1px solid var(--dx-line); }
.dx-title > div:nth-child(2) { flex: 1 1 220px; min-width: 0; }
.dx-title .dx-pic { flex: none; width: 88px; height: 88px; border: 1px solid var(--dx-line); border-radius: 10px; background: #fff; }
.dx-title h3 { margin: 0; font-size: 24px; color: var(--dx-brown); overflow-wrap: anywhere; }
.dx-title .dx-sub { color: var(--dx-sub); font-size: 13px; }
.dx-title .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-share { padding: 6px 12px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font-size: 13px; }
.dx-callout { margin: 14px 20px 0; padding: 12px 16px; border-left: 4px solid var(--dx-green); border-radius: 6px; background: #eef2e6; font-size: 13px; }
.dx-cols { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 14px; padding: 14px 20px 20px; align-items: start; }
.dx-cols.one { grid-template-columns: minmax(0, 1fr); }
.dx-cols.one > div:empty { display: none; }
.dx-sec { border: 1px solid var(--dx-line); border-radius: 10px; background: #fff; padding: 14px; margin-bottom: 14px; min-width: 0; }
.dx-sec:last-child { margin-bottom: 0; }
.dx-main > .dx-sec { margin-top: 18px; }
.dx-sec h4 { margin: 0 0 10px; padding-left: 9px; border-left: 3px solid var(--dx-green); font-size: 15px; }
.dx-sec h4 small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--dx-sub); }
.dx-sec h5 { margin: 12px 0 6px; font-size: 13px; color: var(--dx-sub); }
.dx-sec h5:first-of-type { margin-top: 2px; }
.dx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 10px; background: #e7decb; border: 1px solid #e7decb; border-radius: 6px; overflow: hidden; }
.dx-grid div { padding: 7px 10px; background: #f5f6ee; min-width: 0; overflow-wrap: anywhere; }
.dx-grid div small { display: block; font-size: 11px; color: var(--dx-sub); }
.dx-grid div b { font-size: 15px; }
.dx-grid div.full { grid-column: 1 / -1; }
.dx-grid div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dx-tbl { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; margin-top: 8px; }
.dx-tbl th { padding: 6px 4px; background: var(--dx-soft); font-size: 12px; color: var(--dx-sub); font-weight: 700; border-bottom: 1px solid var(--dx-line); }
.dx-tbl td { padding: 7px 4px; border-bottom: 1px solid #efe6d4; }
.dx-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid #ebe1cd; border-radius: 8px; background: #fff; text-align: left; }
a.dx-link:hover { border-color: var(--dx-acc); background: #fffaf0; }
.dx-link .dx-pic { flex: 0 0 40px; width: 40px; height: 38px; }
.dx-link .t { flex: 1 1 7em; min-width: 7em; overflow-wrap: anywhere; }
.dx-link .t small { display: block; color: var(--dx-sub); font-size: 11px; }
.dx-link .v { flex: none; margin-left: auto; font-size: 12px; color: var(--dx-acc-d); font-weight: 700; text-align: right; white-space: nowrap; }
a.dx-link::after { content: "›"; color: var(--dx-sub); }
.dx-link.is-new { box-shadow: inset 3px 0 0 var(--dx-new); }
.dx-link.cur { border-color: var(--dx-acc); background: var(--dx-hl); }
.dx-link.off { opacity: .85; }
.dx-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 6px; }
.dx-chipsx { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-src { padding: 9px 11px; margin-bottom: 6px; border: 1px solid #ebe1cd; border-radius: 8px; background: #fff; }
.dx-src > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dx-src p { margin: 5px 0 0; font-size: 12px; color: #5b5142; }
.dx-src .dx-mini { margin-top: 6px; }
.dx-inl { display: inline-block; margin-top: 4px; color: var(--dx-green); font-size: 12px; font-weight: 700; text-decoration: underline; }
.dx-srcg + .dx-srcg { margin-top: 6px; }
.dx-unfold { grid-column: 1 / -1; padding: 7px 12px; border: 1px dashed var(--dx-line); border-radius: 6px; background: none; color: var(--dx-acc-d); font-weight: 700; font-size: 12px; }
.dx-unfold.sm { padding: 3px 10px; }
.dx-unfold:disabled { color: var(--dx-sub); cursor: default; }
.dx-boxlink { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.dx-boxlink > .dx-link { flex: 1 1 160px; }
.dx-boxlink > .dx-unfold { flex: none; grid-column: auto; }
.dx-boxc { flex: 1 1 100%; padding: 8px; border-radius: 6px; background: var(--dx-soft); }
.dx-boxc > .dx-sub { margin: 0 0 6px; font-size: 12px; color: var(--dx-sub); }
.dx-evo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dx-evo .dx-link { flex: 1 1 140px; }
.dx-evo .arr { color: var(--dx-sub); font-weight: 700; }
.dx-calc .dx-lv { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dx-calc .dx-lv input { width: 74px; height: 34px; padding: 0 8px; border: 1px solid var(--dx-line); border-radius: 6px; font: 700 16px "Malgun Gothic", sans-serif; }
.dx-calc .dx-lv small { color: var(--dx-sub); font-weight: 400; }
.dx-calc input[type="range"] { width: 100%; margin: 10px 0 4px; accent-color: var(--dx-acc); }
.dx-calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dx-calc-out div { padding: 6px 4px; text-align: center; border-radius: 6px; background: var(--dx-soft); }
.dx-calc-out small { display: block; font-size: 11px; color: var(--dx-sub); }
.dx-calc-out b { font-size: 17px; }
.dx-calc-out .tot { grid-column: 1 / -1; background: var(--dx-hl); }
.dx-calc-out .tot b { font-size: 22px; color: var(--dx-acc-d); }
.dx-note2 { margin: 8px 0 0; font-size: 12px; color: var(--dx-sub); }
.dx-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.dx-steps li { position: relative; padding: 8px 10px 8px 38px; margin-bottom: 6px; border: 1px solid #ebe1cd; border-radius: 8px; background: #fff; }
.dx-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 10px; top: 9px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--dx-brown); color: #fff; font-size: 11px; text-align: center; line-height: 20px; }
.dx-steps li b { display: block; }
.dx-steps li small { display: block; color: var(--dx-sub); }
.dx-steps li .dx-unfold { margin-top: 4px; }
.dx-lines { margin: 0; padding-left: 18px; }
.dx-lines li { margin: 3px 0; overflow-wrap: anywhere; }
.dx-exp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.dx-exp span { display: flex; justify-content: space-between; gap: 4px; padding: 4px 8px; border-radius: 4px; background: var(--dx-soft); font-size: 12px; }
.dx-exp b { color: var(--dx-sub); font-weight: 400; }
.dx-shoppanel .dx-mini { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dx-shoptabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.dx-shoptabs button { padding: 7px 14px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font-weight: 700; }
.dx-shoptabs button.on { background: var(--dx-brown); border-color: var(--dx-brown); color: #fff; }

/* iso mini map */
.dx-map { margin: 0; }
.dx-map svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.dx-map .ground { fill: #e6d6b0; stroke: #8c6a3e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dx-map .grid { stroke: #b99d70; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; opacity: .6; }
.dx-map .ring { fill: none; stroke: #b4421c; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.dx-map .dot { fill: #b4421c; }
.dx-map figcaption { margin-top: 6px; text-align: center; font-size: 13px; }
.dx-map figcaption small { display: block; color: var(--dx-sub); font-size: 11px; }
.dx-foot { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--dx-line); border-radius: 10px; background: var(--dx-soft); font-size: 12px; color: var(--dx-sub); }
.dx-foot b { color: var(--dx-ink); }
.dx-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 8px 16px; border-radius: 999px;
  background: #3b2a1a; color: #fff; font: 13px "Malgun Gothic", sans-serif; z-index: 80; }

/* /guide/: 블랙에만 있는 콘텐츠 (dex.js) */
.bg-sec { margin: 6px 0 30px; }
.bg-lead { margin: 0 0 14px; color: #6f5d48; }
.bg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bg-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #d9cbb0; border-radius: 10px; background: #fffdf8; color: inherit; text-decoration: none; }
.bg-card:hover { border-color: #c9772b; }
.bg-card .dx-pic { flex: 0 0 56px; width: 56px; height: 56px; }
.bg-card .t { min-width: 0; }
.bg-card .t small { display: block; color: #a35e1c; font-size: 12px; font-weight: 700; }
.bg-card .t b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.bg-card .t span { display: block; color: #6f5d48; font-size: 12px; overflow-wrap: anywhere; }
.bg-card .nw { position: absolute; top: -8px; right: 10px; padding: 0 7px; border-radius: 3px; background: #b4421c; color: #fff; font: 700 11px/18px sans-serif; font-style: normal; }

@media (max-width: 1080px) {
  .dx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-kinds, .bg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dx-band, .dx-body, .dx-cols { grid-template-columns: minmax(0, 1fr); }
  .dx-tabs { overflow-x: auto; scrollbar-width: thin; }
  .dx-tabs a { flex: 0 0 auto; }
  .dx-upd { grid-template-columns: minmax(0, 1fr); }
  /* filter column -> bottom sheet */
  .dx-filterbtn { display: inline-block; height: 34px; padding: 0 14px; border: 1px solid var(--dx-brown); border-radius: 6px; background: var(--dx-brown); color: #fff; font-weight: 700; }
  .dx-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 78vh; overflow: auto; padding: 18px 16px 16px;
    border-radius: 16px 16px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; box-shadow: 0 -10px 40px #2c241d55; }
  .dex.dx-sheet-open .dx-side { transform: none; visibility: visible; transition: transform .22s ease; }
  .dex.dx-sheet-open::before { content: ""; position: fixed; inset: 0; z-index: 65; background: #1d130b8c; }
  .dx-side::after { content: ""; position: absolute; top: 7px; left: calc(50% - 22px); width: 44px; height: 4px; border-radius: 2px; background: #c3a97b; }
  .dx-sheet-x { display: block; position: absolute; right: 10px; top: 10px; padding: 4px 10px; border: 1px solid var(--dx-line); border-radius: 6px; background: #fff; font-size: 12px; }
  .dx-side h3 { padding-right: 60px; }
  .dx-sheet-done { display: block; width: 100%; height: 44px; margin-top: 16px; border: 0; border-radius: 8px; background: var(--dx-acc); color: #fff; font-weight: 800; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .dx-side { transition: none !important; } }
@media (max-width: 560px) {
  .dx-band { padding: 16px 14px 14px; }
  .dx-search kbd { display: none; }
  .dx-cards, .bg-list { grid-template-columns: minmax(0, 1fr); }
  .dx-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dx-kind { flex-direction: column; align-items: flex-start; text-align: left; }
  .dx-kind .dx-sub { display: none; }
  .dx-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .dx-row .dx-pic { width: 46px; height: 42px; }
  .dx-row .dx-meta { display: none; }
  .dx-title { padding: 14px; }
  .dx-title .dx-pic { width: 64px; height: 64px; }
  .dx-cols { padding: 12px; }
  .dx-callout { margin: 12px 12px 0; }
  .dx-calc-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-exp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-sug .t { flex-direction: column; gap: 0; }
}

/* (12-01b) item tab lead line: 레이드·엘리트 장비 only, link to every item */
.dx-lead { margin: 4px 0 10px; font-size: 13px; line-height: 1.6; color: var(--dx-sub); }
.dx-lead .dx-lead-a { margin-left: 2px; font-weight: 700; color: var(--dx-red, #9a3b1b); white-space: nowrap; text-decoration: none; }
.dx-lead .dx-lead-a:hover { text-decoration: underline; }
