/* Quests: tracker under the minimap, notices, quest log. Same pixel style as game.css (art pixels, zoomed by --px). */
#quest-tracker { position: absolute; right: 4px; top: 128px; width: 124px; padding: 3px 4px 4px; }
#quest-tracker .qt-head { display: flex; justify-content: space-between; align-items: center; height: 10px; padding: 0 1px;
  font-size: 7px; color: var(--gold); cursor: pointer; text-shadow: 1px 1px 0 var(--ink); }
#quest-tracker .qt-fold { width: 10px; text-align: center; color: var(--dim); }
#quest-tracker .qt-fold:hover { color: var(--text); }
#quest-tracker .qt-body { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
#quest-tracker .qt-entry { cursor: pointer; padding: 2px 3px 3px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px #2e251c; }
#quest-tracker .qt-entry:hover { box-shadow: inset 0 0 0 1px var(--bronze); }
#quest-tracker .qt-more { font-size: 6px; color: var(--dim); text-align: right; cursor: pointer; padding: 0 1px; }
#quest-tracker .qt-more:hover { color: var(--text); }

.qt-title { font-size: 7px; line-height: 9px; color: var(--text); }
.qt-kind { display: inline-block; font-size: 6px; padding: 0 2px; margin-right: 3px; line-height: 7px; vertical-align: 1px;
  color: var(--ink); background: var(--gold); }
.qt-kind.k-skill { background: #8cc2ff; }
.qt-kind.k-bio { background: #8df08d; }
.qt-kind.k-camp { background: #e8a868; }
.qt-kind.k-smith { background: #d8c08a; }
.qt-kind.k-daily { background: #e0a8ff; }
.qt-kind.k-weekly { background: #ff9f7a; }
.qt-step { display: flex; justify-content: space-between; gap: 4px; font-size: 6px; line-height: 8px; color: var(--dim); margin-top: 1px; }
.qt-entry.next .qt-title { color: var(--dim); }
.qt-step .qt-label { min-width: 0; }
.qt-step .qt-val { white-space: nowrap; color: var(--text); }
.qt-step.done .qt-val, .qt-step.done .qt-label { color: var(--green); }
.qt-bar { height: 2px; margin-top: 1px; background: #110b09; box-shadow: 0 0 0 1px var(--edge); }
.qt-bar > i { display: block; height: 100%; background: var(--gold); }
.qt-actions { margin-top: 3px; display: flex; justify-content: flex-end; }
.qt-go { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* quest log in the character window */
.qt-log { max-height: 190px; overflow-y: auto; margin-top: 3px; padding-right: 2px; }
.qt-group { font-size: 7px; color: var(--gold); margin: 4px 0 2px; padding-bottom: 1px; border-bottom: 1px solid #3a2d20;
  display: flex; justify-content: space-between; gap: 4px; }
.qt-group .qt-reset { color: var(--dim); white-space: nowrap; }
.qt-entry.full { padding: 3px 4px 4px; margin-bottom: 3px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #2e251c; }
.qt-desc { font-size: 6px; line-height: 8px; color: var(--dim); margin: 1px 0 2px; }
.qt-hint { font-size: 6px; line-height: 8px; color: #9fd6ff; margin-top: 2px; }
/* what to do next for the open step (jewellery steps, ui/quests.js jewelStep) */
.qt-next { font-size: 6px; line-height: 8px; color: var(--text); margin-top: 2px; padding: 0 2px 0 3px; box-shadow: inset 1px 0 0 var(--gold-d); }
.qt-reward { font-size: 6px; line-height: 8px; color: #ffe08a; margin-top: 2px; }

/* notices */
#quest-toast { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); min-width: 120px; max-width: 220px; padding: 4px 8px 5px;
  text-align: center; pointer-events: none; background: rgba(14, 11, 9, .9);
  box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--gold-d), 0 2px 0 1px rgba(0, 0, 0, .45); }
#quest-toast .qn-head { font-size: 6px; color: var(--dim); letter-spacing: .5px; }
#quest-toast .qn-title { font-size: 9px; color: var(--gold); text-shadow: 1px 1px 0 var(--ink); }
#quest-toast.done .qn-head { color: var(--green); }
#quest-toast .qn-reward { font-size: 6px; line-height: 8px; color: #ffe08a; margin-top: 1px; }

/* heading with the own gearscore (hunting window, ui/hunt.js) */
.hunt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; margin-top: 1px; }
.hunt-head .gold { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-head .hgs { flex: none; font-size: 7px; cursor: help; }
.dialog-text .path-skills { color: #9fd6ff; }

.qt-pending { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 7px; color: #ffaa40; margin: 2px 0; padding: 2px 3px;
  background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #4a3520; }

/* special inventory (Sonderinventar), folds out left of the inventory window */
/* its tab on the left edge of the bag: .side-tab.left in imperial.css (blinks with .new while it holds new drops) */
:is(#special-inv, #supply-inv) { width: 104px; }
/* five category tabs in two rows (3 + 2): in one row "Lager" ran over the window edge with other display scaling */
:is(#special-inv, #supply-inv) .sp-cats { flex-wrap: wrap; }
:is(#special-inv, #supply-inv) .sp-cats .tab { flex: 1 0 calc((100% - 3px) / 3); padding: 0 3px; }
:is(#special-inv, #supply-inv) .sp-pages { margin-bottom: 3px; }
:is(#special-inv, #supply-inv) .sp-help { display: grid; margin-top: 3px; text-align: center; }
:is(#special-inv, #supply-inv) .sp-help > span { grid-area: 1 / 1; visibility: hidden; }
:is(#special-inv, #supply-inv) .sp-help > span.on { visibility: visible; }

/* village / hunt / guild island trip buttons under the minimap */
:is(#travel-btn, #isle-trip) { position: absolute; right: 4px; top: 111px; width: 82px; min-height: 14px; height: auto; display: flex; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; padding: 2px 3px; border: 0; appearance: none; font-family: inherit; font-size: 7px; line-height: 7px; text-align: center; color: var(--text); }
:is(#travel-btn, #isle-trip) > span { min-width: 0; overflow-wrap: break-word; }
#isle-trip { top: 128px; }
#ui:is(.in-arena,.in-fest,.in-gw,.in-inv,.in-ox,.in-dungeon,.in-rift,.spectating) #isle-trip { display: none !important; }
html:not(.touch) #ui #quest-tracker { top: 145px; }
:is(#travel-btn, #isle-trip) i { flex: none; width: 10px; height: 10px; background: var(--ic-map) center / 10px 10px no-repeat; }
#travel-btn.hunt i { background-image: var(--ic-sword); }
#travel-btn.hunt { color: #b6ffa0; }
:is(#travel-btn, #isle-trip):hover { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--gold); }
.trip-row { display: flex; gap: 3px; margin-top: 3px; }
.trip-row .btn { flex: 1; }

/* tracker: three entries visible, the rest scrolls (max-height set in ui/quests.js); pins */
#quest-tracker .qt-body { overflow-y: auto; }
.qt-pin { float: right; width: 8px; height: 9px; margin-left: 2px; cursor: pointer; opacity: .55;
  background: var(--ic-pin) -2px -1px / 12px 12px no-repeat; }
.qt-pin:hover { opacity: 1; }
.qt-pinbtn { float: right; margin-left: 3px; padding: 0 2px; font-size: 6px; line-height: 8px; color: var(--dim); cursor: pointer;
  box-shadow: inset 0 0 0 1px #4a3b2b; }
.qt-pinbtn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--bronze); }

/* The Biologe by hand (ui/bio.js): window #biologist - the piece of the research with what lies in the inventory, the bar
   of the pieces handed in, chance / waiting time / the switch of the Elixier des Forschers, a note of fixed height (the
   window never jumps), the reward, one button. */
#ui #biologist .win-body { padding: 5px 6px; }
#ui #biologist .bi-top { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 5px; align-items: center; padding: 4px 4px 5px; }
#ui #biologist .bi-slot { width: 24px; height: 24px; }
#ui #biologist .bi-slot > img { left: 4px; top: 4px; }
#ui #biologist .bi-slot > .n { right: 2px; bottom: 2px; font-size: 7px; line-height: 7px; }
#ui #biologist .bi-slot.short > img { opacity: .45; }
#ui #biologist .bi-what { min-width: 0; }
#ui #biologist .bi-name { font-size: 8px; line-height: 9px; color: #eee3c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui #biologist .bi-have { margin-top: 1px; font-size: 7px; line-height: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui #biologist .bi-bar { grid-column: 1 / -1; flex: none; }
#ui #biologist .bi-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; height: 13px; padding: 0 5px;
  font-size: 7px; line-height: 8px; box-shadow: inset 0 -1px 0 #2a241d; }
#ui #biologist .bi-kv > div:last-child { box-shadow: none; }
#ui #biologist .bi-kv > div > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
#ui #biologist .bi-kv > div > span + span { flex: none; color: #eee3c8; text-shadow: var(--ol); }
#ui #biologist .bi-kv > div > span.green { color: #8dff5e; }
#ui #biologist .bi-kv > .bi-elx { height: 17px; }
/* on / off like the switches of the options (game.css .opt-tog): green with a dot when on */
#ui #biologist .btn.bi-tog { flex: none; min-width: 30px; height: 11px; padding: 0 4px; font-size: 7px; display: flex; align-items: center; justify-content: center; gap: 3px; }
#ui #biologist .bi-tog .bi-dot { width: 4px; height: 4px; flex: none; background: #5a4d3c; box-shadow: inset 0 0 0 1px #2a2018; }
#ui #biologist .bi-tog .bi-st { color: var(--dim); text-transform: uppercase; }
#ui #biologist .btn.bi-tog.on { color: #d6ffc4; background: linear-gradient(#2e4a22, #1c2f15); box-shadow: inset 0 0 0 1px #79d653, 0 0 5px #79d65399; }
#ui #biologist .bi-tog.on .bi-dot { background: #8dff5e; box-shadow: 0 0 4px #8dff5e; }
#ui #biologist .bi-tog.on .bi-st { color: #8dff5e; }
#ui #biologist .bi-note { display: flex; align-items: center; justify-content: center; height: 24px; margin: 4px 1px 0; font-size: 7px; line-height: 8px; text-align: center;
  overflow: hidden; overflow-wrap: anywhere; }
#ui #biologist .bi-reward { display: flex; align-items: center; justify-content: center; min-height: 16px; margin: 2px 1px 4px; font-size: 7px; line-height: 8px;
  text-align: center; color: #eee3c8; overflow-wrap: anywhere; }
#ui #biologist .bi-reward > .dim { flex: none; margin-right: 3px; }
#ui #biologist .bi-btns { width: 100%; }
/* a phone (landscape, 360 px high): two columns, so that nothing scrolls - left the research and the note, right chance /
   waiting time / switch, the reward and the button; finger-high switch and button. With the soul stone (.bi-soul) the
   values are gone: the reward and the button move up */
html.touch #ui #biologist { width: min(372px, calc((100% - 8px) / var(--wz))) !important; }
html.touch #ui #biologist .win-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 6px; align-items: start; }
html.touch #ui #biologist .win-body > .fp + .fp { margin-top: 0; }
html.touch #ui #biologist .bi-note { grid-column: 1; grid-row: 2 / span 2; align-self: center; height: auto; min-height: 24px; margin: 0; }
html.touch #ui #biologist .bi-reward { grid-column: 2; grid-row: 2; margin: 0; }
html.touch #ui #biologist .bi-btns { grid-column: 2; grid-row: 3; }
html.touch #ui #biologist.bi-soul .bi-reward { grid-row: 1; align-self: center; }
html.touch #ui #biologist.bi-soul .bi-btns { grid-row: 2; }
html.touch #ui #biologist.bi-soul .bi-note { grid-row: 2; }
html.touch #ui #biologist .btn.bi-tog { min-width: calc(var(--finger) * 1.4); min-height: var(--finger); }
html.touch #ui #biologist .bi-kv > .bi-elx { height: auto; padding-top: 2px; padding-bottom: 2px; }
html.touch #ui #biologist .bi-btns > .btn { min-height: var(--finger); }

/* something can be handed in at the Biologe: the mark in the row of the ready kettles (#hud-ready, alchemy.css - same look) */
#ui #hud-ready > #bio-ready { order: 3; }
#ui #bio-ready { position: relative; flex: none; width: 22px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#ui #bio-ready img { display: block; width: 16px; height: 16px; pointer-events: none; }
#ui #bio-ready .et-dot { display: block; right: 1px; top: 1px; }
#ui #bio-ready::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ffd24a, 0 0 4px 1px rgba(255, 200, 80, .55);
  animation: alch-ready 1.2s ease-in-out infinite; }
#ui #bio-ready:hover img { filter: brightness(1.25); }
#ui #bio-ready:hover::after { animation: none; }
html.touch #ui #bio-ready { width: calc(44px / var(--px)); height: calc(44px / var(--px)); }
html.touch #ui #bio-ready img { width: 20px; height: 20px; }
html.touch #ui #ttop #bio-ready { width: calc(20px * var(--tz)); height: calc(20px * var(--tz)); }
html.touch #ui #ttop #bio-ready img { width: 70%; height: 70%; }
