/* Study Quest — zaborav-world.css (V7.4 lane H, builder v74-zaborav H3; V7-4-UPDATES 38-39; CONTRACTS c5)
 * The game-wide Zaborav on screen: the page's second part "Heroes and classes" (js/ui-zaborav.js worldHtml), the rename prompt,
 * the character screen's Zaborav button and leaf (js/ui-zaborav-world.js), the toast's place on the character screen. */

/* ---- the page's second part (the Library's Zaborav page and the leaf) */
.zb-world { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--nk-rule, #d8c8a6); }
.zb-world .zb-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 17px/1.2 var(--nk-ui, system-ui, sans-serif); color: var(--nk-ink, #211a12); }
.zb-world .zb-h3 .nk-ico { width: 22px; height: 22px; }
.zb-wempty { margin-top: 10px; }
.zb-wrow.is-bad .zb-t b { font-style: italic; }
.zb-wrow .zb-rename { grid-column: 1 / -1; margin: 2px 0 6px 32px; padding: 8px 10px; border-left: 3px solid var(--nk-lapis, #2f5a9a); background: rgba(47, 90, 154, 0.07); border-radius: 0 4px 4px 0; }
.zb-rename p { margin: 0 0 6px; font: 500 13.5px/1.35 var(--nk-ui, system-ui, sans-serif); color: var(--nk-ink, #211a12); }
.zb-rename__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zb-wname-in { width: 180px; height: 30px; padding: 0 9px; border: 1px solid var(--nk-rule, #d8c8a6); border-radius: 4px; background: #fffaf0; color: var(--nk-ink, #211a12);
  font: 600 14px/1 var(--nk-ui, system-ui, sans-serif); }
.zb-wname-in:focus { outline: 2px solid var(--nk-lapis, #2f5a9a); outline-offset: 1px; }
.zb-rename__err { display: block; margin-top: 5px; font: 600 12.5px/1.3 var(--nk-ui, system-ui, sans-serif); color: var(--nk-ember, #9a2f08); }

/* ---- the character screen: the button under the roster and the leaf over the roll */
.glue-select__zrow { display: flex; justify-content: flex-end; margin-top: 6px; flex: none; }
.glue-select__zrow .glue-select__zaborav { display: inline-flex; align-items: center; gap: 6px; }
.glue-select__zaborav .zbw-mist { width: 15px; height: 15px; opacity: 0.85;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2 6.5c2-1.6 4-1.6 6 0s4 1.6 6 0M3 10c2-1.6 4-1.6 6 0s4 1.6 6 0M2 13.5c2-1.6 4-1.6 6 0s4 1.6 6 0' fill='none' stroke='%23c9b48a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.glue-select__zaborav .zbw-n:empty { display: none; }
.glue-select__zaborav .zbw-n { min-width: 18px; padding: 1px 5px; border-radius: 9px; background: rgba(226, 196, 138, 0.18); color: #e2c48a; font: 700 11.5px/1.4 var(--cx-font-num, system-ui); text-align: center; }
.glue-select__realm.is-note { color: #e8b48a; }
.zbw-leaf .zbw-win { width: min(660px, 100%); }
/* the leaf is the dark codex window: light ink on it */
.zbw-leaf { --nk-ink: #efe4cc; --nk-meta: #bcae90; --nk-rule: rgba(201, 180, 138, 0.38); --nk-lapis: #2f5a9a; --nk-ember: #f0a27c; --nk-ui: "Avenir Next", Avenir, "Helvetica Neue", "Alegreya Sans", system-ui, sans-serif; }
.zbw-leaf .zbw-lead { margin: 0 0 4px; }
.zbw-leaf .zbw-body { max-height: min(52vh, 460px); overflow: auto; }
.zbw-leaf .zb-world { margin-top: 6px; padding-top: 6px; border-top: 0; }
.zbw-leaf .zb-world .zb-h3 { display: none; }
.zbw-leaf .zb-list { margin-top: 6px; }
.zbw-leaf .zb-row .nk-ico { width: 19px; height: 19px; }
.zbw-leaf .zb-row .zb-t b { display: block; font: 600 14.5px/1.25 var(--nk-ui); color: var(--nk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zbw-leaf .zb-row .zb-t small { display: block; font: 500 12px/1.3 var(--nk-ui); color: var(--nk-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zbw-leaf .nk-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid rgba(226, 196, 138, 0.55); border-radius: 4px; cursor: pointer;
  background: transparent; color: #e9dcbf; font: 600 13px/1 var(--nk-ui); }
.zbw-leaf .nk-btn:hover, .zbw-leaf .nk-btn:focus-visible { background: rgba(226, 196, 138, 0.14); outline: none; }
.zbw-leaf .zb-forget.is-sure { background: #8f2d1f; border-color: #8f2d1f; color: #fff; }
.zbw-leaf .zb-days { font: 600 12px/1 var(--nk-ui); color: var(--nk-meta); white-space: nowrap; }
.zbw-leaf .zb-days.is-low { color: var(--nk-ember); }
.zbw-leaf .zb-row { border-bottom-color: rgba(201, 180, 138, 0.25); }
.zbw-leaf .zb-wrow .zb-rename { background: rgba(47, 90, 154, 0.18); border-left-color: #6f95d0; }
.zbw-leaf .nk-btn.pri { background: var(--nk-lapis); border-color: #24487e; color: #f4ecdb; }
.zbw-leaf .nk-btn.pri:hover { background: #366ab3; }
.zbw-leaf .nk-btn[disabled] { opacity: 0.55; cursor: default; }
.zbw-leaf .nk-note { padding: 9px 11px; border-left: 3px solid var(--nk-rule); background: rgba(216, 200, 166, 0.22); font: 500 13.5px/1.4 var(--nk-ui); color: var(--nk-ink); }
.zbw-leaf .nk-meta { font: 500 12.5px/1.3 var(--nk-ui); color: var(--nk-meta); }
.zbw-leaf .zbw-status { min-height: 1.3em; margin: 8px 0 0; font: 600 13px/1.3 var(--nk-ui); color: #2f6a3a; }
.zbw-leaf .zbw-status:empty { display: none; }

/* ---- the toast on the character screen: top centre (the roster and Enter World stay free) */
/* (V7.4 fixer B, usability MEDIUM 6) on the character screen the toast sits above Enter World, centred: never over the chosen
   hero's name (top left), the roster (right) or the hero (left) */
.zb-toast.zb-toast--cs { right: auto; top: auto; left: 50%; bottom: calc(var(--cx-screen-band, 12px) + 140px); transform: translate(-50%, 14px); }
/* (V7.4 v74-finish: the toast stays clear of the roster on the right: centred over the space left of it (the roster: right
   clamp(56px, 6vw, 110px), 384 px wide, world-ui.css), never wider than that space) */
@media (min-width: 761px) { .zb-toast.zb-toast--cs { max-width: min(470px, calc(100vw - 48px)); } }
.zb-toast.zb-toast--cs.is-on { transform: translate(-50%, 0); }
@media (max-width: 560px), (max-height: 420px) { .zb-toast.zb-toast--cs { right: auto; top: auto; bottom: calc(var(--cx-screen-band, 6px) + 84px); } }   /* (Enter World's small look: 10 px up, no keys line) */
@media (max-width: 560px) { .zbw-leaf .zb-row { grid-template-columns: 18px minmax(0, 1fr) auto auto; } .zbw-leaf .zb-days { display: none; } }
