/* The minimap (web/js/minimap.js): Tibia's corner, top right of the field, with the party's bar below it; its window
   (ui.modal kind 'minimapa'). Only the project's pieces and colours (docs/DESIGN.md). */
#mm{position:absolute;right:6px;top:6px;z-index:3;display:grid;gap:1px;padding:2px;line-height:normal;touch-action:none}
#mm.is-moved{right:auto}
#mm .mm-head{display:flex;align-items:center;gap:2px;min-height:16px;padding:0 2px;font-size:10px;cursor:move;user-select:none;-webkit-user-select:none}
#mm .mm-t{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mm .mm-b{width:18px;height:16px;min-height:0;margin:0;padding:0;font-size:12px;line-height:14px}
#mm .mm-cv{display:block;cursor:pointer;image-rendering:pixelated;background:#0d0d0d;border:1px solid #000}
#mm.is-min .mm-cv,#mm.is-min .mm-b:not(:last-child){display:none}
#viewport.mm-corner #side{top:calc(var(--mm-h) + 10px)}
/* the marks are the client's 11 px icons: never stretched to the 16 px of a window's title */
dialog[data-win="minimapa"] .window-title .wt-ic,#app-menu img[src*="map_marks"]{width:11px;height:11px;vertical-align:0}
.mm-tools{display:flex;align-items:center;gap:4px}
.mm-tools button{min-width:30px;margin:0}
.mm-floor{flex:1 1 auto;min-width:0;text-align:center;color:#fff;font-weight:normal;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-big{position:relative;height:min(48vh,520px);margin:4px 0;background:#0d0d0d;border:1px solid #000;overflow:hidden;touch-action:none}
.mm-big-cv{display:block;image-rendering:pixelated;cursor:grab}
.mm-panel{display:grid;gap:4px}
.mm-layers{display:flex;flex-wrap:wrap;gap:3px}
.mm-legend{margin:0;font-size:10px;line-height:13px}
.mm-opts{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.mm-opts button{margin:0}
.mm-op{display:flex;align-items:center;gap:6px;font-size:11px}
.mm-op input{width:110px}
.mm-form{display:grid;gap:4px}
.mm-icons{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;padding:2px}
.mm-icons button{min-height:24px;margin:0;padding:0;display:grid;place-items:center}
.mm-icons button.active{color:#fff;border-color:#c5b47c;box-shadow:inset 0 0 0 1px #c5b47c}
.mm-icons img{width:11px;height:11px;image-rendering:pixelated}
.mm-form-b{display:flex;gap:4px;justify-content:flex-end}
@media (min-width:1000px){.mm-big{height:min(62vh,640px)}}
