/* Switcher: Gegenstand verzaubern with the piece in view and the switchbot (ui/switcher.js) */
#switcher .win-body { padding: 5px 6px; }
.sw-top { display: flex; align-items: flex-start; gap: 4px; min-height: 36px; margin-bottom: 1px; }
.sw-top .sw-slot { flex: none; margin-top: 2px; }
.sw-empty { flex: 1; font-size: 7px; line-height: 8px; padding: 3px 2px; }
/* the item tooltip standing in the window (like the wiki, css/wiki.css .wk-tt) */
#switcher .sw-tt.tooltip { position: static; flex: 1; min-width: 0; max-width: none; z-index: auto; pointer-events: auto; padding: 3px 5px;
  box-shadow: inset 0 0 0 1px var(--bronze-d); }
/* a random bonus the wish asks for, with enough of it */
#switcher .sw-tt .sw-a.ok { color: var(--green); background: rgba(120, 214, 90, .12); box-shadow: inset 1px 0 0 var(--green); margin: 0 -3px; padding: 0 3px; }
#switcher .sw-tt .sw-a.fresh { animation: sw-new .5s ease-out; }
@keyframes sw-new { from { color: #fff; background: rgba(242, 196, 90, .25); } }
#switcher .sw-tt .sw-met { color: var(--green); }
/* the same window for a pet (ui/petswitch.js): its card instead of the item tooltip */
#petswitch .win-body { padding: 5px 6px; }
#petswitch .sw-tt.tooltip { position: static; flex: 1; min-width: 0; max-width: none; z-index: auto; pointer-events: auto; padding: 3px 5px;
  box-shadow: inset 0 0 0 1px var(--bronze-d); }
#petswitch .sw-tt .sw-a.ok { color: var(--green); background: rgba(120, 214, 90, .12); box-shadow: inset 1px 0 0 var(--green); margin: 0 -3px; padding: 0 3px; }
#petswitch .sw-tt .sw-a.fresh { animation: sw-new .5s ease-out; }
#petswitch .sw-tt .sw-met { color: var(--green); }
#petswitch .pet-stars { color: var(--gold); letter-spacing: -.5px; }
#petswitch .pet-stars .off { color: #4a3e30; }
.sw-kinds { display: flex; align-items: center; gap: 3px; min-height: 18px; margin: 4px 0 3px; }
.sw-kind { cursor: pointer; }
.sw-kind.picked { box-shadow: inset 0 0 0 1px var(--gold), inset 1px 1px 0 1px var(--edge); background: #2a2018; }
.sw-kn { flex: 1; min-width: 0; font-size: 7px; line-height: 8px; }
.sw-kname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-none { font-size: 7px; line-height: 8px; text-align: center; flex: 1; }
.sw-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 11px; padding: 1px 3px; margin-bottom: 2px;
  background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); font-size: 8px; line-height: 9px; color: var(--gold); }
.sw-chance { flex: none; font-size: 7px; text-shadow: var(--ol); }
.sw-hint { font-size: 7px; line-height: 8px; text-align: center; padding: 2px 4px; }
.sw-row { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.sw-row .sel.sw-b { flex: 1; min-width: 0; }
.sw-row .sel.sw-v { flex: none; width: 46px; min-width: 0; }
.sw-row .sel .sel-label { min-width: 0; }
/* "ab" before the value: the wish counts from it, more is a hit too */
.sw-ab { flex: none; font-size: 7px; }
/* remove a wish: a small framed square like the slots */
.sw-x { flex: none; width: 10px; height: 12px; text-align: center; font-size: 8px; line-height: 12px; color: var(--gold); cursor: pointer;
  background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--bronze-d); }
.sw-x:hover { box-shadow: inset 0 0 0 1px var(--bronze-l); color: #fff; }
.sw-x.off { color: var(--dim); opacity: .4; pointer-events: none; }
.sw-add { display: flex; justify-content: flex-end; margin-top: 3px; }
.sw-btns { width: 100%; margin-top: 5px; }
.sw-status { font-size: 7px; line-height: 8px; min-height: 8px; text-align: center; margin-top: 3px; }
.sw-keys { text-align: center; margin-top: 2px; line-height: 7px; }
/* the bonus lock under the piece (ui/switcher.js renderLocks, seals of the Dunkler Sura) */
#switcher .sw-locks { margin: 3px 0 2px; padding: 2px 3px; background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#switcher .sw-locks.hidden { display: none; }
#switcher .sw-lhead { display: flex; justify-content: space-between; align-items: center; font-size: 8px; line-height: 9px; color: var(--gold); margin-bottom: 1px; }
#switcher .sw-seals { display: inline-flex; align-items: center; gap: 2px; font-size: 7px; color: var(--text); }
#switcher .sw-seals img { width: 9px; height: 9px; }
#switcher .sw-lrow { display: flex; align-items: center; gap: 3px; min-height: 12px; font-size: 7px; line-height: 8px; border-top: 1px solid #70593833; }
#switcher .sw-lrow.on .sw-ltext { color: #f2d27a; }
#switcher .sw-ltext { flex: 1; min-width: 0; color: #b0dfb4; }
#switcher .sw-lockbtn { flex: none; display: inline-flex; align-items: center; gap: 2px; min-width: 24px; }
#switcher .sw-lockbtn img { width: 7px; height: 7px; }
#switcher .sw-lockbtn.on { opacity: 1; color: #f2d27a; }
#switcher .sw-lnote { font-size: 7px; line-height: 8px; text-align: center; margin-top: 1px; }
html.touch #switcher .sw-lockbtn { min-height: calc(44px / (var(--px) * var(--wz))); min-width: calc(44px / (var(--px) * var(--wz))); justify-content: center; }
/* phones: the tooltip standing in the window grows with the window already - not a second time like the floating
   tooltips (touch.css `html.touch #ui .tooltip { scale }`; it was 176 CSS px too wide) */
html.touch #ui #switcher .sw-tt.tooltip, html.touch #ui #petswitch .sw-tt.tooltip { scale: none; pointer-events: auto; }
