/* 4ALL wiki (WIKI1, docs\wiki1.md): the wiki home, the item and monster pages and the monster list. Built on the
   tokens and components of site.css (panel, tabs, filters, item-ico, src-tag, stat-tile, pager) and on the item
   tooltip of account.css (ACC1); no colour of its own: every colour is a token of site.css or one of its values. */

/* ---------------------------------------------------------------- search (wiki home) */
.wiki-search { position: relative; display: flex; gap: 10px; max-width: 46rem; margin: 18px auto 0; text-align: left; }
.wiki-search .search-box { flex: 1 1 auto; max-width: none; }
.wiki-search input[type="search"] { width: 100%; min-height: 48px; font-size: 1.02rem; }
.wiki-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 34rem); overflow-y: auto;
  padding: 8px; border: 1px solid var(--gold-lo); border-radius: var(--radius); background: var(--glass-2); box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.wiki-results[hidden] { display: none; }
.wiki-results h3 { margin: 6px 8px 4px; font: 400 .74rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.wiki-results ul { list-style: none; margin: 0; padding: 0; }
.wiki-results li { margin: 0; }
.wiki-results a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none; }
.wiki-results a:hover, .wiki-results a.is-active { background: var(--gold-soft); color: var(--gold-hi); }
.wiki-results .r-name { font-weight: 700; line-height: 1.2; }
.wiki-results .r-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.wiki-results .r-none { padding: 10px 8px; color: var(--muted); }
.wiki-results .r-more { display: block; padding: 6px 8px 2px; font-size: .82rem; }
.wiki-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.wiki-chips > a, .wiki-chips > span { color: var(--text-2); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 11px; background: rgba(0, 0, 0, .25); text-decoration: none; }
.wiki-chips > a:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.wiki-chips b { color: var(--gold); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 211, 138, .18); vertical-align: 1px; }
.live-dot.is-off { background: var(--muted); box-shadow: none; }

/* ---------------------------------------------------------------- wiki home */
.wiki-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.wiki-col { display: grid; gap: 22px; min-width: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; text-align: center;
  border: 1px solid var(--gold-line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, rgb(var(--gold-rgb) / .06), rgba(0, 0, 0, .2));
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
a.tile:hover, a.tile:focus-visible { transform: translateY(-2px); border-color: var(--gold-lo); background: linear-gradient(180deg, rgb(var(--gold-rgb) / .12), rgba(0, 0, 0, .2)); }
.tile.is-soon { opacity: .62; }
.tile img, .tile .t-ico { width: 56px; height: 56px; border-radius: 8px; border: 1px solid rgb(var(--gold-rgb) / .3); background: rgba(0, 0, 0, .45); object-fit: cover; }
.tile .t-ico { display: grid; place-items: center; color: var(--gold); }
.tile .t-ico svg { width: 28px; height: 28px; }
.tile .t-name { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-size: .92rem; line-height: 1.25; }
.tile .t-sub { font-size: .78rem; color: var(--muted); }
.tile .badge { position: absolute; top: 8px; right: 8px; font-size: .62rem; }
.side-card h2 { font-size: 1.05rem; margin: 0 0 10px; letter-spacing: .12em; }
.side-card.tt-card { min-height: 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list li { margin: 0; }
.side-list a { color: var(--text); font-weight: 600; }
.side-list small { display: block; color: var(--muted); font-size: .78rem; }
.center-text { text-align: center; }

/* ---------------------------------------------------------------- item and monster pages */
.wiki-page { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.wiki-page > * { min-width: 0; }
.infobox { position: sticky; top: calc(var(--header-h) + 14px); padding: 0; overflow: hidden; }
.infobox .ib-head { padding: 18px 18px 14px; text-align: center; border-bottom: 1px solid var(--gold-line); background: linear-gradient(180deg, rgb(var(--gold-rgb) / .1), rgb(var(--gold-rgb) / 0)); }
.infobox .ib-head h2 { margin: 10px 0 2px; font-size: 1.3rem; color: var(--gold-hi); text-transform: none; letter-spacing: .02em; }
.infobox .ib-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.item-ico.xl { width: 72px; height: 72px; border-radius: 9px; }
.ib-rows { margin: 0; padding: 6px 18px 14px; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; }
.ib-rows dt, .ib-rows dd { margin: 0; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: .9rem; }
.ib-rows dt { color: var(--muted); }
.ib-rows dd { color: var(--text); font-weight: 700; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.ib-rows dd.yes { color: var(--ok); }
.ib-rows dd.no { color: var(--bad); }
.ib-foot { padding: 10px 18px 14px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--gold-line); }
/* the tooltip the game draws over an item, in the look of ACC1's equipment tooltip (account.css .eq-tip) */
.wiki-tip { margin: 14px 18px 4px; padding: 10px 12px; border: 1px solid var(--gold-lo); border-radius: var(--radius); background: var(--glass-2); font-size: .86rem; line-height: 1.55; }
.wiki-tip p { margin: 0; }
.wiki-tip .tip-name { font-weight: 700; color: var(--gold-hi); }
.wiki-tip .tip-meta { color: var(--muted); }
.wiki-tip .tip-lines { margin: 6px 0; padding: 6px 0; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); color: var(--text-2); }
.wiki-tip .tip-good { color: var(--ok); }
.wiki-tip .tip-warn { color: var(--warn); }

.lead-box { font-size: 1.02rem; color: var(--text-2); margin: 0; }
.lead-box strong { color: var(--gold-hi); font-weight: 600; }
.wiki-page .stat-tiles { margin: 16px 0 0; }
.wiki-sec { margin-top: 24px; }
.wiki-sec h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 1.15rem; letter-spacing: .12em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-line); }
.wiki-sec h2 small { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .85rem; }
.wiki-sec .src-tags { gap: 6px; }
.wiki-sec .src-tag { font-size: .8rem; padding: 2px 10px; }
.mon-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.mon-rows li { margin: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; background: var(--glass-row); font-size: .92rem; min-width: 0; }
.mon-rows .m-main { flex: 1 1 auto; min-width: 0; }
.mon-rows a, .mon-rows .nm { color: var(--text); font-weight: 600; }
.mon-rows a:hover { color: var(--gold-hi); }
.mon-rows .lv { flex: none; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; font-size: .85rem; }
.mon-rows .place { display: block; color: var(--info); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-rows .place.muted { color: var(--muted); }
.more-line { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.ico-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; }
.ico-grid a, .ico-grid .ig-item { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 6px; color: var(--text); font-size: .88rem; line-height: 1.25; text-decoration: none; min-width: 0; }
.ico-grid a:hover, .ico-grid a:focus-visible { background: var(--gold-soft); color: var(--gold-hi); }
.ico-grid .ig-txt { min-width: 0; }
.ico-grid .ig-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ico-grid small { display: block; color: var(--muted); font-size: .75rem; }
.drop-group + .drop-group { margin-top: 16px; }
.drop-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font: 700 .92rem/1.3 var(--sans); color: var(--gold-hi); margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.drop-group h3 small { color: var(--muted); font-weight: 400; }
.drop-group details > summary { cursor: pointer; color: var(--text-2); font-size: .88rem; margin: 6px 0; }
.drop-group details > summary:hover { color: var(--gold-hi); }
.quest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.quest-list li { margin: 0; display: flex; gap: 10px; align-items: center; padding: 7px 10px; background: var(--glass-row); border-radius: 6px; font-size: .92rem; }
.quest-list .q-lv { min-width: 4.4rem; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.quest-list .q-name { flex: 1 1 auto; color: var(--text); font-weight: 600; }
.quest-list .q-n { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.wiki-foot { margin-top: 22px; font-size: .8rem; color: var(--muted); }
.wiki-empty { color: var(--muted); margin: 0; }

/* the map snippet of a monster: its places on the atlas picture (/assets/img/maps/<id>.jpg) */
.map-snip { position: relative; height: 320px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--gold-line); background: rgba(0, 0, 0, .45); }
.map-snip .map-img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.map-snip .map-img img { display: block; width: 100%; height: 100%; max-width: none; }
.map-snip .pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--bad); background: rgba(239, 107, 91, .35); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
.map-snip .pin.is-main { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: rgba(239, 107, 91, .5); }
.map-snip .pin-label { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; background: var(--glass-2); color: var(--text); font-size: .8rem; }
.map-snip .map-open { position: absolute; right: 10px; bottom: 10px; }
.map-tabs { margin: 0 0 10px; }
.map-list { margin-top: 10px; }

/* the level medallion of a monster (MONICON1: of a monster without a face picture; the face below has it on its corner) */
.mon-ico {
  width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold-lo); background: radial-gradient(circle at 50% 35%, var(--gold-soft), transparent 70%), rgba(0, 0, 0, .45);
  color: var(--gold); font: 400 .82rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums;
}
.mon-ico.xl { width: 76px; height: 76px; font-size: 1.7rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 18px -6px var(--gold-lo); }
.mon-ico.is-strong { border-color: var(--bad); color: var(--gold-hi); }
/* 4ALL MONICON1: the monster's face as the game draws it in the target window (36 x 36 with its own dark frame; a few
   own pictures are 34 or 38), the level on a small medallion of the same look over its lower right corner; xl = twice
   the size (infobox, and over the title on narrow screens: .hero-face) */
.mon-face { position: relative; flex: none; display: inline-block; width: 36px; height: 36px; line-height: 0; vertical-align: middle; }
.mon-face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mon-face .mon-lv {
  position: absolute; right: -7px; bottom: -6px; min-width: 19px; height: 19px; padding: 0 4px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--gold-lo); background: radial-gradient(circle at 50% 35%, var(--gold-soft), transparent 70%), var(--glass-2);
  color: var(--gold); font: 400 .68rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums;
}
.mon-face.is-strong .mon-lv { border-color: var(--bad); color: var(--gold-hi); }
.mon-face.xl { width: 72px; height: 72px; }
.mon-face.xl .mon-lv { right: -11px; bottom: -9px; min-width: 30px; height: 30px; padding: 0 7px; font-size: 1.05rem; box-shadow: 0 0 18px -6px var(--gold-lo); }
.hero-face { display: none; }
.tag-strong, .tag-few {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  vertical-align: 1px; white-space: nowrap;
}
.tag-strong { color: #f3b0a6; border: 1px solid rgba(239, 107, 91, .6); background: rgba(239, 107, 91, .16); }
.tag-few { color: #f5d49a; border: 1px solid rgba(240, 180, 76, .5); background: rgba(240, 180, 76, .12); }
.gear-lv { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold); font-size: .8rem; white-space: nowrap; vertical-align: middle; }
.drop-icons { display: inline-flex; gap: 4px; vertical-align: middle; }
.drop-icons a { display: inline-flex; border-radius: 5px; }
.drop-icons a:hover .item-ico, .drop-icons a:focus-visible .item-ico { border-color: var(--gold-hi); }

/* ---------------------------------------------------------------- monster list */
.wiki-tabs { margin-bottom: 14px; }
.mon-table td.num, .mon-table th.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.mon-table .mon-name { color: var(--text); font-weight: 700; }
.mon-table .mon-name:hover { color: var(--gold-hi); }
.mon-table .item-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.mon-table td.drops { white-space: nowrap; }

@media (max-width: 960px) {
  .wiki-home, .wiki-page { grid-template-columns: minmax(0, 1fr); }
  .infobox { position: static; }
  .mon-rows { grid-template-columns: minmax(0, 1fr); }
  .hero-face { display: flex; justify-content: center; margin: 0 0 16px; }   /* MONICON1: the infobox is under the page here */
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .map-snip { height: 240px; }
}
@media (max-width: 719px) {
  .mon-table .col-opt { display: none; }
  .wiki-search { flex-direction: column; }
  .wiki-search .btn { width: 100%; }
}
@media (max-width: 480px) {
  .mon-table .col-opt2 { display: none; }
  .ico-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- mounts (/wiki/mounts) and crafting by category (/wiki/crafting) */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.three-col { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.two-col > *, .three-col > * { min-width: 0; }
.two-col > div > .panel + .panel { margin-top: 18px; }
.mount-chips { justify-content: flex-start; margin: 0 0 16px; }
.src-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.src-head h2 { margin: 0; }
.src-head p { margin: 0; color: var(--muted); font-size: .86rem; text-align: right; }
.mount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mount { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-row); color: var(--text); text-decoration: none; }
.mount:hover, .mount:focus-visible { box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--gold-hi); }
.mount img, .mount .item-ico { width: 40px; height: 40px; border-radius: 8px; }
.mount > span { font-weight: 600; font-size: .92rem; line-height: 1.25; min-width: 0; }
.mount small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.mount-info .lead-box { padding: 14px 18px 6px; font-size: .92rem; }
.ib-block { padding: 4px 18px 10px; }
.ib-block h3 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.ib-link { padding: 0 18px 12px; margin: 0; }

.cat-nav { position: sticky; top: calc(var(--header-h) + 14px); padding: 14px 10px; }
.cat-nav h2 { font: 400 .95rem/1.2 var(--display); letter-spacing: .08em; color: var(--gold); margin: 4px 8px 10px; text-transform: uppercase; }
.cat-nav h3 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 10px 6px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; }
.cat-nav li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.cat-nav li a small { color: var(--muted); }
.cat-nav li a:hover { background: var(--glass-row); color: var(--text); }
.cat-nav li a.is-on { background: var(--gold-soft); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-line); }
.cat-pick { display: none; margin: 0 0 14px; }
.rcp { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 4px; border-top: 1px solid var(--glass-row); }
.src-head + .rcp, .rcp-sub + .rcp { border-top: 0; }
.rcp .item-ico { width: 40px; height: 40px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--gold-line); }
.rcp h3 { margin: 0 0 3px; font: 600 1rem/1.3 var(--sans); color: var(--text); text-transform: none; letter-spacing: 0; }
.rcp h3 a { color: var(--text); }
.rcp h3 a:hover { color: var(--gold-hi); }
.rcp h3 .cnt { color: var(--muted); font-weight: 400; }
.rcp .rcp-meta { color: var(--muted); font-size: .84rem; margin: 0 0 8px; }
.rcp .recipe-warn { margin-top: 8px; }
.rcp-none { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(240, 180, 76, .35); }
.rcp.is-blocked h3 a, .rcp.is-blocked h3 span { color: var(--text-2); }
.rcp-sub { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 18px 4px 2px; }
.mats { display: flex; flex-wrap: wrap; gap: 6px; }
.mat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-row); font-size: .84rem; color: var(--text-2); }
.mat img, .mat .item-ico { width: 22px; height: 22px; border-radius: 5px; }
.mat a { color: var(--text-2); }
.mat a:hover { color: var(--gold-hi); }
.mat b { color: var(--gold-hi); font-weight: 600; }
.mat.is-missing { box-shadow: inset 0 0 0 1px rgba(240, 180, 76, .45); }
.mat .no-src, .check-row.is-missing span { color: var(--warn); }
.add-btn { white-space: nowrap; }
.add-btn.is-on { background: var(--gold-soft); color: var(--gold-hi); border-color: var(--gold-lo); }
.my-list { position: sticky; top: calc(var(--header-h) + 14px); padding: 16px; max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; }
.my-list h2 { font: 400 1.05rem/1.2 var(--display); letter-spacing: .06em; color: var(--gold); margin: 0 0 4px; }
.my-list h3 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.my-list .muted-small { color: var(--muted); font-size: .8rem; margin: 0 0 12px; }
.list-rcp { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; padding: 3px 0; color: var(--text); }
.list-rcp .lr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-rcp .lr-qty { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.list-rcp small { color: var(--gold-hi); min-width: 2.4em; text-align: center; font-weight: 600; }
.qty-btn { width: 26px; height: 26px; padding: 0; border-radius: 6px; border: 1px solid var(--gold-line); background: transparent; color: var(--gold); font: inherit; line-height: 1; cursor: pointer; }
.qty-btn:hover { background: var(--gold-soft); color: var(--gold-hi); }
.qty-btn:disabled { opacity: .4; cursor: default; background: transparent; }
.qty-btn.is-drop { color: var(--muted); border-color: var(--glass-row); }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 12px 0 4px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.check-row { display: grid; grid-template-columns: 18px 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.check-row img, .check-row .item-ico { width: 24px; height: 24px; border-radius: 5px; }
.check-row b { color: var(--gold-hi); font-weight: 600; }
.check-row.is-done span, .check-row.is-done b { color: var(--muted); text-decoration: line-through; }
.list-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.list-foot .muted-small { margin: 0; }

@media (max-width: 1100px) {
  .three-col { grid-template-columns: 200px minmax(0, 1fr); }
  .three-col > .my-list { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 860px) {
  .two-col, .three-col { grid-template-columns: minmax(0, 1fr); }
  .cat-nav { display: none; }
  .cat-pick { display: grid; }
  .my-list, .infobox.mount-info { position: static; }
}
@media (max-width: 560px) {
  .rcp { grid-template-columns: 40px minmax(0, 1fr); }
  .rcp .add-btn { grid-column: 2; justify-self: start; }
  .src-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .src-head p { text-align: left; }
  .mount-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------------------------------------------------------------- upgrading (/wiki/upgrading): mock-ups 02 and 04 */
.op-chips { justify-content: flex-start; margin: 0 0 16px; }
.op-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
.op-facts > div { padding: 10px 12px; border-radius: 10px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-row); }
.op-facts > div.bad { box-shadow: inset 3px 0 0 var(--bad), inset 0 0 0 1px var(--glass-row); }
.op-facts dt { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 5px; }
.op-facts dd { margin: 0; color: var(--text-2); font-size: .88rem; line-height: 1.5; }
.op-facts dd b { color: var(--text); }
.op-ico { width: 22px; height: 22px; border-radius: 5px; vertical-align: -6px; margin-right: 4px; }
.op-facts .op-ico { width: 20px; height: 20px; vertical-align: -5px; }
.chance-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.chance-table th { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--gold-line); vertical-align: bottom; }
.chance-table td { padding: 7px 10px; border-bottom: 1px solid var(--glass-row); color: var(--text-2); }
.chance-table td.lvl { font-weight: 600; color: var(--text); white-space: nowrap; }
.chance-table td.num, .chance-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.chance-table td .up { color: var(--ok); }
.chance-table td.lvl .op-ico { margin-right: 6px; }
.chance-table tr.is-guard td { box-shadow: inset 0 -2px 0 var(--gold-line); }
.chance-table tr.is-sel td { background: var(--gold-soft); }
.chance-table td.col-bar { width: 22%; }
.pbar { display: inline-block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); vertical-align: middle; }
.pbar.low { background: linear-gradient(90deg, var(--bad), var(--warn)); }
.rule-list { margin: 0; padding-left: 18px; color: var(--text-2); }
.rule-list li { margin: 6px 0; }
.rule-list b { color: var(--text); }
.panel .table-wrap + .rule-list { margin-top: 14px; }
.floors, .floors-head { display: inline-grid; grid-template-columns: repeat(3, 58px); gap: 4px; vertical-align: middle; }
.floors-head { display: grid; margin-top: 4px; font-size: .64rem; letter-spacing: .06em; color: var(--muted); }
.floors-head i { font-style: normal; }
.floors-head i.sm { display: none; }
.floors b { font-weight: 600; color: var(--text-2); }
.op-table td { vertical-align: top; line-height: 1.45; }
.op-table td.lvl { white-space: normal; min-width: 170px; }
.op-table.mini td, .op-table.mini th { text-align: center; }
.op-table.mini td.lvl, .op-table.mini th:first-child { text-align: left; }
.op-table tr.is-more { display: none; }
.op-table.is-open tr.is-more { display: table-row; }
.op-table .tag-opt { margin-left: 6px; color: var(--muted); font-size: .76rem; }
.op-table .no-item { color: var(--warn); }
.nos { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 400; color: var(--warn); box-shadow: inset 0 0 0 1px rgba(240, 180, 76, .45); }
.nos[hidden] { display: none; }
.gem-table td.lvl .nos { margin-left: 6px; }
.gem-fail { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; font-weight: 400; }
.gem-table td.num.is-on { color: var(--gold-hi); font-weight: 600; }
.gem-table th.num { white-space: nowrap; }
.calc-line { margin: 12px 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.55; }
.calc-line b { color: var(--text); }
.op-sub { display: flex; align-items: center; gap: 4px; font: 600 .95rem/1.3 var(--sans); color: var(--text); margin: 16px 0 8px; text-transform: none; letter-spacing: 0; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--gold-hi); }
.ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
.ctl-row .sim-label { margin: 0; }
.chk { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: .84rem; cursor: pointer; }
.chk input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.chk b { color: var(--gold-hi); }
.chk small { color: var(--muted); }
.num-in { width: 4.6em; min-height: 32px; padding: 4px 8px; border-radius: 8px; font: 600 .9rem/1.2 var(--sans); color: var(--gold-hi); background: rgba(4, 6, 10, .65); border: 1px solid var(--gold-line); }
.num-in:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 10px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-row); }
.seg button { appearance: none; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 4px 2px; border-radius: 7px; font: 600 .8rem/1.15 var(--sans); color: var(--text-2); text-align: center; }
.seg button small { font-weight: 400; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.seg button:hover { color: var(--gold-hi); }
.seg button[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-line); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg.sm { grid-template-columns: repeat(5, auto); margin: 0; padding: 3px; }
.seg.sm button { min-height: 30px; padding: 2px 10px; font-size: .78rem; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg.five { grid-template-columns: repeat(5, 1fr); }
.seg.five button { min-height: 34px; font-size: .76rem; }
.sim-panel { padding: 18px; position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; }
.sim-panel h2 { font: 400 1.1rem/1.2 var(--display); letter-spacing: .06em; color: var(--gold); margin: 0 0 12px; }
.sim-panel select { min-height: 40px; padding: 7px 34px 7px 12px; font-size: .95rem; font-weight: 600; }
.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sim-row label, .sim-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.sim-gap { margin-top: 12px; }
.sim-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 14px; }
.sim-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.sim-big > div { padding: 12px; border-radius: 10px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-row); }
.sim-big b { display: block; font: 400 1.6rem/1.1 var(--display); color: var(--gold-hi); overflow-wrap: anywhere; }
.sim-big small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.sim-line { margin: -4px 0 14px; color: var(--text-2); font-size: .86rem; }
.sim-line b { color: var(--gold-hi); }
.hist { display: grid; gap: 5px; margin: 6px 0 4px; }
.hist > div { display: grid; grid-template-columns: 108px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-2); }
.hist > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hist .pbar { height: 10px; }
.hist + .sim-label, .sim-line + .sim-label, .sim-foot + .sim-label { margin-top: 14px; }
.sim-cmp { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 10px; margin: 6px 0 4px; font-size: .82rem; }
.sim-cmp dt { color: var(--muted); }
.sim-cmp dd { margin: 0; color: var(--text-2); }
.sim-cmp .is-on { color: var(--gold-hi); font-weight: 600; }
.sim-cmp.wide { grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); }
.sim-foot { color: var(--muted); font-size: .78rem; margin: 10px 0 0; }
@media (max-width: 860px) {
  .op-facts { grid-template-columns: minmax(0, 1fr); }
  .sim-panel { position: static; max-height: none; overflow: visible; }
  /* phone: the simulator comes right after the scrolls */
  .upg-cols > div:first-child { display: contents; }
  .upg-cols #scrolls { order: 1; }
  .upg-cols .sim-panel { order: 2; }
  .upg-cols > div:first-child > .panel:not(#scrolls) { order: 3; margin-top: 0; }
}
@media (max-width: 560px) {
  .upg-table { font-size: .84rem; }
  .upg-table th, .upg-table td { padding: 6px 4px; }
  .upg-table th { letter-spacing: .04em; font-size: .64rem; }
  .upg-table .col-bar, .upg-table th:nth-child(6), .upg-table td:nth-child(6) { display: none; }
  .floors, .floors-head { grid-template-columns: repeat(3, 32px); gap: 2px; }
  .floors b { font-size: .8rem; }
  .floors-head { font-size: .54rem; letter-spacing: .02em; }
  .floors-head i.lg { display: none; }
  .floors-head i.sm { display: inline; }
  .seg.sm { grid-template-columns: repeat(5, 1fr); width: 100%; }
  .op-table.stack thead { display: none; }
  .op-table.stack tr { display: block; padding: 10px 10px 8px; border-bottom: 1px solid var(--glass-row); }
  .op-table.stack td { display: block; padding: 2px 0; border: 0; }
  .op-table.stack td.lvl { margin-bottom: 4px; }
  .op-table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); }
  html[data-lang="ro"] .op-table.stack td[data-ro-label]::before { content: attr(data-ro-label); }
  .hist > div { grid-template-columns: 92px minmax(0, 1fr) 40px; }
  .op-table.mini th, .op-table.mini td { padding: 6px 4px; font-size: .8rem; }
  .op-table.mini th { letter-spacing: .04em; }
  .op-table.mini td.lvl { min-width: 0; }
  .gem-table th.num, .gem-table td.num { padding-left: 2px; padding-right: 2px; }
}
/* ---------------------------------------------------------------- quests, NPCs and the quest guide (WIKI1 phase 3,
   mock-ups 01-05; only the colours of site.css and the pieces above) */
.npc-a, .q-a, .mon-a { font-weight: 600; text-decoration: none; }
.npc-a { color: var(--info); }
.npc-a:hover { color: #b9d3f7; }
.q-a { color: var(--gold-hi); }
.q-a:hover { text-decoration: underline; }
.mon-a { color: #f3b0a6; }
.mon-a:hover { color: #f8cfc7; }
.it-a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; text-decoration: none; vertical-align: middle; }
.it-a img, .it-a .item-ico { width: 22px; height: 22px; border-radius: 5px; }
a.it-a:hover { color: var(--gold-hi); }
.q-sub { color: var(--muted); font-size: .8rem; font-weight: 400; }
.game-text { font-style: italic; color: var(--text-2); }

/* money: Rune / Luna / Cron (1 Rune = 1,000 Luna, 1 Luna = 1,000 Cron, TClientType.h) */
.money { display: inline-flex; gap: 6px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.coin { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); }
.coin::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45); }
.coin.r::before { background: #e3c06a; }
.coin.l::before { background: #c9ced8; }
.coin.c::before { background: #c27b4a; }
.coin small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.exp-n { font-weight: 700; color: var(--ok); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

.kd { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; vertical-align: 1px; }
.kd.k0 { color: #f3b0a6; border: 1px solid rgba(239, 107, 91, .5); background: rgba(239, 107, 91, .12); }   /* KFLAG1: Valorian red */
.kd.k1 { color: #b9d3f7; border: 1px solid rgba(143, 184, 242, .5); background: rgba(143, 184, 242, .12); }   /* Derion blue */
.kd.kx { color: var(--text-2); border: 1px solid var(--gold-line); background: rgba(255, 255, 255, .04); }
.tag-story, .tag-dg, .tag-pick { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; vertical-align: 1px; text-transform: uppercase; }
.tag-story { color: var(--gold-hi); border: 1px solid var(--gold-lo); background: var(--gold-soft); }
.tag-dg { color: #f5d49a; border: 1px solid rgba(240, 180, 76, .5); background: rgba(240, 180, 76, .12); }
.tag-pick { color: #b8ecc9; border: 1px solid rgba(95, 211, 138, .45); background: rgba(95, 211, 138, .1); }

/* the quest guide */
.guide-bar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 16px; margin: 0 0 18px; }
.guide-bar .seg { margin: 0; }
.guide-bar .seg button b { font: 400 1rem/1.1 var(--display); letter-spacing: .04em; }
.ch-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.ch-bar li { margin: 0; }
.ch-bar a { display: flex; flex-direction: column; align-items: center; gap: 1px; height: 100%; padding: 7px 3px 8px; border-radius: 8px; text-decoration: none; color: var(--text-2);
  background: var(--glass-row); box-shadow: inset 0 0 0 1px var(--glass-row); text-align: center; }
.ch-bar a:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-line); }
.ch-bar .ch-n { font: 400 1.05rem/1.1 var(--display); color: var(--gold); }
.ch-bar .ch-lv { font-size: .76rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.ch-bar small { font-size: .66rem; color: var(--muted); }
.ch-bar a[aria-current="true"] { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-lo); color: var(--gold-hi); }
.ch-bar a[aria-current="true"] .ch-n { color: var(--gold-hi); }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.guide-grid > * { min-width: 0; }
.g-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 14px); }
.g-side .panel { padding: 16px; }
.g-side h2 { font-size: .98rem; letter-spacing: .1em; margin: 0 0 10px; }
.g-side .ib-rows { padding: 0; }
.g-main > * + * { margin-top: 14px; }
.ch-head h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: .06em; }
.ch-head .eyebrow, .dg-head .eyebrow { margin: 0 0 2px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dg-head .eyebrow { color: #f5d49a; }
.ch-head .stat-tiles { margin: 14px 0 0; }
.ch-steps { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 0; font-size: .86rem; }
.ch-steps a { text-decoration: none; }

details.story { padding: 0; }
details.story > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; }
details.story > summary::-webkit-details-marker { display: none; }
details.story > summary::after { content: "\25BE"; grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: .9rem; transition: transform .15s; }
details.story[open] > summary::after { transform: rotate(180deg); }
details.story > summary:hover h2 { color: var(--gold-hi); }
details.story h2 { margin: 0; font-size: 1.08rem; letter-spacing: .05em; text-transform: none; }
details.story .st-meta { grid-column: 1; margin: 0; color: var(--muted); font-size: .84rem; }
details.story .st-meta b { color: var(--text-2); font-weight: 600; }
details.story[open] > summary { border-bottom: 1px solid var(--gold-line); }
.q-cards { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: q; }
.q-card { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--glass-row); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); min-width: 0; counter-increment: q; }
.q-card.is-dg { box-shadow: inset 0 0 0 1px rgba(240, 180, 76, .35); }
.qc-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.qc-head h3 { margin: 1px 0; font: 700 .98rem/1.3 var(--sans); text-transform: none; letter-spacing: 0; }
.qc-head h3::before { content: counter(q) ". "; color: var(--muted); font-weight: 400; }
.qc-head .qc-tags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.qc-facts { margin: 9px 0 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 5px 10px; font-size: .86rem; }
.qc-facts dt { color: var(--muted); }
.qc-facts dd { margin: 0; color: var(--text-2); min-width: 0; }
.qc-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.qc-terms li { margin: 0; }
.qc-terms b { color: var(--text); }
.qc-rw { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.rw-icons { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.rw-icons img, .rw-icons .item-ico { width: 24px; height: 24px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--gold-line); }
.map-a { font-size: .8rem; white-space: nowrap; }

/* the card a link to an NPC, a quest, an item or a skill shows on hover (as the game's own pop-up); one for the page */
.hover-card { position: absolute; z-index: 60; width: 270px; max-width: calc(100vw - 20px); padding: 10px; border-radius: var(--radius); border: 1px solid var(--gold-lo);
  background: rgba(8, 10, 16, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); font-size: .82rem; line-height: 1.5; color: var(--text-2); pointer-events: none; }
.hover-card[hidden] { display: none; }
.hover-card .tip-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; margin: 0 0 8px; }
.hover-card .tip-head b { display: block; color: var(--gold-hi); font-size: .92rem; line-height: 1.3; }
.hover-card .tip-head span { color: var(--muted); }
.hover-card .tip-map { display: block; position: relative; height: 120px; overflow: hidden; border-radius: 6px; border: 1px solid var(--gold-line); background: rgba(0, 0, 0, .45); }
.hover-card .tip-map img { position: absolute; max-width: none; }
.hover-card .tip-map .pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--bad); background: rgba(239, 107, 91, .5); left: 50%; top: 50%; }
.hover-card p { margin: 6px 0 0; }
.hover-card .tip-lines { margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--gold-line); }
.hover-card .tip-lines p { margin: 2px 0 0; }
.hover-card .tip-good { color: var(--ok); }
.hover-card .tip-warn { color: var(--warn); }
.hover-card .item-ico, .hover-card .mon-ico { width: 34px; height: 34px; }

/* the NPC medallion (no NPC pictures on the site) */
.npc-ico { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(143, 184, 242, .55);
  background: radial-gradient(circle at 50% 35%, rgba(143, 184, 242, .18), transparent 70%), rgba(0, 0, 0, .45); color: var(--info); }
.npc-ico svg { width: 18px; height: 18px; }
.npc-ico.xl { width: 76px; height: 76px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 18px -6px rgba(143, 184, 242, .6); }
.npc-ico.xl svg { width: 36px; height: 36px; }
.npc-ico.shop { border-color: var(--gold-lo); color: var(--gold); background: radial-gradient(circle at 50% 35%, var(--gold-soft), transparent 70%), rgba(0, 0, 0, .45); }

/* the dungeon of a chapter */
.dg-head { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.dg-map { width: 128px; height: 128px; border-radius: 8px; border: 1px solid var(--gold-line); }
.dg-head h2 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: .05em; }
.dg-head p { margin: 0 0 6px; color: var(--text-2); font-size: .92rem; }
.dg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.dg-cols h3 { font: 700 .9rem/1.3 var(--sans); color: var(--gold-hi); margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; }
.chain li { position: relative; margin: 0; padding: 6px 0 8px 26px; font-size: .88rem; color: var(--text-2); }
.chain li::before { content: ""; position: absolute; left: 7px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold-lo); background: var(--bg); }
.chain li::after { content: ""; position: absolute; left: 12px; top: 24px; bottom: -6px; width: 1px; background: var(--gold-line); }
.chain li:last-child::after { display: none; }
.chain li.is-dg::before { border-color: #f0b44c; background: rgba(240, 180, 76, .4); }
.chain li .q-sub { display: block; }

/* the aside of the guide */
.mini-map { position: relative; height: 250px; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-line); background: rgba(0, 0, 0, .45); }
.mini-map img { position: absolute; max-width: none; }
.mini-map .pin { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1.5px solid #fff; background: var(--info); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.mini-map .pin.k0 { background: var(--bad); }   /* KFLAG1: Valorian red, Derion blue */
.mini-map .pin.hot { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: #f0b44c; }
.mm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; font-size: .76rem; color: var(--muted); }
.mm-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: var(--info); border: 1px solid #fff; }
.mm-legend i.k0 { background: var(--bad); }   /* KFLAG1 */
.mm-legend i.hot { background: #f0b44c; }
.path { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 6px; }
.path li { counter-increment: p; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: .86rem; color: var(--text-2); margin: 0; }
.path li::before { content: counter(p); font: 400 .9rem/1 var(--display); color: var(--gold); text-align: center; }
.path li small { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.path li a { color: var(--text); text-decoration: none; font-weight: 600; }
.path li a:hover { color: var(--gold-hi); }
.alt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; color: var(--text-2); }
.alt-list li { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--glass-row); }
.alt-list b { display: block; color: var(--text); }
.side-foot { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }

/* the quest and NPC pages */
.log-box { margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold-lo); background: rgba(255, 255, 255, .03); border-radius: 0 8px 8px 0; color: var(--text-2); font-style: italic; font-size: .92rem; }
.rw-block h3 { display: flex; gap: 8px; align-items: baseline; font: 700 .92rem/1.3 var(--sans); color: var(--gold-hi); margin: 14px 0 8px; text-transform: none; letter-spacing: 0; }
.rw-block h3 small { color: var(--muted); font-weight: 400; }
.rw-line { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .95rem; }
.map-pair { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; }
.map-pair.one { grid-template-columns: minmax(0, 1fr); }
.dg-snip { position: relative; border-radius: var(--radius); border: 1px solid var(--gold-line); background: rgba(0, 0, 0, .45); padding: 10px; text-align: center; }
.dg-snip .dg-box { position: relative; display: inline-block; width: 160px; height: 160px; }
.dg-snip .dg-box img { width: 160px; height: 160px; border-radius: 6px; }
.dg-snip .pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--bad); background: rgba(239, 107, 91, .5); }
.dg-snip p { margin: 8px 0 0; font-size: .8rem; color: var(--text-2); }
.map-snip .pin.is-turn { border-color: var(--info); background: rgba(143, 184, 242, .45); }
.map-snip .pin.is-near { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .25); }
.map-snip .pin-legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px; padding: 3px 10px; border-radius: 999px; background: var(--glass-2); font-size: .74rem; color: var(--text-2); }
.map-snip .pin-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; border: 2px solid var(--bad); vertical-align: -1px; }
.map-snip .pin-legend i.t { border-color: var(--info); }
.map-snip .pin-legend i.n { border-color: rgba(255, 255, 255, .7); }
.quest-list .q-name a { color: var(--text); text-decoration: none; }
.quest-list .q-name a:hover { color: var(--gold-hi); }
.quest-list .q-name .q-sub { display: block; }
.quest-list li.is-here { box-shadow: inset 0 0 0 1px var(--gold-lo); background: var(--gold-soft); }
.npc-near .m-main a { color: var(--info); }
.steps .st-v { color: var(--text-2); font-size: .92rem; }
.steps .st-v .qc-terms { gap: 5px; }
.steps h3 { font-size: 1rem; }
.q-table td { vertical-align: middle; }
.q-table .item-sub .kd { margin-left: 4px; }
.q-table td.giver a { color: var(--info); font-weight: 600; text-decoration: none; }
.q-table td.giver .q-sub { display: block; }
.q-table td.rw { white-space: nowrap; }
.q-table td.rw .exp-n { display: block; font-size: .85rem; }
.q-table td.rw .money { font-size: .82rem; }
.q-table .rw-icons { display: flex; margin-top: 3px; }
.q-table .rw-icons img, .q-table .rw-icons .item-ico { width: 22px; height: 22px; }
.list-foot-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }

@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .g-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .guide-bar { grid-template-columns: minmax(0, 1fr); }
  .ch-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78px; overflow-x: auto; padding-bottom: 4px; }
  .g-side { grid-template-columns: minmax(0, 1fr); }
  .dg-cols { grid-template-columns: minmax(0, 1fr); }
  .map-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .q-cards { padding: 12px; }
  .qc-facts { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .qc-facts dt { margin-top: 5px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
  .dg-head { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .dg-map { width: 72px; height: 72px; }
  details.story > summary { padding: 12px 14px; }
  .q-table .item-sub { white-space: normal; }
  .q-table th.num, .q-table td.num { width: 44px; padding-left: 4px; padding-right: 8px; }
}

/* ---------------------------------------------------------------- WIKI2 (decision 502, proposal A, docs\wiki2.md): the side
   menu of every wiki page (Tools\Website\layout\wikinav.html), the new home, the kingdom page (/wiki/kingdom?k=), races and
   classes (/wiki/races) and the NPC list (/wiki/npcs). Only the site's tokens and fonts; the kingdom colours are the ones of
   site.css .kingdom-0 / .kingdom-1. */
.wiki-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.wiki-main { container: wikimain / inline-size; min-width: 0; }
main > .wiki-shell:first-child { padding-top: 22px; }
.wiki-nav { position: sticky; top: calc(var(--header-h) + 14px); padding: 14px 12px; max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; overscroll-behavior: contain; }
.wiki-nav .search-box { display: block; min-width: 0; margin: 0 0 10px; }
.wiki-nav .search-box input[type="search"] { width: 100%; min-height: 38px; font-size: .86rem; }
.wiki-nav h2 { margin: 14px 8px 6px; font: 400 .7rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.wiki-nav ul { list-style: none; margin: 0; padding: 0; }
.wiki-nav li > a, .wiki-nav li > .is-soon { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.wiki-nav li > a:hover { background: var(--gold-soft); color: var(--gold-hi); }
.wiki-nav a[aria-current="page"] { background: var(--gold-soft); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
.wiki-nav li img { width: 22px; height: 22px; border-radius: 4px; flex: none; object-fit: cover; }
.wiki-nav li .badge { margin-left: auto; font-size: .54rem; padding: 0 6px; }
.wiki-nav .is-soon { opacity: .6; cursor: default; }
.wiki-nav .k-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wiki-nav .k-row a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 6px; font-size: .78rem; text-align: center; color: var(--text-2); text-decoration: none; border: 1px solid rgba(var(--k), .35); }
.wiki-nav .k-row a:hover { color: var(--gold-hi); border-color: rgba(var(--k), .8); }
.wiki-nav .k-row a img { width: 44px; height: 44px; }
.wiki-nav .k-row a[aria-current="page"] { border-color: rgb(var(--k)); box-shadow: 0 0 12px rgba(var(--k), .4) inset; background: none; }
.wiki-nav-btn { display: none; }
.wiki-nav .k0, .wk-k0 { --k: 224, 122, 98; }    /* Valorian: #e07a62, site.css .kingdom-0 (KFLAG1) */
.wiki-nav .k1, .wk-k1 { --k: 111, 166, 224; }   /* Derion: #6fa6e0, site.css .kingdom-1 (KFLAG1) */

/* shared parts of the new pages */
.wk-hero { text-align: center; z-index: 5; }   /* above the panels after it: the search results open over them */
.wk-hero .eyebrow { margin: 0 0 4px; font-family: var(--display); text-transform: uppercase; letter-spacing: .3em; font-size: .74rem; color: var(--muted); }
.wk-hero h1 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--gold-hi); letter-spacing: .1em; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); line-height: 1.1; }
.wk-hero .lead { margin: 8px auto 0; max-width: 44rem; color: var(--text-2); }
.wk-hero .wiki-search { margin-top: 14px; }
/* inside a blurred panel the results' own blur sees only the panel: the background of the site's dropdowns (site.css .dropdown-menu) */
.wk-hero .wiki-results { background: rgba(10, 15, 30, .97); }
.wk-crumbs { margin: 0 0 -8px; font-size: .82rem; color: var(--muted); }
.wk-crumbs a { color: var(--text-2); }
.wk-sub { margin: -6px 0 14px; color: var(--muted); font-size: .9rem; }
.wk-sub.after { margin: 8px 0 0; }
.wk-h3 { margin: 18px 0 10px; font: 400 .8rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.wk-h3.first { margin-top: 0; }
.wk-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: stretch; }
.wk-top .tt-card { min-height: 0; }
.wk-welcome p { color: var(--text-2); }

/* picture tiles: a picture of our own (art, an icon over a scene, the map) with the name over a dark gradient */
.wk-ptiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.wk-ptiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wk-pt { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--gold-line); background: #0b0e15; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.wk-pt:hover { border-color: var(--gold-lo); transform: translateY(-2px); color: var(--text); }
.wk-pt.is-soon { filter: grayscale(.6) brightness(.75); }
.wk-pt .art { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 34px; }
.wk-pt .art img.ico { width: 64px; height: 64px; border-radius: 10px; border: 1px solid rgb(var(--gold-rgb) / .35); background: rgba(0, 0, 0, .5); box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.wk-pt .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.wk-pt .scene.at-a { object-position: 30% 30%; }
.wk-pt .scene.at-b { object-position: 50% 40%; }
.wk-pt .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(180deg, rgba(6, 8, 13, 0), rgba(6, 8, 13, .92) 55%); }
.wk-pt .t-name { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-size: .9rem; line-height: 1.2; }
.wk-pt .t-sub { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.wk-pt .badge { position: absolute; top: 8px; right: 8px; font-size: .6rem; z-index: 2; }
.wk-heads { display: flex; align-items: flex-end; justify-content: center; }
.wk-heads img { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgb(var(--gold-rgb) / .45); background: #10141e; margin: 0 -10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.wk-heads img:nth-child(2) { width: 88px; height: 88px; z-index: 1; }
.wk-cls { display: grid; grid-template-columns: repeat(3, 40px); gap: 6px; }
.wk-cls img { width: 40px; height: 40px; }

/* battle mode tiles: MENU2's picture, our text, the next start from the timetable */
.wk-modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wk-mode { position: relative; display: block; aspect-ratio: 300 / 330; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--gold-line); color: var(--text); text-decoration: none; background: #0b0e15; }
.wk-mode:hover { border-color: var(--gold-lo); color: var(--text); }
.wk-mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.wk-mode .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 9px; background: linear-gradient(180deg, rgba(6, 8, 13, 0), rgba(6, 8, 13, .94) 50%); }
.wk-mode .t-name { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-size: .95rem; line-height: 1.15; }
.wk-mode .t-sub { display: block; margin-top: 3px; font-size: .74rem; color: var(--text-2); line-height: 1.3; }
.wk-mode .t-when { display: block; margin-top: 5px; font-size: .72rem; color: var(--muted); }
.wk-mode .t-when:empty { display: none; }
.wk-mode .t-when b { color: var(--gold-hi); font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-mode .badge { position: absolute; top: 8px; right: 8px; font-size: .58rem; }

/* the kingdom chooser: the two emblems of our client */
.wk-kings { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.wk-king { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid rgba(var(--k), .45); color: var(--text); text-decoration: none;
  background: radial-gradient(120% 140% at 0% 50%, rgba(var(--k), .22), rgba(var(--k), .04) 60%, rgba(6, 8, 13, .3)); transition: border-color .15s, transform .15s; }
.wk-king:hover { border-color: rgba(var(--k), .9); transform: translateY(-2px); color: var(--text); }
.wk-king img { width: 112px; height: 112px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)); }
.wk-king .k-name { display: block; font-family: var(--display); font-size: 1.6rem; letter-spacing: .06em; color: var(--gold-hi); line-height: 1.1; }
.wk-king .k-line { display: block; margin-top: 4px; color: var(--text-2); font-size: .88rem; line-height: 1.45; }
.wk-king .k-nums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wk-king .k-nums[hidden], .wk-kd-facts > span[hidden] { display: none; }
.wk-king .k-nums > span { border: 1px solid rgba(var(--k), .45); border-radius: 999px; padding: 1px 9px; font-size: .75rem; color: var(--text-2); }
.wk-king .k-nums b { color: rgb(var(--k)); }
.wk-king .k-go { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--k)); }

/* the kingdom page */
.wk-kd-hero { display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: center; border-color: rgba(var(--k), .5);
  background: radial-gradient(90% 160% at 0% 50%, rgba(var(--k), .26), rgba(var(--k), .05) 55%, var(--glass)); }
.wk-kd-hero > img { width: 150px; height: 150px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .7)); }
.wk-kd-hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); color: var(--gold-hi); letter-spacing: .05em; line-height: 1.1; }
.wk-kd-hero .eyebrow { margin: 0 0 4px; font-family: var(--display); text-transform: uppercase; letter-spacing: .3em; font-size: .74rem; color: var(--muted); }
.wk-kd-hero .lead { margin: 8px 0 0; color: var(--text-2); max-width: 44rem; }
.wk-kd-switch { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--muted); font-size: .74rem; text-decoration: none; }
.wk-kd-switch img { width: 64px; height: 64px; opacity: .8; filter: grayscale(.35); transition: opacity .15s, filter .15s; }
.wk-kd-switch:hover img { opacity: 1; filter: none; }
.wk-kd-switch span { color: var(--text-2); }
.wk-kd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.wk-kd-facts > span { border: 1px solid rgba(var(--k), .4); border-radius: 999px; padding: 2px 11px; font-size: .82rem; color: var(--text-2); background: rgba(6, 8, 13, .35); }
.wk-kd-facts b { color: var(--gold-hi); }

/* the story path: chapters I-X as badges on a line, filled up to the chosen one */
.wk-path { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 0; padding: 14px 0 6px; }
.wk-path::before, .wk-path .fill { content: ""; position: absolute; top: 38px; left: 5%; right: 5%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.wk-path .fill { right: auto; width: 0; background: linear-gradient(90deg, rgba(var(--k), .5), rgb(var(--k))); box-shadow: 0 0 10px rgba(var(--k), .6); }
.wk-ch { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: .72rem; text-align: center; }
.wk-ch .b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font: 400 1rem/1 var(--display); color: var(--muted); border: 2px solid rgba(255, 255, 255, .14); background: #0d1119; box-shadow: 0 4px 12px rgba(0, 0, 0, .55); }
.wk-ch:hover .b { border-color: rgba(var(--k), .9); }
.wk-ch.is-done .b { color: var(--gold-hi); border-color: rgba(var(--k), .7); background: radial-gradient(circle at 50% 35%, rgba(var(--k), .45), #0d1119 70%); }
.wk-ch[aria-current="step"] .b { width: 58px; height: 58px; margin-top: -4px; color: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / .16), 0 0 18px rgba(var(--k), .8); background: radial-gradient(circle at 50% 35%, rgb(var(--k)), #0d1119 80%); }
.wk-ch .lv { color: var(--text-2); font-variant-numeric: tabular-nums; }
.wk-ch .dg { color: var(--gold-lo); }
.wk-chapter { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.wk-chapter h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 1.25rem; letter-spacing: .04em; }
.wk-chapter p { margin: 0 0 10px; color: var(--text-2); }
.wk-chapter .btn-row { margin-top: 14px; }
.wk-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.wk-stat div { padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--glass-row); }
.wk-stat b { display: block; font: 400 1.2rem/1.2 var(--display); color: var(--gold-hi); }
.wk-stat small { color: var(--muted); font-size: .74rem; }
.wk-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wk-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 6px; background: var(--glass-row); font-size: .86rem; }
.wk-lines li span { color: var(--muted); white-space: nowrap; }
.wk-map { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-line); background: #0b0e15; aspect-ratio: 308 / 360; }
.wk-map-in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.wk-map img { display: block; width: 100%; height: 100%; filter: brightness(.8); }
.wk-map i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgb(var(--k)); box-shadow: 0 0 5px rgba(var(--k), .9); }
.wk-map i.hot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--gold-hi); box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 10px var(--gold); }

/* races and classes */
.wk-races { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-race { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass-row); }
.wk-race .pair { display: flex; justify-content: center; gap: 10px; }
.wk-race .pair figure { margin: 0; display: grid; justify-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.wk-race .pair img { width: 104px; height: 104px; border-radius: 50%; border: 2px solid rgb(var(--gold-rgb) / .4); background: #10141e; box-shadow: 0 8px 18px rgba(0, 0, 0, .55); }
.wk-race h3 { margin: 4px 0 0; text-align: center; font-family: var(--display); font-weight: 400; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 1.15rem; }
.wk-race p { margin: 0; color: var(--text-2); font-size: .88rem; text-align: center; }
.wk-bars { display: grid; gap: 4px; margin-top: 4px; }
.wk-bar { display: grid; grid-template-columns: 34px 1fr 22px; gap: 8px; align-items: center; font-size: .74rem; color: var(--muted); }
.wk-bar .t { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.wk-bar .t i { display: block; width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.wk-bar b { color: var(--text); text-align: right; font-weight: 600; }
.wk-classes { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-class { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--glass-row); }
.wk-class > img { width: 64px; height: 64px; }
.wk-class h3 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.wk-class p { margin: 2px 0 6px; color: var(--text-2); font-size: .84rem; line-height: 1.45; }
.wk-class .links { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-class .links a, .wk-class .links .is-soon { font-size: .74rem; border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 9px; text-decoration: none; color: var(--text-2); }
.wk-class .links .is-soon { opacity: .6; }
.wk-class .wk-cadd { margin: 0 0 8px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.wk-class .wk-cadd b { color: var(--gold-hi); }
.wk-tabs { display: flex; gap: 4px; margin: 0 0 12px; flex-wrap: wrap; align-items: center; }
.wk-tabs button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold-line); font: inherit; font-size: .82rem; color: var(--text-2); background: none; cursor: pointer; }
.wk-tabs button:hover { color: var(--gold-hi); }
.wk-tabs button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-soft); }
.wk-tabs .lbl { margin: 0 6px 0 0; font-size: .78rem; color: var(--muted); }
.wk-tabs .lbl.next { margin-left: 12px; }
.wk-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.wk-table th, .wk-table td { padding: 7px 10px; border-bottom: 1px solid var(--gold-line); text-align: center; font-variant-numeric: tabular-nums; }
.wk-table th:first-child, .wk-table td:first-child { text-align: left; }
.wk-table th { font: 400 .74rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wk-table tbody th { font: inherit; letter-spacing: normal; text-transform: none; color: var(--text); font-weight: 400; }
.wk-table td b { color: var(--gold-hi); }
.wk-table thead abbr.s { display: none; text-decoration: none; cursor: help; }
.wk-table .cl { display: inline-flex; align-items: center; gap: 8px; }
.wk-table .cl img { width: 24px; height: 24px; }
.wk-formula { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }

/* the NPC list */
.npc-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.npc-cell .npc-ico { width: 30px; height: 30px; }
.npc-cell .npc-ico svg { width: 15px; height: 15px; }

/* the side menu folds into a button on a narrow screen */
@media (max-width: 1100px) {
  .wiki-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  main > .wiki-shell:first-child { padding-top: 12px; }
  .wiki-nav { display: none; position: static; max-height: none; }
  .wiki-nav.is-open, .no-js .wiki-nav { display: block; }
  .wiki-nav-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 14px; border-radius: var(--radius); cursor: pointer;
    border: 1px solid var(--gold-line); background: var(--glass-2); color: var(--gold); font: 400 .86rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
  .no-js .wiki-nav-btn { display: none; }
  .wiki-nav-btn .bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .wiki-nav-btn[aria-expanded="true"] .bars { box-shadow: none; }
}
@media (max-width: 760px) {
  .wk-kings { grid-template-columns: 1fr; }
  .wk-king { grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; }
  .wk-king img { width: 80px; height: 80px; }
  .wk-king .k-name { font-size: 1.35rem; }
  .wk-ptiles, .wk-ptiles.five { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wk-modes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wk-kd-hero { grid-template-columns: 84px 1fr; gap: 14px; }
  .wk-kd-hero > img { width: 84px; height: 84px; }
  .wk-kd-switch { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; gap: 8px; align-items: center; }
  .wk-kd-switch img { width: 36px; height: 36px; }
  .wk-path { grid-template-columns: repeat(5, 1fr); row-gap: 12px; }
  .wk-path::before, .wk-path .fill { display: none; }
  .wk-ch .b { width: 42px; height: 42px; }
  .wk-ch[aria-current="step"] .b { width: 48px; height: 48px; margin-top: -3px; }
  .wk-race .pair img { width: 92px; height: 92px; }
  .wk-table { font-size: .78rem; }
  .wk-table th, .wk-table td { padding: 6px 4px; }
  .wk-table th { letter-spacing: .04em; }
}

/* beside the side menu the content column is narrower than the window: there the wiki's layouts follow the column's
   width (the same steps as the @media rules above, about 60 px less for the gutters) */
@container wikimain (max-width: 1040px) {
  .three-col { grid-template-columns: 200px minmax(0, 1fr); }
  .three-col > .my-list { grid-column: 1 / -1; position: static; max-height: none; }
  .q-cards { grid-template-columns: minmax(0, 1fr); }
}
@container wikimain (max-width: 900px) {
  .wiki-home, .wiki-page, .guide-grid, .wk-top { grid-template-columns: minmax(0, 1fr); }
  .infobox { position: static; }
  .g-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-rows { grid-template-columns: minmax(0, 1fr); }
  .hero-face { display: flex; justify-content: center; margin: 0 0 16px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .map-snip { height: 240px; }
  .wk-classes { grid-template-columns: 1fr 1fr; }
}
@container wikimain (max-width: 800px) {
  .two-col, .three-col { grid-template-columns: minmax(0, 1fr); }
  .cat-nav { display: none; }
  .cat-pick { display: grid; }
  .my-list, .infobox.mount-info { position: static; }
  .op-facts { grid-template-columns: minmax(0, 1fr); }
  .guide-bar { grid-template-columns: minmax(0, 1fr); }
  .ch-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78px; overflow-x: auto; padding-bottom: 4px; }
  .g-side { grid-template-columns: minmax(0, 1fr); }
  .dg-cols, .map-pair { grid-template-columns: minmax(0, 1fr); }
  .wk-chapter { grid-template-columns: minmax(0, 1fr); }
  .wk-races { grid-template-columns: minmax(0, 1fr); }
}
@container wikimain (max-width: 620px) {
  .wk-classes { grid-template-columns: minmax(0, 1fr); }
  .wk-chapter .btn { white-space: normal; text-align: center; }   /* the long button text wraps on a phone */
  .npc-table .item-sub { white-space: normal; max-width: none; }   /* the NPC titles wrap, so the quests column stays in view */
  .wk-table thead .l { display: none; }   /* the short names (STR, SKL ...) where the six full names do not fit */
  .wk-table thead abbr.s { display: inline; }
}
/* 4ALL ACH1-W1: the achievements of the game (/wiki/achievements, wiki-achievements.js; the site's colours only) */
.ach-top .ach-lead { margin: 0 0 12px; color: var(--text-2); }
.ach-top .ach-search { max-width: 34rem; }
.ach-top .ach-search input[type="search"] { width: 100%; }
.ach-chips { justify-content: flex-start; }
.ach-chip { font: inherit; color: var(--text-2); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 11px; background: rgba(0, 0, 0, .25); cursor: pointer; }
.ach-chip:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.ach-chip.is-on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-hi); }
.ach-chip b { color: var(--gold); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.ach-chain { margin: 0 0 14px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass); overflow: hidden; }
.ach-chain-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-bottom: 1px solid var(--gold-line); background: rgba(236, 209, 154, .04); }
.ach-chain-head h3 { margin: 0; font: 400 1.02rem/1.3 var(--display); letter-spacing: .06em; color: var(--gold-hi); }
.ach-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ach-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ach-table th { padding: 6px 12px; text-align: left; font: 400 .72rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ach-table td { padding: 8px 12px; border-top: 1px solid rgba(236, 209, 154, .07); vertical-align: top; }
.ach-table tbody tr:nth-child(even) td { background: var(--glass-row); }
.ach-table .ach-tier { width: 4.5em; }
.ach-roman { display: inline-block; min-width: 2.4em; padding: 1px 6px; border: 1px solid var(--gold-line); border-radius: 999px; font: 400 .78rem/1.5 var(--display); color: var(--gold); text-align: center; }
.ach-name b { display: block; font-weight: 700; color: var(--text); }
.ach-cond { display: block; color: var(--muted); font-size: .86rem; }
.ach-reward { width: 30%; }
.ach-rw { display: block; color: var(--text-2); }
.ach-rw small { margin-right: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ach-rw-title b { font-weight: 600; color: var(--gold); }
.ach-table .ach-pctc { width: 11em; }
.ach-pct { display: flex; align-items: center; gap: 8px; }
.ach-pct-bar { flex: 1 1 auto; height: 6px; min-width: 40px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ach-pct-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.ach-pct-num { min-width: 3.6em; text-align: right; color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; }
@container wikimain (max-width: 620px) {
  .ach-table thead { display: none; }
  .ach-table, .ach-table tbody, .ach-table tr, .ach-table td { display: block; width: auto; }
  .ach-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border-top: 1px solid rgba(236, 209, 154, .07); }
  .ach-table td { padding: 0; border: 0; background: none !important; }
  .ach-table td.ach-tier { grid-row: 1 / span 3; width: auto; }
  .ach-table td.ach-reward, .ach-table td.ach-pctc { width: auto; }
  .ach-table tbody tr:nth-child(even) { background: var(--glass-row); }
}
