/* ============================================================
   ROYALTOMB — guide.css (FEATURE: The NeoGlobal Guidebook)
   Shelf under the status strip (parts/explore-row.php) and the
   Guidebook panel (parts/panels/guidebook.php), plus the site
   polish at the end. Built on the
   main.css tokens, so dark and light themes both work.
   ============================================================ */

@keyframes gb-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gb-page { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes gb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(85, 217, 138, .55); } 50% { box-shadow: 0 0 0 5px rgba(85, 217, 138, 0); } }

/* ---------------- shelf ---------------- */
.gb-shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: min(100%, 1232px);
  margin: 0 auto clamp(10px, 2vh, 22px);
}
.gb-tome {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 13px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)), var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .45s;
}
.gb-tome::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 195, 137, .9), transparent);
  opacity: .5;
  transition: opacity .35s, left .45s, right .45s;
}
.gb-tome::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(200, 164, 92, .16), transparent 55%);
  opacity: 0;
  transition: opacity .45s;
}
.gb-tome .gb-num {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--gold-soft);
  border: 1px solid rgba(200, 164, 92, .45);
  background: radial-gradient(circle at 50% 35%, rgba(200, 164, 92, .2), rgba(200, 164, 92, .03) 70%);
  box-shadow: inset 0 0 12px rgba(200, 164, 92, .12);
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.gb-tome b {
  align-self: end;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gb-tome small {
  align-self: start;
  margin-top: 3px;
  font-size: .72rem;
  line-height: 1.35;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gb-tome small.live { color: var(--gold-soft); }
.gb-tome small .gb-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--success);
  vertical-align: 1px;
  animation: gb-pulse 1.8s ease-in-out infinite;
}
.gb-tome .gb-ico {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 66px;
  height: 66px;
  z-index: -1;
  color: var(--gold);
  opacity: .12;
  pointer-events: none;
  transition: opacity .45s, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.gb-tome .gb-ico svg,
.gb-sigil svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gb-tome:hover,
.gb-tome:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(223, 195, 137, .6);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .5), 0 0 30px rgba(200, 164, 92, .16);
  outline: none;
}
.gb-tome:hover::before, .gb-tome:focus-visible::before { opacity: 1; left: 6%; right: 6%; }
.gb-tome:hover::after, .gb-tome:focus-visible::after { opacity: 1; }
.gb-tome:hover .gb-ico, .gb-tome:focus-visible .gb-ico { opacity: .3; transform: translate(-5px, -5px) rotate(-6deg) scale(1.08); }
.gb-tome:hover .gb-num, .gb-tome:focus-visible .gb-num {
  color: #fff3d4;
  border-color: var(--gold);
  box-shadow: inset 0 0 14px rgba(200, 164, 92, .28), 0 0 16px rgba(200, 164, 92, .32);
}
:root[data-theme="light"] .gb-tome { box-shadow: 0 10px 30px rgba(80, 60, 20, .1); }
:root[data-theme="light"] .gb-tome:hover { box-shadow: 0 18px 40px rgba(80, 60, 20, .16), 0 0 26px rgba(200, 164, 92, .18); }
:root[data-theme="light"] .gb-tome .gb-num { color: #8a6a28; }
:root[data-theme="light"] .gb-tome:hover .gb-num { color: #5e4614; }
:root[data-theme="light"] .gb-tome small.live { color: #8a6a28; }

@media (prefers-reduced-motion: no-preference) {
  .gb-tome { animation: gb-up .9s cubic-bezier(.2, .8, .2, 1) backwards; }
  .gb-tome:nth-child(1) { animation-delay: .6s; }
  .gb-tome:nth-child(2) { animation-delay: .66s; }
  .gb-tome:nth-child(3) { animation-delay: .72s; }
  .gb-tome:nth-child(4) { animation-delay: .78s; }
  .gb-tome:nth-child(5) { animation-delay: .84s; }
  .gb-tome:nth-child(6) { animation-delay: .9s; }
}

/* narrower desktops: tighter tiles, then two rows of three */
@media (max-width: 1360px) {
  .gb-shelf { gap: 10px; }
  .gb-tome { padding: 12px 13px 11px; column-gap: 10px; }
  .gb-tome .gb-num { width: 34px; height: 34px; font-size: .74rem; }
  .gb-tome b { font-size: .74rem; letter-spacing: .12em; }
}
@media (max-width: 1120px) {
  .gb-shelf { grid-template-columns: repeat(3, 1fr); }
  .gb-tome { min-height: 64px; }
}

/* short desktop screens: keep the shelf, drop the divider and the second line */
@media (max-height: 800px) and (min-width: 821px) {
  .gb-title { display: none; }
  .status { margin-bottom: 12px; }
  .gb-tome { min-height: 0; padding: 10px 13px; grid-template-rows: auto; }
  .gb-tome .gb-num { grid-row: auto; width: 30px; height: 30px; font-size: .7rem; }
  .gb-tome b { align-self: center; }
  .gb-tome small { display: none; }
}
@media (max-height: 700px) and (min-width: 821px) {
  .gb-shelf { display: none; }
  .status { margin-bottom: 24px; }
}

/* phones and tablets (the page scrolls there) */
@media (max-width: 820px) {
  .gb-shelf { grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; margin-bottom: 26px; }
  .gb-tome { min-height: 70px; padding: 12px; column-gap: 10px; }
  .gb-tome .gb-num { width: 32px; height: 32px; font-size: .72rem; }
  .gb-tome b { font-size: .72rem; letter-spacing: .1em; }
}

/* ---------------- the book ---------------- */
.panel[data-panel="guidebook"] .gb-book { width: min(1080px, 100%); height: min(790px, 100%); }
.gb-book .p-head { padding-top: 16px; padding-bottom: 13px; }
.gb-folio {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--text-muted);
  white-space: nowrap;
}
.gb-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 232px 1fr;
}

/* chapter index */
.gb-index {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(200, 164, 92, .06), transparent 65%);
  overflow-y: auto;
}
.gb-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.gb-tab i {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--border);
  transition: background .25s, color .25s, border-color .25s;
}
.gb-tab > span { display: flex; flex-direction: column; min-width: 0; }
.gb-tab b {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gb-tab small {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb-tab:hover { background: var(--surface-2); }
.gb-tab:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.gb-tab.on {
  background: linear-gradient(90deg, rgba(200, 164, 92, .17), rgba(200, 164, 92, .03));
  border-color: rgba(200, 164, 92, .3);
}
.gb-tab.on::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(200, 164, 92, .8);
}
.gb-tab.on i {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 60%, #94732f);
  border-color: transparent;
  color: #241a06;
}

/* pages */
.gb-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gb-pages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 34px 30px;
  font-size: .92rem;
  line-height: 1.65;
  overscroll-behavior: contain;
}
.gb-chapter[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .gb-chapter.on { animation: gb-page .4s cubic-bezier(.2, .8, .2, 1); }
}
.gb-turn {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 22px;
  border-top: 1px solid var(--border-soft);
}
.gb-turn button {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 9px 15px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.gb-turn button:hover { color: var(--gold); border-color: var(--gold); background: rgba(200, 164, 92, .06); }
.gb-turn button[disabled] { visibility: hidden; }

/* chapter head */
.gb-ch-head {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}
.gb-ch-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.gb-ch-head::after {
  content: attr(data-num);
  position: absolute;
  right: 0;
  top: -18px;
  font-family: var(--font-head);
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: .08;
  pointer-events: none;
}
.gb-kicker {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.gb-ch-head h4 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  margin: 6px 0 10px;
}
:root[data-theme="dark"] .gb-ch-head h4 {
  background: linear-gradient(180deg, #fffdf6 0%, #f2e7cf 55%, #cbb588 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.info-copy p.gb-lead { font-size: .95rem; line-height: 1.8; max-width: 660px; }
.info-copy p.gb-lead::first-letter {
  float: left;
  font-family: var(--font-head);
  font-size: 3.2em;
  line-height: .86;
  padding: 5px 9px 0 0;
  color: var(--gold);
}
.gb-pages .dash-title { margin-top: 26px; }
.gb-pages .cta { margin-top: 24px; justify-content: flex-start; }
.gb-pages .dash-details.gb-list { grid-template-columns: 1fr; gap: 0; padding: 4px 16px; }
.gb-pages .dash-details.gb-list .row { padding: 10px 0; border-bottom: 1px solid var(--border-soft); align-items: baseline; }
.gb-pages .dash-details.gb-list .row:last-child { border-bottom: 0; }
.gb-pages .dash-details.gb-list .v { text-align: right; }
.gb-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(200, 164, 92, .07);
}

/* I. pillars */
.gb-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gb-pillars > div {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  overflow: hidden;
}
.gb-pillars > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gb-pillars b {
  display: block;
  font-family: var(--font-head);
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
:root[data-theme="light"] .gb-pillars b { color: #8a6a28; }
.gb-pillars span { display: block; font-size: .82rem; line-height: 1.55; color: var(--text-muted); }

/* II. classes */
.gb-classes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gb-class {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  transition: border-color .2s, transform .2s;
}
.gb-class:hover { border-color: var(--border); transform: translateY(-2px); }
.gb-sigil {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 12px;
  color: var(--gold);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 30%, rgba(200, 164, 92, .22), transparent 70%);
}
.gb-sigil svg { stroke-width: 1.5; }
.gb-class b { font-family: var(--font-head); font-size: .98rem; letter-spacing: .08em; }
.info-copy .gb-class p { font-size: .84rem; line-height: 1.65; margin: 4px 0 9px; }
.gb-paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.gb-paths li { position: relative; padding-left: 15px; font-size: .74rem; line-height: 1.5; color: var(--text-muted); }
.gb-paths li::before { content: "\2726"; position: absolute; left: 0; top: 1px; font-size: .6rem; color: var(--gold); }
.gb-paths em { font-style: normal; font-weight: 600; color: var(--gold-soft); }
:root[data-theme="light"] .gb-paths em { color: #8a6a28; }

/* III. honor ranks */
.gb-ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 12px; }
.gb-ranks > div {
  text-align: center;
  padding: 12px 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.gb-ranks b { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; color: var(--gold-soft); }
.gb-ranks b::before { content: "Rank "; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); vertical-align: middle; margin-right: 4px; }
.gb-ranks span { font-size: .76rem; color: var(--text-muted); }
.gb-ranks .top { border-color: var(--gold); background: radial-gradient(120% 120% at 50% 0%, rgba(200, 164, 92, .2), transparent 70%), var(--surface-2); }
.gb-ranks .top span { color: var(--gold-soft); font-weight: 600; }
:root[data-theme="light"] .gb-ranks b, :root[data-theme="light"] .gb-ranks .top span { color: #8a6a28; }

/* IV. bestiary */
.gb-beasts { display: grid; gap: 10px; }
.gb-beast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 16px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--gold);
  background: var(--surface-2);
  transition: border-color .2s, background .2s;
}
.gb-beast:hover { border-color: var(--border); border-left-color: var(--gold-soft); }
.gb-beast > b { font-family: var(--font-head); font-size: .95rem; letter-spacing: .06em; }
.gb-when {
  justify-self: end;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #241a06;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  border-radius: 20px;
  padding: 4px 11px;
}
.info-copy .gb-beast p { grid-column: 1 / -1; margin: 0; font-size: .86rem; line-height: 1.7; }

/* V. members per level */
.gb-levels {
  margin: 14px 0 4px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.gb-levels > div { display: grid; grid-template-columns: 92px repeat(10, 1fr); }
.gb-levels > div + div { border-top: 1px solid var(--border-soft); }
.gb-levels span { padding: 8px 4px; text-align: center; font-size: .82rem; }
.gb-levels span:first-child {
  text-align: left;
  padding-left: 14px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.gb-levels .h { background: var(--surface-2); color: var(--text-muted); }
.gb-levels .h span:not(:first-child) { font-family: var(--font-head); font-weight: 700; }

/* VI. this week */
.gb-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(120% 160% at 0% 0%, rgba(200, 164, 92, .2), transparent 60%), var(--surface-2);
}
.gb-next .n { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; margin: 4px 0 2px; line-height: 1.25; }
.gb-next .w { font-size: .8rem; color: var(--text-muted); }
.gb-next.live { border-color: var(--success); background: radial-gradient(120% 160% at 0% 0%, rgba(85, 217, 138, .16), transparent 60%), var(--surface-2); }
.gb-next.live .gb-kicker { color: var(--success); }
.gb-count { display: flex; gap: 8px; }
.gb-count span {
  min-width: 58px;
  padding: 9px 6px 7px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--card);
}
.gb-count b { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gold-soft); }
.gb-count small { font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.gb-next.live .gb-count { display: none; }
:root[data-theme="light"] .gb-count b { color: #8a6a28; }

.gb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gb-day {
  min-height: 132px;
  padding: 10px 7px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.gb-day h6 {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gb-day.today { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(200, 164, 92, .3), 0 0 22px rgba(200, 164, 92, .14); }
.gb-day.today h6 { color: var(--gold); }
.gb-day.today h6::after { content: " \00b7  Today"; letter-spacing: .1em; }
.gb-ev {
  display: block;
  margin-bottom: 6px;
  padding: 6px 7px;
  border-radius: 7px;
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--gold);
  background: var(--card);
  font-size: .72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gb-ev time { display: block; font-weight: 700; font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--gold-soft); }
.gb-ev.boss { border-left-color: #d9734e; }
.gb-ev.boss time { color: #e8906f; }
.gb-ev .loc { display: block; margin-top: 2px; font-size: .64rem; color: var(--text-muted); }
.gb-ev.past { opacity: .42; }
.gb-ev.next { border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 164, 92, .25); }
.gb-ev.live { border-color: var(--success); box-shadow: 0 0 14px rgba(85, 217, 138, .28); }
.gb-ev.live time::after { content: " \00b7  LIVE"; color: var(--success); }
:root[data-theme="light"] .gb-ev time { color: #8a6a28; }
:root[data-theme="light"] .gb-ev.boss time { color: #b04a26; }
.gb-daily {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(200, 164, 92, .05);
}
.info-copy .gb-daily p { margin-top: 4px; font-size: .86rem; }
.gb-daily .loc { display: block; font-size: .76rem; color: var(--text-muted); }

/* ---------------- book on smaller screens ---------------- */
@media (max-width: 1020px) and (min-width: 821px) {
  .gb-body { grid-template-columns: 72px 1fr; }
  .gb-tab { justify-content: center; padding: 10px 0; }
  .gb-tab > span { display: none; }
  .gb-tab.on::before { left: -12px; }
  .gb-pages { padding: 22px 24px 26px; }
}
@media (max-width: 820px) {
  .gb-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gb-index {
    flex-direction: row;
    gap: 6px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .gb-index::-webkit-scrollbar { display: none; }
  .gb-tab { flex: 0 0 auto; width: auto; gap: 8px; padding: 7px 12px 7px 8px; }
  .gb-tab i { flex-basis: 26px; height: 26px; font-size: .64rem; }
  .gb-tab b { font-size: .7rem; }
  .gb-tab small { display: none; }
  .gb-tab.on::before { left: 22%; right: 22%; top: auto; bottom: -11px; width: auto; height: 2px; }
  .gb-pages { padding: 20px 18px 24px; }
  .gb-turn { padding: 10px 14px; }
  .gb-ch-head h4 { font-size: 1.45rem; }
  .gb-ch-head::after { font-size: 4.6rem; top: -8px; }
  .gb-pillars, .gb-classes { grid-template-columns: 1fr; }
  .gb-ranks { grid-template-columns: repeat(2, 1fr); }
  .gb-levels > div { grid-template-columns: 70px repeat(10, 1fr); }
  .gb-levels span { padding: 7px 1px; font-size: .72rem; }
  .gb-levels span:first-child { padding-left: 8px; font-size: .58rem; letter-spacing: .08em; }
  .gb-next { grid-template-columns: 1fr; }
  .gb-count span { flex: 1; min-width: 0; }
  .gb-week { grid-template-columns: 1fr; }
  .gb-day { min-height: 0; display: grid; grid-template-columns: 62px 1fr; gap: 0 10px; align-items: start; padding: 10px 10px 4px; }
  .gb-day h6 { text-align: left; margin-top: 6px; }
  .gb-day.today h6::after { content: ""; }
  .gb-day .gb-empty { margin: 6px 0 8px; }
  .gb-pages .dash-details.gb-list .row { flex-direction: column; gap: 2px; }
  .gb-pages .dash-details.gb-list .v { text-align: left; }
}
.gb-day .gb-empty { display: block; text-align: center; font-size: .7rem; color: var(--text-muted); opacity: .6; margin-top: 18px; }

/* ============================================================
   Site polish that rides on this file (same tokens):
   hero beta countdown (home.php + launch.js), download panel,
   closed shop.
   ============================================================ */

/* ---------------- hero: beta countdown ---------------- */
.launch { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 26px; }
.launch[hidden] { display: none; }
.launch-k {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .85);
}
.launch-row { display: flex; gap: 10px; }
.launch-row[hidden] { display: none; }
.launch-row span {
  min-width: 76px;
  padding: 10px 8px 8px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(200, 164, 92, .34);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), rgba(12, 11, 16, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.launch-row b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6dc 0%, #e2c27e 60%, #b08d45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.launch-row small {
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .62);
}
.launch-when {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}
.launch-local { margin-top: -4px; font-size: .7rem; color: rgba(239, 234, 224, .6); text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }
.launch-local[hidden] { display: none; }
.launch.live .launch-k { color: var(--success); font-size: .8rem; }
.launch.live .launch-k::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--success);
  vertical-align: 1px;
  animation: gb-pulse 1.8s ease-in-out infinite;
}
.panel[data-panel="home"] .launch + .cta { margin-top: 24px; }
:root[data-theme="light"] .launch-row span { background: rgba(255, 253, 248, .78); border-color: var(--border); box-shadow: 0 10px 26px rgba(80, 60, 20, .12); }
:root[data-theme="light"] .launch-row b { background: linear-gradient(180deg, #9a7a38, #5e4614); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .launch-row small,
:root[data-theme="light"] .launch-when,
:root[data-theme="light"] .launch-local { color: var(--text-muted); text-shadow: none; }
:root[data-theme="light"] .launch-k { color: #8a6a28; text-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .panel.show[data-panel="home"] > .launch { animation: gb-up .9s cubic-bezier(.2, .8, .2, 1) .32s backwards; }
}
/* shorter desktop screens: the countdown folds into one line, the empty hero lines go */
@media (max-height: 1000px) and (min-width: 821px) {
  .panel[data-panel="home"] > br { display: none; }
  .launch { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; }
  .launch-row { gap: 12px; }
  .launch-row span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .launch-row b { display: inline; font-size: 1.15rem; }
  .launch-when, .launch-local { display: none; }
  .panel[data-panel="home"] .launch + .cta { margin-top: 16px; }
}
@media (max-width: 520px) {
  .launch-row { gap: 6px; }
  .launch-row span { min-width: 66px; padding: 8px 4px 6px; }
  .launch-row b { font-size: 1.55rem; }
}

/* ---------------- download panel ---------------- */
.dl-hero {
  position: relative;
  text-align: center;
  padding: 22px 20px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% 0%, rgba(200, 164, 92, .18), transparent 62%), var(--surface-2);
  overflow: hidden;
}
.dl-hero b { display: block; margin: 6px 0 6px; font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .05em; }
.dl-hero p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.dl-hero p b { display: inline; font-family: var(--font-body); font-size: inherit; letter-spacing: 0; color: var(--text); }
.dl-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.dl-steps li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.dl-steps i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 35%, rgba(200, 164, 92, .2), transparent 70%);
}
.dl-steps b { display: block; font-family: var(--font-head); font-size: .9rem; letter-spacing: .06em; }
.dl-steps span { display: block; font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.dl-steps .soon {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
.dl-req { margin-top: 20px; }
.dl-req .gb-kicker { margin-bottom: 8px; }
.dl-req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl-req-grid div {
  padding: 12px 10px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.dl-req-grid small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.dl-req-grid b { display: block; margin-top: 3px; font-family: var(--font-head); font-size: .92rem; letter-spacing: .04em; }
@media (max-width: 560px) {
  .dl-steps li { grid-template-columns: 32px 1fr; }
  .dl-steps li > .btn, .dl-steps li > .soon { grid-column: 2; justify-self: start; }
  .dl-req-grid { grid-template-columns: 1fr; }
}

/* ---------------- shop while donations are closed ---------------- */
.shop-closed {
  text-align: center;
  padding: 30px 22px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% 0%, rgba(200, 164, 92, .16), transparent 62%), var(--surface-2);
}
.shop-closed .sc-seal { display: block; font-size: 1rem; color: var(--gold); text-shadow: 0 0 12px rgba(200, 164, 92, .9); }
.shop-closed b { display: block; margin: 10px 0 8px; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .06em; }
.shop-closed p { max-width: 460px; margin: 0 auto; font-size: .9rem; line-height: 1.7; color: var(--text-muted); }
.shop-closed .cta { margin-top: 20px; }

/* ---------------- status strip: server not open yet ---------------- */
.status .v.soon { color: var(--gold-soft); }
.status .v.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(200, 164, 92, .85);
}
:root[data-theme="light"] .status .v.soon { color: #8a6a28; }

/* ---------------- contact ---------------- */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.6;
  font-family: var(--font-body);
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}
.field textarea:focus { border-color: var(--gold); }
:root[data-theme="dark"] .field textarea { color-scheme: dark; }
.ct-actions { margin-top: 14px; justify-content: flex-start; }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; } }

/* ---------------- droplist (parts/panels/droplist.php + droplist.js) ---------------- */
.panel[data-panel="droplist"] .dx-book { width: min(max(1200px, 72vw), 100%); height: min(max(820px, 72vh), 100%); }   /* grows with big screens */
.dx-head { gap: 12px; }
.dx-head h3 { white-space: nowrap; }
.dx-back[hidden] { display: none; }
.dx-search { position: relative; flex: 0 1 380px; min-width: 0; }
.dx-sicon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.dx-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .86rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.dx-search input::placeholder { color: var(--text-muted); opacity: .8; }
.dx-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 92, .12); }
:root[data-theme="dark"] .dx-search input { color-scheme: dark; }
.dx-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max(100%, 380px);
  max-height: min(470px, 62vh);
  overflow-y: auto;
  z-index: 30;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 17, 23, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] .dx-results { background: rgba(253, 251, 246, .98); box-shadow: 0 20px 50px rgba(80, 60, 20, .2); }
.dx-results[hidden] { display: none; }
.dx-rh { display: block; padding: 9px 10px 4px; font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.dx-rh i { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--text-muted); }
.dx-r {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
}
.dx-r:hover, .dx-r.on { background: var(--surface-2); }
.dx-r.on { box-shadow: inset 2px 0 0 var(--gold); }
.dx-rt { min-width: 0; }
.dx-rt b { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-rt small { display: block; font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-rt mark { background: none; color: var(--gold-soft); }
:root[data-theme="light"] .dx-rt mark { color: #8a6a28; }
.dx-r .dx-ic { flex-basis: 34px; width: 34px; height: 34px; }
.dx-none { padding: 14px 12px; font-size: .84rem; color: var(--text-muted); }

.dx-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px 1fr; }
.dx-atlas {
  overflow-y: auto;
  padding: 10px 10px 18px;
  border-right: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(200, 164, 92, .06), transparent 60%);
  overscroll-behavior: contain;
}
.dx-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 8px 6px;
  font-family: var(--font-head);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.dx-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.dx-sec:first-child { margin-top: 6px; }
.dx-area {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .84rem;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dx-area:hover { background: var(--surface-2); }
.dx-area:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.dx-area.on { background: linear-gradient(90deg, rgba(200, 164, 92, .18), rgba(200, 164, 92, .03)); border-color: rgba(200, 164, 92, .3); }
.dx-area.on::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(200, 164, 92, .8);
}
.dx-an { min-width: 0; line-height: 1.35; }
.dx-al { flex: 0 0 auto; font-size: .68rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dx-area.on .dx-al { color: var(--gold-soft); }
:root[data-theme="light"] .dx-area.on .dx-al { color: #8a6a28; }
.dx-wait { padding: 14px 10px; font-size: .86rem; color: var(--text-muted); }
.dx-built { margin: 18px 10px 0; font-size: .68rem; color: var(--text-muted); opacity: .75; }

.dx-page { min-width: 0; overflow-y: auto; padding: 24px 30px 30px; overscroll-behavior: contain; }
.dx-ph { position: relative; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.dx-ph::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.dx-title { margin: 6px 0 10px; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: .05em; line-height: 1.2; }
:root[data-theme="dark"] .dx-title {
  background: linear-gradient(180deg, #fffdf6 0%, #f2e7cf 55%, #cbb588 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dx-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(200, 164, 92, .07);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--gold-soft);
}
:root[data-theme="light"] .dx-chip { color: #8a6a28; }
.dx-label { display: block; margin-bottom: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.dx-mons { margin-bottom: 18px; }
.dx-mon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-mon {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  font-size: .78rem;
  transition: border-color .2s, box-shadow .2s;
}
.dx-mon small { font-size: .66rem; color: var(--text-muted); }
.dx-mon.boss { border-color: rgba(200, 164, 92, .45); color: var(--gold-soft); }
.dx-mon.boss::before { content: "\2726"; font-size: .6rem; color: var(--gold); }
:root[data-theme="light"] .dx-mon.boss { color: #8a6a28; }
.dx-mon.hit { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(200, 164, 92, .5), 0 0 16px rgba(200, 164, 92, .3); }

.dx-cats {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 -30px 6px;
  padding: 12px 30px 10px;
  background: rgba(16, 15, 21, .96);
  border-bottom: 1px solid var(--border-soft);
}
:root[data-theme="light"] .dx-cats { background: rgba(252, 250, 245, .97); }
.dx-cat {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.dx-cat i { margin-left: 5px; font-style: normal; opacity: .65; }
.dx-cat:hover { color: var(--text); border-color: var(--border); }
.dx-cat.on { background: var(--gold); border-color: var(--gold); color: #241a06; }
.dx-cat.on i { opacity: .8; }
.dx-gt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.dx-gt i { font-style: normal; font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); }
.dx-gt::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.dx-note { margin: -4px 0 10px; font-size: .78rem; color: var(--text-muted); }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 8px; }
.dx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.dx-item:hover { border-color: var(--border); background: rgba(200, 164, 92, .08); transform: translateY(-1px); }
.dx-item:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.dx-ic {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(200, 164, 92, .3);
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .08), rgba(0, 0, 0, .4) 75%), #121117;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
}
.dx-ic img { display: block; width: 32px; height: 32px; }
.dx-in { min-width: 0; display: flex; flex-direction: column; }
.dx-in b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}
.dx-in small { margin-top: 2px; font-size: .66rem; color: var(--text-muted); }

.dx-crumb { margin: -6px 0 12px; }
.dx-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.dx-link:hover { color: var(--gold); }
.dx-ih { display: flex; align-items: center; gap: 18px; }
.dx-iht { min-width: 0; }
.dx-ic.big { flex-basis: 72px; width: 72px; height: 72px; border-radius: 14px; }
.dx-ic.big img { width: 32px; height: 32px; transform: scale(1.75); image-rendering: pixelated; }
.dx-where { margin-bottom: 6px; }
.dx-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.dx-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dx-place:hover { border-color: var(--border); background: rgba(200, 164, 92, .08); }
.dx-place b { font-size: .84rem; font-weight: 600; }
.dx-place small { font-size: .7rem; color: var(--text-muted); }

@media (min-width: 821px) {
  .dx-back { display: none !important; }
}
@media (max-width: 1020px) and (min-width: 821px) {
  .dx-body { grid-template-columns: 230px 1fr; }
  .dx-page { padding: 20px 22px 26px; }
  .dx-cats { margin: 0 -22px 6px; padding: 12px 22px 10px; top: -20px; }
}
@media (max-width: 820px) {
  .dx-head { flex-wrap: wrap; row-gap: 10px; }
  .dx-search { order: 5; flex: 1 1 100%; }
  .dx-results { left: 0; right: 0; width: auto; }
  .dx-body { grid-template-columns: 1fr; }
  .dx-body[data-step="atlas"] .dx-page { display: none; }
  .dx-body[data-step="page"] .dx-atlas { display: none; }
  .dx-atlas { border-right: 0; padding: 6px 12px 18px; }
  .dx-area { padding: 11px 10px; font-size: .9rem; }
  .dx-area.on::before { display: none; }
  .dx-page { padding: 18px 16px 24px; }
  .dx-cats { margin: 0 -16px 6px; padding: 10px 16px; top: -18px; }
  .dx-title { font-size: 1.35rem; }
  .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-places { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .dx-grid { grid-template-columns: 1fr; }
}
.dx-mon-chips.folded .dx-mon.more { display: none; }
.dx-more {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
}
.dx-more:hover { border-style: solid; background: rgba(200, 164, 92, .08); }
:root[data-theme="light"] .dx-more { color: #8a6a28; }

/* droplist: the in-game item tooltip (texts, order and colours as the client draws them) */
.dx-tip, .dx-card {
  background: linear-gradient(180deg, rgba(16, 15, 13, .97), rgba(6, 6, 7, .97));
  border: 1px solid rgba(200, 164, 92, .45);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 14px 34px rgba(0, 0, 0, .5);
  color: #fff;
  font: 400 12.5px/1.5 Tahoma, Verdana, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}
.dx-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 16px));
  padding: 9px 14px 10px;
  pointer-events: none;
}
.dx-tip[hidden], .dx-card[hidden] { display: none; }
.dx-card { width: fit-content; max-width: min(420px, 100%); margin: -4px 0 22px; padding: 12px 20px 13px; }
.dx-tl { display: block; min-height: 1.5em; white-space: pre-wrap; overflow-wrap: anywhere; }
.dx-tl.gap { min-height: .7em; }
.dx-tl:first-child { font-size: 13px; font-weight: 700; }
.dx-c0 { color: #000; } .dx-c1 { color: #f00; } .dx-c2 { color: #ff8040; } .dx-c3 { color: #ff0; } .dx-c4 { color: #0f0; }
.dx-c5 { color: #0ff; } .dx-c6 { color: #0080ff; } .dx-c7 { color: #f0f; } .dx-c8 { color: #fff; } .dx-c9 { color: #a5f; }
.dx-ca { color: #7f7f7f; } .dx-cb { color: #f361a6; } .dx-cc { color: #964b00; } .dx-cd { color: #87ceeb; } .dx-ce { color: #8b01ff; }
.dx-cf { color: #c8c8c8; } .dx-cg { color: #ffff98; }
@media (max-width: 820px) {
  .dx-card { width: auto; max-width: none; }
}
